Register for your free account! | Forgot your password?

You last visited: Today at 13:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tyler & Bane release]Email

Discussion on [Tyler & Bane release]Email within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old 03/24/2011, 21:10   #16
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 647
What type of fields you added? When I was writing email authentication script I used PwAnswer & PwQuestion, EmailAuth & EmailAuthKey and that's everything I needed. I tried to follow yours, but I don't know javascript :/

To make activation key I created a text file and made the registration script add new player names to it then create a md5 of it. Not sure how good it is, but at that time I thought it is a great idea.
ProfNerwosol is offline  
Old 03/24/2011, 22:01   #17
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
I redid it a bit, and this one doesn't add columns, though I did have to change EmailAuthKey to varchar(MAX), for the activationKey I used.

To create the activationKey I use a function in PHP - mt_rand() - 5 times. It seemed like a good way to me, and a good way to prevent matching keys. I also couldn't think of another way to do it.

The javascript part of my registration is merely the Username check (to see if it exists) and to verify all fields have data in them, nothing else. Dunno if that'd help you any :S
RebeccaBlack is offline  
Old 04/14/2011, 11:19   #18
 
zokylove's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 172
Received Thanks: 70
saw a problem posted here about the acc verification ...most of u want to make ppl not to be able to log in if they dont verify there email ... heres how i fixed the problem

EDIT in Verify.php this 2 query
Change Leave value to "1"
Code:
//Insert statement for the Users_Masters table. Check to verify all information is corrent
		$sql = "INSERT INTO PS_UserData.dbo.Users_Master
				(UserID,Pw,JoinDate,Admin,AdminLevel,UseQueue,Status,[COLOR="Red"]Leave[/COLOR],LeaveDate,UserType,Point,UserIp)
				VALUES ('{$username}','{$password}',GETDATE(),0,0,0,0,[COLOR="Red"]1[/COLOR],GETDATE(),'N',0,'{$user_ip}')";
Update Leave value to "0" after verifying email activation key
Code:
//Changing the Users_Detail table to updated, and the UseQueue column of Users_Master to 1
       $sql="UPDATE PS_UserData.dbo.Users_Detail SET EmailAuthKey='Verified', EmailAuth=1, EmailAuthDate=GETDATE() WHERE (UserID = '$row[UserID]')
			UPDATE PS_UserData.dbo.Users_Master SET [COLOR="Red"]Leave=0 [/COLOR]WHERE UserID='$row[UserID]'";
Sorry my bad english.Hope this will help all
zokylove is offline  
Thanks
1 User
Old 04/26/2011, 22:16   #19
 
elite*gold: 0
Join Date: Mar 2009
Posts: 67
Received Thanks: 4
activation does not occur, a white screen: (
akademik is offline  
Old 04/27/2011, 07:42   #20
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
That is probably because it's not storing the full activation key. Did you change your Users_Detail table, to set the EmailAuthKey to varchar(MAX) ?
RebeccaBlack is offline  
Old 05/03/2011, 17:15   #21
 
elite*gold: 0
Join Date: Mar 2009
Posts: 67
Received Thanks: 4
Warning: mssql_query() [function.mssql-query]: message: Cannot insert the value NULL into column 'UserUID', table 'PS_UserData.dbo.Users_Master'; column does not allow nulls. INSERT fails.
akademik is offline  
Old 05/04/2011, 08:56   #22
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
That was talked about on Abrasive's registration script. You need to make the UserUID column auto-increment.

RebeccaBlack is offline  
Old 05/04/2011, 15:32   #23
 
elite*gold: 0
Join Date: Mar 2009
Posts: 67
Received Thanks: 4
auto-increment RowID column
akademik is offline  
Old 05/04/2011, 17:59   #24
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
I deleted the RowID column, as I found it useless. You need to have the UserUID column set to auto increment. Look at the link I put in the post above.
RebeccaBlack is offline  
Thanks
1 User
Old 05/21/2011, 14:03   #25
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
this is a great thing and thanks to all that helped.

but i have to get real with this. alot here can computers and servers and stuff. but are green to the html php stuff.

how do we import this to the site? i don't see where to put in ip and all that so i don't get how this stuff can connect to my server realy.

i could try just to put in the html codes but for me to use stuff i have to know what's going on.

i'm the one that has to change this if stuff going wromg so i need to know what i'm doing..

how do this work and what do i realy have to do to make a register script work?

contact me please so i can get a site online with this stuff

skype:svinseladden
mail:
or iPM here

PS: my test site i'm using google: if you need to know what i have to put it in or something he he


thanks
Svinseladden is offline  
Old 05/21/2011, 14:36   #26
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
I've commented in the first post on what you need to edit.

To make a register work, you basically just need to have it insert the correct data into the database. But to make it work efficient you'll have to put checks for account already existing. Stuff like that.
RebeccaBlack is offline  
Old 05/21/2011, 16:01   #27
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
if you use the same for both website and server i guess you might do this easy (i don't know realy) but there is alot of php stuff here what do i have where?

and what do i realy have to change to get it to work?

sorry but i realy don't understand php/html stuff. i'm a server guy:-P

do you have one on your server side and one on your site to get them to understand where to make the account and so on or?
Svinseladden is offline  
Old 05/22/2011, 03:33   #28
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
My website and game server is run of the same system. I use IIS, based off my server.

All of the files have to be together, so if your website server is on a different server, all of them will be on the website server. You will need to change db.config.php to your database information, and mail.php to what you need (It's commented through it what needs changed. Like $body and the STMP account information)
RebeccaBlack is offline  
Thanks
1 User
Old 05/22/2011, 09:54   #29
 
Svinseladden's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 675
Received Thanks: 240
ty ty now i start to understand how this work. but you say run.

how do you run stuff like php in a server? like i said i'm stupid when it comes to php/html stuff:-( i have a iss server too vps tho not dedicated.

i have to move my site to the same server. should not be a problem. but i run php in the site in html so much i have understand i guess. but the stuff that has to run on the server it self how and where do i implement it and run it in the server part?
Svinseladden is offline  
Old 05/22/2011, 12:24   #30
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
You need the PHP binaries to run it, for Apache I can't help much with installing it, I've never used Apache. But IIS it's not that hard to install it. I'd recommend getting the PHP 5.2 binaries, instead of 5.3, since I've never been able to get mssql_connect to work on 5.3

RebeccaBlack is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Help with LOTF and Hamachi ID Tyler.PC
08/23/2008 - CO2 Private Server - 5 Replies
I was messaged recently by Tyler.PC saying that the source I used on here for the lotf guide, will get me sued. He said that the source was copyrighted, and that they are going to have my server shut down, and he is gonna have them sue me for using the guide, and source. Is it possible for them to do this? If so, cant TQ sue everyone on here for using there source's? I know some things are changed, but basically still the same. So if anyone can tell me if this is possible, I would appreciate...



All times are GMT +1. The time now is 13:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.