28, May 2012

problem when auto_activation = false - 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: problem when auto_activation = false
« previous next »
Pages: [1] Print

Author Topic: problem when auto_activation = false  (Read 2129 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Sep 06, 2006, 08:44:57 am »

hello there

i've installed the class and everything seems to go smoothly but one thing

when i set auto_activation to false in access_user_class.php and uncomment $my_access->auto_activation = false; in login.php (by the way, are both necessary to turn auto activation off?) the system sends the mail "A new user..." to the user that's trying to register and not to de sys admin. i know that this was a topic before but previous posts didn't help.

i think that the problem may be in this part of the code

                     if (!$this->auto_activation) {
                        $subject = 39;
                        $body = 40;
                     } else {
                        $subject = 28;
                        $body = 29;
                     }
                     if ($this->send_mail($this->user_email, $body, $subject)) {
                        $this->the_msg = $this->messages(13);

i understand that the subject and body change depending on the auto_activation status but the email adress doesn't. could this be the problem?

i also found this line at 377, but i don't understand why is it there

         if ($this->send_mail($this->admin_mail, 40, 39)) {


thank you for the script

leo
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 06, 2006, 08:56:53 am »

hello,

I noticed two days before that the message is not OK if "auto_activation = false" (will fix this soon)

the second thing about the row
   if ($this->send_mail($this->admin_mail, 40, 39)) {

there must be an email to the user always, because he have to validate his e-mail address, while activation another email is send to the admin.

I think the problem is inside the register method, I will check this...Thanks for reporting this.

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Sep 06, 2006, 09:54:28 am »

oh, ok, now i get the complete picture

then the problem is that upon registration the user gets the activation email instead of the validation one, isn't that so?

thanks

leo
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 06, 2006, 10:54:05 am »

oh, ok, now i get the complete picture

then the problem is that upon registration the user gets the activation email instead of the validation one, isn't that so?

thanks

leo

right Wink

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


It's time to use PHP5!


« Reply #4 on: Sep 06, 2006, 02:07:07 pm »

Leo,
check the updated version (there are some other updates too)

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #5 on: Sep 06, 2006, 11:01:19 pm »

great news. i've tried the new version and it works ok.

by the way i think i detected another issue. sorry!

if the admin selects NO for activating the account of the new user, the new user gets an email that says that the account is ready to use, when that is not so. am i right?

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


It's time to use PHP5!


« Reply #6 on: Sep 07, 2006, 12:26:01 am »



if the admin selects NO for activating the account of the new user, the new user gets an email that says that the account is ready to use, when that is not so. am i right?

leo

I think that happens if the admin select the checkbox to inform the user right?

you know the script is a class and alle files are examples, its up to the programmer how the script is used (my own applications are never the same...)

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3965
Tags : 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: problem when auto_activation = false
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 04:18:00 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.