28, May 2012

automatic validation during registration - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: automatic validation during registration
« previous next »
Pages: [1] Print

Author Topic: automatic validation during registration  (Read 3049 times)
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« on: Sep 20, 2006, 11:09:20 pm »

Hi! Thanks for this script! Took me a few hours to get into it (newbie). Is there any way to make the validation an automatic? Manual activation sucks a little...

cheers mate Smiley
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 20, 2006, 11:22:05 pm »

The whole system needs a valid e-mail address... the account is working after the user has validated his account is this not automatic enough?

My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #2 on: Sep 20, 2006, 11:28:50 pm »

It's cool don't get me wrong, it's just when I sign up to a message board, the validation link allows me to sign in straight away, whereas the access_user_class script requires manual validation - which means I'd have to activate the account between certain times of the day when I'm awake. This might put visitors off. I don't mind manually activating the accounts but the my bones are screaming for efficiency lol...

cheers anyway Smiley

P.S. The validation emails to hotmail addresses don't get there. If I sign up using one of my NTL addresses, it comes straight away. Strange...

The emails don't go into the Hotmail junk folder or anything. Maybe they're severely delayed...
« Last Edit: Sep 20, 2006, 11:49:43 pm by Subyne Simean »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Sep 21, 2006, 12:13:52 am »

You want to activate and login in one step?

about the mail:
replace inside the mail function the "\r\n" with only the "\n"

My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #4 on: Sep 21, 2006, 07:08:10 pm »

I removed all instances of "\r" in the following code from the access_user_class.php file (leaving "\n" in it's place), but hotmail addresses still don't receive a validation email.

Code:
function send_mail($mail_address, $msg = 29, $subj = 28, $send_admin = false) {
$header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\n";
if ($send_admin) $header .= "Bcc: ".ADMIN_MAIL."\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Mailer: Olaf's mail script version 1.11\n";
$header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$header .= "Content-Transfer-Encoding: 7bit\n";
$subject = $this->messages($subj);
$body = $this->messages($msg);
if (mail($mail_address, $subject, $body, $header)) {
return true;
} else {
return false;
}
}

You want to activate and login in one step?

Yes please
« Last Edit: Sep 21, 2006, 07:22:51 pm by Subyne Simean »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 21, 2006, 07:36:20 pm »

For the mail problem wait some days, I'm busy with a version where the mail is send by a external maler class,

the automatic login is a nice feature, I will think about ... (but this will take some time)

Total Zero
*
Posts: 5
38 credits
Members referred : 0



« Reply #6 on: Sep 22, 2006, 04:21:28 pm »

On line 8 of login.php there is:

  //$my_access->auto_activation = false; // use this (true/false) to stop the automatic activation

  You don't have to be awake and manually activate the accounts then (if that's part of what you were referring to).
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #7 on: Sep 23, 2006, 12:40:36 pm »

I set auto activation to "true" but it will not auotmatically activate a new account.
« Last Edit: Sep 24, 2006, 03:03:44 pm by Subyne Simean »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 23, 2006, 05:55:23 pm »

Login and/or password did not match to the database. The auto login doesn't work
please start a new thread for a new item (and describe a little bit more)

My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #9 on: Sep 24, 2006, 03:09:10 pm »

I set auto activation to "true" but it will not automatically activate a new account.

sorry for the double post. i edited my last one but that doesn't bump up the thread to gtet your attention lol Smiley
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Sep 24, 2006, 03:37:49 pm »

I set auto activation to "true" but it will not automatically activate a new account.

sorry for the double post. i edited my last one but that doesn't bump up the thread to gtet your attention lol Smiley

I posted my answer about this before...

My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #11 on: Sep 24, 2006, 03:46:53 pm »

I know, it's just someone pointed me to a part of the script which looked like I could set the activation to automatic.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4196
Tags : databases email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: automatic validation during registration
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:29:04 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.