Membership access to some or all pages

By ScottL - July 30, 2010

Here's what I'm trying to accomplish:

My client offers 8 different insurance programs - a member will be granted access to view any number of them - one, some, or all. Each insurance program will simply be a single Detail page

Ideally, when a user logs-in, they are forwarded to their landing page showing a list of "Insurance Programs" available to them.

My client will "signup" a member and designate access via checkboxes. I see how the list is created in the User editor with checkboxes (multi value) and list options.

What code do I need to confirm membership level after login that displays a formatted landing page with links to respective areas?


Thanks

Re: [thinkng] Membership access to some or all pages

By Jason - July 30, 2010

Hi,

If you're using the membership plugin, and your storing their "Membership level" in the accounts table, you should be able to access this variable using $CURRENT_USER['*FIELD NAME*'] where *FIELD NAME* is the name of the field in the accounts table that your storing their membership level in.

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: [Duches77] Membership access to some or all pages

By Jason - September 16, 2010

Hi Jessica,

Adding lines to the accesslist table is only required for users who are accessing the CMS Backend (ie, actually logging into CMS Builder and accessing records there). If you are using the signup form that came with the website membership plugin, then by default those users don't have any back end permissions.

If users only need to log in and access the front end, you don't need to set up any user permissions.

Hope this helps. Let me know if you have any other questions.
---------------------------------------------------
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 access to some or all pages

That's exactly what I was hoping for. LOL... thanks! [cool]
-----
~Jessica Sullivan, Crystal Realm Designs.

Re: [Duches77] Membership access to some or all pages

By khimcole - October 3, 2010

thanks alot guys! This really enlightens me on what to do on website. I have tried a lot of plugins already...