Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2008
    Location
    New York
    Posts
    308
    Tokens
    0

    Default E-mail confirmation link PHP

    I'm trying to advance the PHP skills I have now and make a user system with some more features. I'm stuck on how to create the user-system so that the user gets an email with a confirmation link in which they have to click then they would be verified and be able to use the site.
    ~ PixelPoco.com Co-Founder
    ~ Freelance Web developer.
    ~ Currently: Unavailable for work.



    Quote Originally Posted by Favourtism View Post
    i facebooked ur mum
    Lulz

  2. #2
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    I coded exactly that a few days ago, it's pretty simple. Add two fields to your user table, (activationkey and activated) upon registration make a variable that creates a random number code and insert it into the actvationkey column. Then set activated to no. Then have an email be sent to the user's email with a link something like this "http://www.yoursite.com/activate.php?key=$activationkey" $activationkey being the variable that holds their key number.

    Then make account.php which uses an if statement to see if the user's account is activated, if it isn't then update the activated column to yes where activationkey = $_GET['activationkey'].

    If you get my drift, ask me on msn/twitter of you need any more help as this is sort of a brief description.

  3. #3
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Or you could just have "Activation" and set a code, if confirmed set it with "true"
    Hi, names James. I am a web developer.

  4. #4
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:


  5. #5
    Join Date
    Oct 2008
    Location
    New York
    Posts
    308
    Tokens
    0

    Default

    Thank you. +Rep
    ~ PixelPoco.com Co-Founder
    ~ Freelance Web developer.
    ~ Currently: Unavailable for work.



    Quote Originally Posted by Favourtism View Post
    i facebooked ur mum
    Lulz

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    If that doesn't work..

    Just have two fields, activation_code & activated (default, 0).

    E-mail them with the activation code, which links to a file on your site, it checks it.. then sets activated to 1.

    Easy

Posting Permissions

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