coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Traeumer76 on October 28, 2004, 12:02:08 PM

Title: auto forward if "account already activated"
Post by: Traeumer76 on October 28, 2004, 12:02:08 PM
Hi there

When someone registers or activates his account via email, he gets the thanks/welcome message and then is forwarded to index.php.

Is this also possible for the case the account was already activated or can´t be activated for any reason? I couldn´t find the place where this is defined.

And an additional question: Is it possible to change the time it takes until being forwarded?

Thanks a lot,
Lothar
Title: Re: auto forward if "account already activated"
Post by: Joachim Müller on October 29, 2004, 09:30:49 AM
You'll get the message "Your account is already active !" if you click on the activation link a second time. If activation fails, you'll get "This account can't be activated !".

Joachim
Title: Re: auto forward if "account already activated"
Post by: Traeumer76 on October 31, 2004, 10:20:16 PM
Maybe i´m the only one who understood what i wanted to know.  ;)

I know the 2 messages. And i would like to get forwarded to index.php as it does if activation is successful.
Title: Re: auto forward if "account already activated"
Post by: Joachim Müller on November 01, 2004, 03:21:45 PM
Well, no big deal. Just edit the string in the language file you're using (make sure to escape single quotes with a backslash), e.g. edit lang/english.php, find  'acct_already_act' => 'Your account is already active !',and replace with  'acct_already_act' => 'Your account is already active ! Click <a href="index.php">here</a> to go to the index page.',
There will be no auto-forwarding though, the user has to perform the click, as this is handled with the error catching function - the script dies. If you want "auto-forward" with browser-refresh, you will have to modify the code of register.php a bit.

Joachim