Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: how to validate users by sending activation link in email ,

  1. #1
    Senior Member
    Join Date
    May 2010
    Posts
    108
    Thanks
    27
    Thanked 1 Time in 1 Post
    Rep Power
    4

    Post how to validate users by sending activation link in email ,

    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
    Attached Files Attached Files

  2. #2
    Junior Member whiteboy's Avatar
    Join Date
    Oct 2009
    Posts
    26
    Thanks
    6
    Thanked 2 Times in 1 Post
    Rep Power
    0

    Default

    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&amp;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.

  3. The Following 2 Users Say Thank You to whiteboy For This Useful Post:

    mirror (04-12-10), standalone (10-06-11)

  4. #3
    Senior Member
    Join Date
    May 2010
    Posts
    108
    Thanks
    27
    Thanked 1 Time in 1 Post
    Rep Power
    4

    Default

    hey bro can u modify in the script i posted n give me , tht validation thing is coming in between (banghead)

  5. #4
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,973
    Thanks
    442
    Thanked 380 Times in 181 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    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: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  6. The Following 2 Users Say Thank You to subzero For This Useful Post:

    mirror (04-12-10), oruvan (21-01-11)

  7. #5
    Senior Member
    Join Date
    May 2010
    Posts
    108
    Thanks
    27
    Thanked 1 Time in 1 Post
    Rep Power
    4

    Default

    hehe nice reply u give friend i better just read the forums instead of posting here , anyway thnks i got the idea from ur posting , i wont forget to thank u

  8. #6
    Senior Member frostymarvelous's Avatar
    Join Date
    Jun 2010
    Location
    Accra, Ghana.
    Posts
    258
    Thanks
    3
    Thanked 20 Times in 17 Posts
    Rep Power
    4

    Default

    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.

  9. #7
    Senior Member
    Join Date
    May 2010
    Posts
    108
    Thanks
    27
    Thanked 1 Time in 1 Post
    Rep Power
    4

    Default

    just in my initial stages of coding bro so a little asking for help , i will try again

  10. #8
    Senior Member frostymarvelous's Avatar
    Join Date
    Jun 2010
    Location
    Accra, Ghana.
    Posts
    258
    Thanks
    3
    Thanked 20 Times in 17 Posts
    Rep Power
    4

    Default

    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.....

  11. #9
    Senior Member
    Join Date
    May 2010
    Posts
    108
    Thanks
    27
    Thanked 1 Time in 1 Post
    Rep Power
    4

    Default

    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
    Attached Files Attached Files

  12. #10
    Moderator Loony's Avatar
    Join Date
    Apr 2009
    Location
    australia
    Posts
    212
    Thanks
    2
    Thanked 33 Times in 13 Posts
    Rep Power
    5

    Default

    mate export your users table and upload ur register and login pages ill do it for you.
    Owner And Creator of [Only registered and activated users can see links. Click Here To Register...] Something New!


  13. The Following User Says Thank You to Loony For This Useful Post:

    mirror (21-01-11)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Validate List 1.0 Lava
    By centi in forum Coding Forum
    Replies: 3
    Last Post: 13-03-10, 02:20
  2. email link to veryfi
    By brand in forum REQUEST FORUM
    Replies: 1
    Last Post: 04-12-09, 14:44
  3. selecting all emails from database and sending email
    By Dhruva7 in forum Coding Forum
    Replies: 13
    Last Post: 09-10-09, 15:57
  4. Sending All Users One Message
    By nclemale36 in forum Scripts Forum
    Replies: 6
    Last Post: 10-02-08, 06:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19