Membership Login - Member redirect mobile
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: October 19, 2010 (RSS)
By Maurice - October 19, 2010
We are building a portal.
we have 2 logins
A. standard site
B. mobile site
but more are coming
how ever the membership plugin
wil only redirect after login to 1 page
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = '/dashboard.php'; // user gets redirected here after login
is it possible to add more??
Greetz Maurice
we have 2 logins
A. standard site
B. mobile site
but more are coming
how ever the membership plugin
wil only redirect after login to 1 page
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] = '/dashboard.php'; // user gets redirected here after login
is it possible to add more??
Greetz Maurice
-------------------------------------------
Dropmonkey.nl
Dropmonkey.nl
Re: [Maurice] Membership Login - Member redirect mobile
By Chris - October 19, 2010
Hi Maurice,
I think the simplest solution would be to have dashboard.php do another redirect.
For example:
Does this help? Please let me know if you have any questions.
I think the simplest solution would be to have dashboard.php do another redirect.
For example:
<?php
if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); }
if ($CURRENT_USER['portal'] == 'mobile') {
redirectBrowserToURL('/mobile_dashboard.php');
}
else {
redirectBrowserToURL('/standard_dashboard.php');
}
?>
Does this help? Please let me know if you have any questions.
All the best,
Chris
Chris