Membership Plugin Question

14 posts by 2 authors in: Forums > CMS Builder
Last Post: September 12, 2012   (RSS)

Re: [Jason] Membership Plugin Question

By meg - September 12, 2012

Right now I have them as checkboxes in the user account form. Should I change that to a drop down? How should I set this up? In total, there are technically 5 different user types:
fellow, certified, associate, classroom educator and subscriber. (Clients always add more at the last minute!) There will be 5 different landing pages. There is no default page for a generic user, since a user has to be one of those types. Does that make sense? How should I set this up?

By Jason - September 12, 2012

Hi Meg,

No problem. The issue here was that checkboxes will always have a value of either 1 or 0, so you can change your if statement to look like this:

if ($CURRENT_USER['fellow']) {
$url = "/member/fellows.php";
}
elseif ($CURRENT_USER['certified']) {
$url = "/member/certified.php";
}
elseif ($CURRENT_USER['associate']) {
$url = "/member/associate.php";
}
else {
$url = "/member/subscriber.php";
}



It's important to note that if more than checkbox is checked, they'll be redirected to the last one found in the list.

Hope this helps
---------------------------------------------------
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] Membership Plugin Question

By meg - September 12, 2012

That's good to know. Thank you!