Redirect user

5 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 10, 2011   (RSS)

By Maurice - May 9, 2011

Hi IT,

I created a few users groups


silver
gold
diamond

after registering i want each group to be redirected to a different page or login in page.

got a idea how to do that?

Thnx Maurice
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] Redirect user

By Jason - May 9, 2011

Hi Maurice,

What you can do is set a url variable to a different value depending on which user group was selected. Then you can use the redirectBrowserToURL() function to redirect to that url.

For example:
(I've had to make assumptions as to variable names and how you're selecting a user group)

$url = "default-page.php";
$user_group = @$_REQUEST['user_group'];

if ($user_group == "silver") {
$url = "silver-group.php";
}
elseif ($user_group == "gold") {
$url = "gold-group.php";
}
elseif ($user_group == "diamond") {
$url = "diamond-group.php";
}

redirectBrowserToURL($url);
exit;

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Redirect user

By Maurice - May 9, 2011

Hi J thnx going to give it a try.
-------------------------------------------

Dropmonkey.nl

Re: [Jason] Redirect user

By Maurice - May 9, 2011

Can I put this in the signup page header???
-------------------------------------------

Dropmonkey.nl