2 types of CURRENT_USERS

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 4, 2011   (RSS)

Re: [jtedescojam] 2 types of CURRENT_USERS

By robin - October 4, 2011

Hey John,

If you add a "type" menu to the accounts section, that data will automatically be added to the CURRENT_USER variable ($CURRENT_USER['type']). You can use that to verify a users type at the top of a page.

On login, you can set your website membership "WEBSITE_LOGIN_POST_LOGIN_URL" to direct to something like "logindispatch.php". Then redirect users from there to the correct place. e.g. The code might look something like:
if($CURRENT_USER['type']=='retailer') {
redirectBrowserToURL('retailerpage.php');
}


Hope that helps,
Robin
Robin
Programmer
interactivetools.com