hey friends i searched a lot here even inside the scripts but cant find the link on how to validate users by sending them activation link in emails , i want to remove validation by staff so tht users with valid email id can only enter my site , m attaching a copy of my registration script here , thanking u all in advance
how to validate users by sending activation link in email ,
Collapse
X
-
why don`t you make a new row in users table with name email_verify, and at register.php, after user pressed submit button, code some informations in md5, and sent mail: 'Hello $user, click <a href=http://yoursite.com/verify.php?code=$md5iformation&user=$user">her e</a> to complete registration."
verify.php must contain:
$user=$_Get['user'];
$code=$_GET['code'];
extract the code from sql where user==$user and verify if $code==$email_verify
it is so simple.
succes.
apologize for any possible mistake of expression.
-
lol, Why code it ??
Dude thats the best hint on this world and you can easy learn from them...
Learn to code ok here we do not work for you here is where we train you up to be the best.
Place vaild_user in sql
add
ID / CODE1 / CODE2 / ACTIVATE
index ('ID')
then in login
if user id code1 and code2
if($code[1]>$code[2])
{
Welcome Num Nuts
}else{
You still got no idea how stupid you look right now.
Why Go and activate your Mail idiot!
}
here is more sample for youVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Dude. You need to as whiteboy said, create a new column iin ur users table. Set default to no or 0 or wateva.
When users register, send them a link with. Hash of their user details. Choose carefully as using just username, they can detect and end up spamming ur site.
So say , username email and a salt all hashed.
When the user enters the code in you verification page. Use get so. You can send an url to them.
Here's the tricky part, you can either store the hash in a column and just query it or a more inefficient way is just to fetch all rows and compare the hash of their details with the. Submitted hash.
You can choose to do it as you wish but basically, that is it.
Unless, as I can infer from your second post you can't code. Then you need to get someone to do it for you.
I accept liberty reserve btw.Perfection comes at a cost
I accept liberty!
Comment
-
Ok, so simple steps.
Create two columns in the user table.
One named "code" and the other, "verified"
Code should not be null and verified should default to a negative response. "0" or "no" whichever you prefer.
When the user registers, create the hash unique to that user, eg. Md5($un."suitably long salt")
Send this code to user in email.
Now. Your verify page should take the input, sanitise it then make a query for that hash. You can take the username also and compare the hash and username(extra security). Make sure it is not already verified the update table, and echo a success msg.
Goodluck.
Teach a man to fish.....Perfection comes at a cost
I accept liberty!
Comment
-
hey i m not able to get thing working bro , i created this activate.php , i hve tables named CODE and ACTIVE in users , email r sent to users also but even without clicking the link they r able to enter pls help in this , i m enclosing my old registraton n new which i modified , and activate.php also , , i hve been trying for months
Comment
-
mate export your users table and upload ur register and login pages ill do it for you.Creator ofEpix.Mobi
Keep an Eye on us Big things coming soon!!!!
Need something for your site hit me up here
http://coding-talk.com/forum/main-fo...r-your-wapsite
Comment
-
Originally posted by Loony View Postmate export your users table and upload ur register and login pages ill do it for you.
okay bro here is what u asked for , it would be a great favourAttached Files
Comment
-
man i done this on my iphone so if it doesnt work just read the error and check that line there might be some errors but it all should work.
Added after 2 minutes:
also ur lucky i agreed be4 i saw what script is was if i knew it was lavalair i wouldnt have done it i have never made updates for lava and never will again seeing those files bought back my feelings towards that script.Attached FilesLast edited by Loony; 18.01.11, 10:51.Creator ofEpix.Mobi
Keep an Eye on us Big things coming soon!!!!
Need something for your site hit me up here
http://coding-talk.com/forum/main-fo...r-your-wapsite
Comment
-
Originally posted by Loony View Postman i done this on my iphone so if it doesnt work just read the error and check that line there might be some errors but it all should work.
Added after 2 minutes:
also ur lucky i agreed be4 i saw what script is was if i knew it was lavalair i wouldnt have done it i have never made updates for lava and never will again seeing those files bought back my feelings towards that script.
if (mail($email,Validation link from, $body))
mail is not sent and the code also not generated or inserted and i m not able to login from my pc any id dnt know why .
Comment
Comment