Login and register help

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
longmvucp

Login and register help

Post by longmvucp »

I tried adding login and register to the avatar chat but it not working.
WorldOfNyan
Posts: 34
Joined: 17 Sep 2011, 22:04
Location: Florida
Contact:

Register/Login.

Post by WorldOfNyan »

Hey! I can only suggest you search for errors? Php, AvatarChat, Etc. I need more information to be able to help you! :)
(If you used a Tutorial try re doing it.)
longmvucp

Re: Register/Login.

Post by longmvucp »

WorldOfNyan wrote:Hey! I can only suggest you search for errors? Php, AvatarChat, Etc. I need more information to be able to help you! :)
(If you used a Tutorial try re doing it.)
Can someone make a tutorial on this?
zachofthegolden1
Posts: 89
Joined: 05 Sep 2011, 19:31

Re: Login and register help

Post by zachofthegolden1 »

longmvucp wrote:I tried adding login and register to the avatar chat but it not working.

please check out http://sfs-tutor.blogspot.com/

that site has loads of good tutorials on database logins and register functions. :D
-ZG1
longmvucp

Re: Login and register help

Post by longmvucp »

So how do you use the tutorial on http://sfs-tutor.blogspot.com/ and merge it with the avatar chat?
longmvucp

Re: Login and register help

Post by longmvucp »

Can someone post the source code for http://sfs-tutor.blogspot.com/?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Login and register help

Post by rjgtav »

Well, I'm sorry but my laptop's HDD burned last summer, and so I lost all the tutorial's source.
I suggest you to follow the tutorial with attention, as all the code is there. Maybe anyone else has a working example and doesn't mind sharing.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
ganggangde
Posts: 2
Joined: 27 Feb 2012, 02:21

Re: Login and register help

Post by ganggangde »

I tried adding login and register to the avatar chat but it not working.
longmvucp

Re: Login and register help

Post by longmvucp »

<DatabaseManager active="true">
<Driver>The Driver</Driver>
<ConnectionString>The URL</ConnectionString>
<UserName>Database Username</UserName>
<Password>Database Password</Password>
<TestSQL><![CDATA[Test SQL Statement]]></TestSQL>
<MaxActive>100</MaxActive>
<MaxIdle>100</MaxIdle>
<OnExhaustedPool>fail</OnExhaustedPool>
<BlockTime>5000</BlockTime>
</DatabaseManager>

What the driver,url,user name,password?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Login and register help

Post by rjgtav »

Hi.
Please read the whole docs before starting developing. That will help you a lot.

On this chapter, it explains very well what are those drivers, and provides an example about how to connect to a MySQL database. You can also find how to setup your h2Databse here and in the config.xml that originally comes with the server, you'll find 2 zones: dbZone (which has the DBManager setup for connecting to a MySQL database) and h2dbzone (which has the DBManager setup for connecting to a H2Database).
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
longmvucp

Re: Login and register help

Post by longmvucp »

I got a error on mac
Last login: Mon Feb 27 22:34:43 on ttys001
(name remove)-mac-mini:~ longvu$ /Applications/SmartFoxServer\ PRO\ 1.6.6/Server/adminDb.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/h2/tools/Server
Caused by: java.lang.ClassNotFoundException: org.h2.tools.Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
(name remove)-mac-mini:~ longvu$
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Login and register help

Post by rjgtav »

Please check this topic, it seems the problem you're facing is the same.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
longmvucp

Re: Login and register help

Post by longmvucp »

rjgtav wrote:Please check this topic, it seems the problem you're facing is the same.
It says "cd /Applications/SFS\ Pro\ 1.6.3/Server/"
I am more use to windows so what should I put in there?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Login and register help

Post by rjgtav »

Well, I never used Mac. But I suppose thats the line of code you should run on the terminal, in order to go to the server folder. Of course the folder should be different actually, as the server is already on version 1.6.9, and not 1.6.3, as it was at the time of that topic.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Post Reply