how to validate user by sending email link or code on email

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    whats u mean? there have many skill u can use my code and ozzie.. just did it and try by try.. i think u had got the chlue

    Added after 4 minutes:

    Code:
    $vcode = $_GET['vcode'];
    if (!$vcode)
        echo "No code supplied";
    else
    {
        $check = mysql_query("SELECT * FROM ibwf_users WHERE vcode='$vcode' AND vstatus='1'");
        if (mysql_num_rows($check)==1)
            echo "You have already activated your account";
        else
        {
            $activate = mysql_query("UPDATE ibwf_users SET vstatus='1' WHERE vcode='$vcode'");
            echo "Your account has been activated!";
        }
    
    }
    insert the row sql i posted before 0r use your own

    Added after 5 minutes:

    there have many ideas you can use,, i think the simple one u can use the code above by validate through by link in email ...my suggestion that it is smart after activated/validated users redirect to login than no need to enter password and username... just by link...

    What's your sitename mirror?
    Last edited by ewanz; 02.02.12, 15:16.
    our lfe is simple words....
    http://mygenkz.net
    ewanz06@yahoo.com
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    Comment


      #32
      what would be kool make it so if a user hasnt logged in for 3 months their activation code expires requiring them to request a new one









      Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
      Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

      Comment


        #33
        Originally posted by ozziemale31 View Post
        what would be kool make it so if a user hasnt logged in for 3 months their activation code expires requiring them to request a new one
        hey bro one thing i forgot what abt if the user wants to RESEND THE ACTIVATION EMAIL , blah all this mods will really create a revolution for lavalair

        Comment


          #34
          Originally posted by ozziemale31 View Post
          what would be kool make it so if a user hasnt logged in for 3 months their activation code expires requiring them to request a new one
          yeah..absolutely cool... it is good idea...

          Added after 2 minutes:

          Originally posted by mirror View Post
          hey bro one thing i forgot what abt if the user wants to RESEND THE ACTIVATION EMAIL , blah all this mods will really create a revolution for lavalair
          just use a code like had before, it is simple but good idea too..
          Last edited by ewanz; 03.02.12, 12:10.
          our lfe is simple words....
          http://mygenkz.net
          ewanz06@yahoo.com
          PHP Code:
          $output="i am NOoob....";
          $newfile="ewanz.txt";
          $file fopen ($newfile"w");
          fwrite($file$output);
          fclose ($file); 

          Comment


            #35
            i keep getting an encrypted password mate tried different ways

            Your new account is setup you can login with login name:rampage and password:d41d8cd98f00b204e9800998ecf8427e

            In case you can validate yourself by this code : 65747331



            below is my register function in core
            PHP Code:
            function register($name,$pass,$usex,$bday,$uloc,$rname,$ms,$email,$code){
              
            $execms mysql_query("SELECT * FROM ibwf_users WHERE name='".$name."';");
              if (
            mysql_num_rows($execms)>0){ return 1; }else
              { 
            $pass md5(strtolower($pass));
              
            $reg mysql_query("INSERT INTO ibwf_users SET name='".$name."', pass='".$pass."', birthday='".$bday."', sex='".$usex."', location='".$uloc."', regdate='".time()."',  email='".$email."', rname='".$rname."',vcode='".$code."', ms='".$ms."' ");
              } if
              (
            $reg)
              {
                
            $pwd md5(strtolower($pwd));
                
            $subject "******";
              
            $headers "From:****@gmail.com";
              
            $time time();
              
            $ddt date("M d y"$time);
              
            $vcode mysql_fetch_array(mysql_query("SELECT vcode FROM ibwf_users WHERE name='".$name."'"));

              
            $epwd md5(strtolower($pwd));
            $uinf mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
              
            $body "Date: $ddt - Account Detail\n\n Hello $name,\n\nYour new account is setup you can login with login name:$name and password:$pwd\n\nIn case you can validate yourself by this code : ".$vcode[0]."";
              
            mail($email$subject$headers$body);$uid mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE name='".$name."'"));
              
            $body "****** welcomes you! We are committed to provide you with unique services, like multimedia messaging, multiplayer online games and lots of other various tools for you to have  fun. We know that you come to WAP after getting time from your busy schedule so we are always ready hear to provide you a friendly and fun filled environment to ease your tensions. For any queries please ask any member of Administration Team. Thanks![br/][small]Note: This is an automatically generated message, please do not reply.[/small]";
              
            $msg mysql_escape_string($msg); autopm($msg$uid[0]); return 0;
               }
               } 









            Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
            Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

            Comment


              #36
              Originally posted by ozziemale31 View Post
              i keep getting an encrypted password mate tried different ways

              Your new account is setup you can login with login name:rampage and password:d41d8cd98f00b204e9800998ecf8427e

              In case you can validate yourself by this code : 65747331



              below is my register function in core
              PHP Code:
              function register($name,$pass,$usex,$bday,$uloc,$rname,$ms,$email,$code){
                
              $execms mysql_query("SELECT * FROM ibwf_users WHERE name='".$name."';");
                if (
              mysql_num_rows($execms)>0){ return 1; }else
                { 
              $pass md5(strtolower($pass));
                
              $reg mysql_query("INSERT INTO ibwf_users SET name='".$name."', pass='".$pass."', birthday='".$bday."', sex='".$usex."', location='".$uloc."', regdate='".time()."',  email='".$email."', rname='".$rname."',vcode='".$code."', ms='".$ms."' ");
                } if
                (
              $reg)
                {
                  
              $pwd md5(strtolower($pwd));
                  
              $subject "******";
                
              $headers "From:****@gmail.com";
                
              $time time();
                
              $ddt date("M d y"$time);
                
              $vcode mysql_fetch_array(mysql_query("SELECT vcode FROM ibwf_users WHERE name='".$name."'"));

                
              $epwd md5(strtolower($pwd));
              $uinf mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
                
              $body "Date: $ddt - Account Detail\n\n Hello $name,\n\nYour new account is setup you can login with login name:$name and password:$pwd\n\nIn case you can validate yourself by this code : ".$vcode[0]."";
                
              mail($email$subject$headers$body);$uid mysql_fetch_array(mysql_query("SELECT id FROM ibwf_users WHERE name='".$name."'"));
                
              $body "****** welcomes you! We are committed to provide you with unique services, like multimedia messaging, multiplayer online games and lots of other various tools for you to have  fun. We know that you come to WAP after getting time from your busy schedule so we are always ready hear to provide you a friendly and fun filled environment to ease your tensions. For any queries please ask any member of Administration Team. Thanks![br/][small]Note: This is an automatically generated message, please do not reply.[/small]";
                
              $msg mysql_escape_string($msg); autopm($msg$uid[0]); return 0;
                 }
                 } 
              ya i also faced the same problem so resorted to validation by clicking link using verify.php

              Comment


                #37
                we just need to find a way to make the code decrypt the actual password being sent to email other then that ive got everything else working









                Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                Comment


                  #38
                  sweet i just got it all to work nicely emails user id password and code pluss a link to login ill post the full code in the next day or so adding a few final touches :p









                  Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                  Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                  Comment

                  Working...
                  X