password reset page redirect

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 1, 2013   (RSS)

By gregThomas - March 1, 2013

Hi Jeff,

Is this the back link in the success message? The back link takes you to the login page that is set in the website membership plugin. You can change this by editing websiteMembership.php in your plugin directory, and changing the WEBSITE_LOGIN_LOGIN_FORM_URL global to the location of your log in page. 

If you want to redirect the user after they have finished editing their account, you could use the CMS Builder function redirectBrowserToURL:

redirectBrowserToURL('/index.php');

You would need to place this at the point that the success messages are being created, for example on the sign up page you would need to place it here:

      // show thanks
      //$errorsAndAlerts  = "Thanks, We've created an account for you and emailed you your password.<br/><br/>\n";
      //$errorsAndAlerts .= "If you don't receive an email from us within a few minutes check your spam filter for messages from {$fromEmail}<br/><br/>\n";
      //$errorsAndAlerts .= "<a href='{$GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL']}'>Click here to login</a>.";

      redirectBrowserToURL('/index.php');

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com