Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: auto forward if "account already activated"  (Read 3018 times)

0 Members and 1 Guest are viewing this topic.

Traeumer76

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
auto forward if "account already activated"
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: auto forward if "account already activated"
« Reply #1 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
Logged

Traeumer76

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: auto forward if "account already activated"
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: auto forward if "account already activated"
« Reply #3 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
Code: [Select]
  'acct_already_act' => 'Your account is already active !',and replace with
Code: [Select]
  '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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.