Page 1 of 1

Login and register help

Posted: 13 Jan 2012, 03:46
by longmvucp
I tried adding login and register to the avatar chat but it not working.

Register/Login.

Posted: 13 Jan 2012, 11:15
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.)

Re: Register/Login.

Posted: 31 Jan 2012, 02:48
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?

Re: Login and register help

Posted: 31 Jan 2012, 18:38
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

Re: Login and register help

Posted: 23 Feb 2012, 03:06
by longmvucp
So how do you use the tutorial on http://sfs-tutor.blogspot.com/ and merge it with the avatar chat?

Re: Login and register help

Posted: 25 Feb 2012, 22:31
by longmvucp
Can someone post the source code for http://sfs-tutor.blogspot.com/?

Re: Login and register help

Posted: 26 Feb 2012, 18:12
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.

Re: Login and register help

Posted: 27 Feb 2012, 02:42
by ganggangde
I tried adding login and register to the avatar chat but it not working.

Re: Login and register help

Posted: 27 Feb 2012, 03:19
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?

Re: Login and register help

Posted: 27 Feb 2012, 19:10
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).

Re: Login and register help

Posted: 28 Feb 2012, 03:36
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$

Re: Login and register help

Posted: 28 Feb 2012, 23:06
by rjgtav
Please check this topic, it seems the problem you're facing is the same.

Re: Login and register help

Posted: 07 Mar 2012, 00:01
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?

Re: Login and register help

Posted: 07 Mar 2012, 00:09
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.