Re: [meg] Membership Plugin Question
Hi Meg,
No problem. The way I normally set this up is to have the plugin redirect all users to a single "launching" page. All this page does is figure out what user level they are and redirects them.
EXAMPLE:
if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); exit; }
$url = "";
if ($CURRENT_USER['user_type'] == 1) {
$url = "profile.php";
}
elseif ($CURRENT_USER['user_type'] == 2) {
$url = "admin.php";
}
else {
$url = "homepage.php";
}
redirectBrowserToURL($url);
exit;
In this example, if "user_type" was 1, they are redirected to profile.php. If its 2, they're redirected to admin.php. If they have anything else, they get sent to homepage.php.
Hope this helps get you started
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/