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 ,
Started on the old forum in December 2010 · view the original in the archive · old links redirect here
TL;DR · summary of 18 replies
- -mirror was unable to get his activation link working and needed help from others.
- -whiteboy provided a basic solution involving creating an email verification system with a new column in the users table for validation codes.
- -frostymarvelous offered more detailed steps including hashing user details, sending a unique hash via email, validating it on the verification page, and updating the database accordingly.
- -mirror had trouble implementing his activation link solution and needed further assistance to resolve issues with emails not being sent or activation keys not inserted.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
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">here</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.
ask me! do not steal! be inventive!
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 you
Visit: 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... _______…
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!
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!
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
mate export your users table and upload ur register and login pages ill do it for you.
Creator of Epix.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-forums/marketplace/153110-free-features-for-your-wapsite
mate add this in your registration form..
$random_number = rand(5000000,9000000000);
$rform .= "$vld <input type="hidden" name="vld" format="*x" value="$random_number" maxlength="30"/>";
Loony wrote: mate 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 favour
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.
Creator of Epix.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-forums/marketplace/153110-free-features-for-your-wapsite
Loony wrote: 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.
uhmmm its not working , something wrong here in this line 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 .
wap2k wrote: change
if (mail($email,Validation link from, $body))with
if(mail($email,"Validation link from", $body))
, yes . i corrected it tht way but still no mails are sent n even activation key is not inserted
I have make it in my site, pm me if u want it..
our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Also this same problem in my uloki script, activation emails are n0t sent to users. Plz haz ani1 correct hiz own shuld kindly help me. Tanx
Also this same problem in my uloki script, activation emails are n0t sent to users. Plz haz ani1 correct hiz own shuld kindly show me the way out. Tanx
mirror wrote: 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
I using ejatd29 sc, so what must i do, plz teach me,
I'm not good but wanted to be clever 🙂