PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Override level inheritance?

s2Member Plugin. A Membership plugin for WordPress®.

Override level inheritance?

Postby squibs » May 28th, 2011, 6:12 am

Is it possible to have a level 2 member not inherit the priviliges of a level one member? I'm looking for a way to use this plugin to allow two sets of subscribers access to two distinct content areas.
User avatar
squibs
Registered User
Registered User
 
Posts: 8
Joined: May 28, 2011

Re: Override level inheritance?

Postby Cristián Lávaque » May 28th, 2011, 12:51 pm

No and yet, let me explain.

Higher levels will see what lower levels can, and this is true when you use the access restrictions with the meta box in the edit page, or the panels in the General Options page.

That said, you can use conditionals inside your post to say the specific level that'll see the content wrapped in that condition. WP Admin -> s2Member -> API / Scripting -> Using Simple Conditionals

Example #3: Specific content for each different Member Level.

[s2If current_user_is(s2member_level4)]
Some premium content for Level 4 Members.
[/s2If]

[s2If current_user_is(s2member_level3)]
Some premium content for Level 3 Members.
[/s2If]

[s2If current_user_is(s2member_level2)]
Some premium content for Level 2 Members.
[/s2If]

[s2If current_user_is(s2member_level1)]
Some premium content for Level 1 Members.
[/s2If]

[s2If current_user_is(s2member_level0)]
Some content for Free Subscribers.
[/s2If]

[s2If is_user_not_logged_in()]
Some public content.
[/s2If]


All that said, you could use just Level 1 and separate the groups with custom capabilities, which would allow you to use the conditionals, but also the meta box in the edit panel to protect the whole page and redirect to the Membership Options Page (if that's what you want). http://www.s2member.com/custom-capabilities-video/

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Override level inheritance?

Postby squibs » May 28th, 2011, 2:52 pm

Outstanding! Thanks :-)
User avatar
squibs
Registered User
Registered User
 
Posts: 8
Joined: May 28, 2011

Re: Override level inheritance?

Postby Cristián Lávaque » May 28th, 2011, 4:32 pm

:)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron