User Account System
by Skylar Kelty · 11/13/2006 (4:37 pm) · 170 comments
---------------------------------------------------------------------------------------------------
Version 3
---------------------------------------------------------------------------------------------------
Version 3.3 - Updated!
download v3.3
Version 3.3 uses Web-Server Interaction and features awards, stats and member panel.
This version requires PHP, MYSQL and TorqueScript Knowledge.
If you have downloaded this before, make sure you clear your browser's cache!
Version 3.2
download v3.2
Version 3.2 uses SQLLite and features awards, stats and member panel.
Version 3.1 - Untested!
download v3.1
Version 3.1 uses xml and features awards, stats and member panel.
---------------------------------------------------------------------------------------------------
Old Versions
---------------------------------------------------------------------------------------------------
Version 2 - No longer supported!
download v2
Version 2 uses SQLite, which is more secure. Some of you may not want to use SQLite, if you dont, use v1.2
Version 1.2 - No longer supported!
download v1.2
Version 1.2 uses the fileobject
---------------------------------------------------------------------------------------------------
ChangeLog
---------------------------------------------------------------------------------------------------
UPDATES:
v1.1 - bug fixes
v1.2 - now uses c++
v2 - now uses SQLite
v3 - Fixes, Updates and 3.3 uses web-server interaction
v3.3 - Updated to.. actually work.. see comments
Version 3
---------------------------------------------------------------------------------------------------
Version 3.3 - Updated!
download v3.3
Version 3.3 uses Web-Server Interaction and features awards, stats and member panel.
This version requires PHP, MYSQL and TorqueScript Knowledge.
If you have downloaded this before, make sure you clear your browser's cache!
Version 3.2
download v3.2
Version 3.2 uses SQLLite and features awards, stats and member panel.
Version 3.1 - Untested!
download v3.1
Version 3.1 uses xml and features awards, stats and member panel.
---------------------------------------------------------------------------------------------------
Old Versions
---------------------------------------------------------------------------------------------------
Version 2 - No longer supported!
download v2
Version 2 uses SQLite, which is more secure. Some of you may not want to use SQLite, if you dont, use v1.2
Version 1.2 - No longer supported!
download v1.2
Version 1.2 uses the fileobject
---------------------------------------------------------------------------------------------------
ChangeLog
---------------------------------------------------------------------------------------------------
UPDATES:
v1.1 - bug fixes
v1.2 - now uses c++
v2 - now uses SQLite
v3 - Fixes, Updates and 3.3 uses web-server interaction
v3.3 - Updated to.. actually work.. see comments
About the author
Recent Blogs
• AFXSpellCooldowns• TGEA material.cs Generator
• Check for update
• Save/Load game system
• DOM, SG and future resources
#162
I know it is not the server because the line right before it gets echoed right away. here is what I get in my console,
see how long it takes (almost 2 minutes) before the script finds the "<!--end-->" line?
Anyone know why this is happening and any ways to fix it?
04/22/2010 (10:17 pm)
I am having a problem. Everything works fine but it takes a very long time for the program to read the line "<!--end-->"I know it is not the server because the line right before it gets echoed right away. here is what I get in my console,
*** Load Main Menu Connected to page HTTP/1.1 200 OK Date: Fri, 23 Apr 2010 05:09:29 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET X-Powered-By: PHP/5.2.11 Content-type: text/html Content-Length: 21 3~Dev_Salzano Window focus status changed: focus: 0 Using background sleep time: 25 Window focus status changed: focus: 1 Window focus status changed: focus: 0 Using background sleep time: 25 Window focus status changed: focus: 1 Window focus status changed: focus: 0 Using background sleep time: 25 Error reading from socket: No error <!--end--> LOGIN INFO HAS BEEN RECEIVED 3~Dev_Salzano
see how long it takes (almost 2 minutes) before the script finds the "<!--end-->" line?
Anyone know why this is happening and any ways to fix it?
#163
I started over with torque 1.8.1. I have everything working so far. I can register and login and I have also added character name, level, and exp to the list. My problem is that after I login and open console I can do echo(uac.username); and it will give me the correct user name. If I do echo(uac.password); it comes up blank. If I do echo(uac.char_name); or any other one other then username its also blank.
Any info?
Thanks
06/28/2010 (7:04 am)
Hello.I started over with torque 1.8.1. I have everything working so far. I can register and login and I have also added character name, level, and exp to the list. My problem is that after I login and open console I can do echo(uac.username); and it will give me the correct user name. If I do echo(uac.password); it comes up blank. If I do echo(uac.char_name); or any other one other then username its also blank.
Any info?
Thanks
#164
Which version are you using?
If your using 3.3, the problem is most likely in the "UACOnline::onLine(%this, %line)" function, or in the PHP script, could you send your scripts to my email addy? (its in my profile)
06/28/2010 (2:31 pm)
Heya,Which version are you using?
If your using 3.3, the problem is most likely in the "UACOnline::onLine(%this, %line)" function, or in the PHP script, could you send your scripts to my email addy? (its in my profile)
#166
Also I forgot to include the database setup if you need it just let me know.
Thanks
Edit:
I have also noticed that if I call function UAC::getcurrentuserdata(%this, %info), and then echo anything inside of it that its also blank.
06/30/2010 (8:28 am)
Omm not sure if it matters but I am using this all on client side.Also I forgot to include the database setup if you need it just let me know.
Thanks
Edit:
I have also noticed that if I call function UAC::getcurrentuserdata(%this, %info), and then echo anything inside of it that its also blank.
#167
07/30/2010 (4:30 am)
Hey, sorry to bump this thread, but I think it would be still extremely useful to the project I'm trying to create. I think implementing version 3.3 is way beyond me, as I'm just an artist, however, I've been given the task of coding/scripting too as its only a 2 man team. I think 3.1 sounds the most simple for me, but can someone please explain, what it does, and help me to implement it. I followed the instructions but it did not work very well. I'm using TGE 1.5.2. When I implement 3.1, nothing is added to the main menu, so I added it manually, but when I log in with anything, nothing happens, it just freezes torque. What should it be connecting to? Can you please guide me into adding this into my project?
#168
03/07/2011 (5:19 pm)
is there anything similar to this, where the user must login and be a paid member to play... possibly using mysql
#169
04/25/2012 (5:13 pm)
Does anyone still have this resource it could be usefull as a starting point for my current project.
#170
07/31/2013 (7:20 am)
Does anyone still have this resource? Would be helpful. 
Torque Owner Skylar Kelty
SkylarK
Could code everything I wanted in but had NO art to go with it.