Change continue link after register? Change continue link after register?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Change continue link after register?

Started by iblazed, January 28, 2006, 07:02:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iblazed

After a user registers they get a message "Your account is now active and you can login" with a continue button. The continue button currently links to index.php how can I change it so it links to login.php?
I appreciate any help on this. Everything I have tried hasn't worked. Thanks

Paver

What have you tried?  There are a number of places in register.php where continue message boxes are sent with a link to 'index.php'.  For example, this is the one with the message you mentioned ("your account is now active ..."):
msg_box($lang_register_php['information'], $lang_register_php['acct_active'], $lang_continue, 'index.php');

You should be able to change 'index.php' to 'login.php' on this line.  The other message boxes are for various possibilities of the config settings for admin activation and valid email.  For whatever page you want the continue to link to the login page, look for the message on the page, find it in lang/english.php, then find the key value (like 'acct_active' above) in register.php and change the line as desired.

iblazed

That worked. I don't know how I missed that. Thanks for your help.