Membership Login - Member redirect mobile

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:

<?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