auto forward if "account already activated" auto forward if "account already activated"
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

auto forward if "account already activated"

Started by Traeumer76, October 28, 2004, 12:02:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Traeumer76

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

Joachim Müller

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

Traeumer76

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.

Joachim Müller

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