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
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
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.
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