Membership after signup redirects to profile
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 24, 2020 (RSS)
By hk - April 23, 2020
I cannot figure out where this setting is to change.
I want to redirect to a specific page after signup to a new account with auto login.
I skip the email verification, because the user needs an invitation code to signup.
I use this code:
// ... add more form fields here by copying the above line!
$userNum = mysql_insert(accountsTable(), $colsToValues, true);
$email = $_REQUEST['email']; $password = $_REQUEST['password'];
$_REQUEST = array(); // clear form values
redirectBrowserToURL('/films/?action=login&username='.$email.'&password='.$password);
It always goes to the profile page.
Thanks
Helmut
By daniel - April 24, 2020
Hi Helmut,
It's possible to configure a post-login URL in the main Website Membership plugin file, generally found as /cmsb/plugins/websiteMembership/websiteMembership.php. Near the top you can find the "WEBSITE_LOGIN_POST_LOGIN_URL" setting which will be on a line like this:
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = PREFIX_URL.'/';
It sounds like it's probably currently configured to go to "user-profile.php" or something similar. You can change this to your desired URL, like this:
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = PREFIX_URL.'/your-custom-page.php';
Let me know if that does the trick, or if you have any other questions.
Thanks!
Technical Lead
interactivetools.com