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™

Is there anyway to prevent Level 2 users accessing level 1?

s2Member Plugin. A Membership plugin for WordPress®.

Is there anyway to prevent Level 2 users accessing level 1?

Postby omegabetting » April 20th, 2011, 2:19 pm

Hi guys.

I'm currently setting up a sports tipping website and would like to offer people the option to subscribe to individual sports.

I.e: Level 1 - Football
Level 2 - Horse Racing
Level 3 - Other Sports (Depending on what's in season, Snooker, NFL, F1 ect)
Level 4 - Everything

Now the way this plugin works currently is that a level 2 user would have access to Football as well, which isn't ideal. Is there a way to prevent this or to create multiple level 1's?

Thanks,
Pete
omegabetting.co.uk
User avatar
omegabetting
Registered User
Registered User
 
Posts: 3
Joined: April 20, 2011

Re: Is there anyway to prevent Level 2 users accessing level

Postby cassel » April 20th, 2011, 5:44 pm

Christian will probably chime in, but i know the answer to this one as i have asked it myself. The levels are building on each other. So level 2 will have access to level 1 and level 3 will have access to levels 1 and 2, and so on, so to create different packages like you are mentioning, you will need to use the Custom Capability Packages. Those packages can be anything you want so you can have one package for Horse racing, one for othe sports, and one for "all of the above" (and you can have many more custom packages without using the levels).
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: Is there anyway to prevent Level 2 users accessing level

Postby Cristián Lávaque » April 20th, 2011, 5:52 pm

Yes, you could set them all at Level 1 and group them with custom capabilities.

WP Admin -> s2Member -> API / Scripting -> Custom Capabilities
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: Is there anyway to prevent Level 2 users accessing level

Postby omegabetting » April 20th, 2011, 6:17 pm

Perfect thanks, Just watched the video. Just what I'm looking for!
User avatar
omegabetting
Registered User
Registered User
 
Posts: 3
Joined: April 20, 2011

Re: Is there anyway to prevent Level 2 users accessing level

Postby Cristián Lávaque » April 20th, 2011, 7:52 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

Re: Is there anyway to prevent Level 2 users accessing level

Postby omegabetting » April 21st, 2011, 5:23 pm

Quick quesiton regarding CCP's, If a post is tagged with two CCP's (through the interface on the right of the post) will this allow a user with either to view it or will the user require both? If the user needs both is there a way round this?
User avatar
omegabetting
Registered User
Registered User
 
Posts: 3
Joined: April 20, 2011

Re: Is there anyway to prevent Level 2 users accessing level

Postby Cristián Lávaque » April 21st, 2011, 7:16 pm

Because of the way WordPress handles ccaps, the person would be required to have both.

I'm sorry, but the only way I can think around this is to create a copy of the page/post for each ccap, as ugly as it sounds. :(

Hmm... Well, you could have a third custom capability that represents the other individual two together. E.g.: music, video, musicvideo.

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


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron