Page 1 of 1

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

PostPosted: April 20th, 2011, 2:19 pm
by omegabetting
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

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

PostPosted: April 20th, 2011, 5:44 pm
by cassel
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).

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

PostPosted: April 20th, 2011, 5:52 pm
by Cristián Lávaque
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. :)

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

PostPosted: April 20th, 2011, 6:17 pm
by omegabetting
Perfect thanks, Just watched the video. Just what I'm looking for!

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

PostPosted: April 20th, 2011, 7:52 pm
by Cristián Lávaque
:)

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

PostPosted: April 21st, 2011, 5:23 pm
by omegabetting
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?

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

PostPosted: April 21st, 2011, 7:16 pm
by Cristián Lávaque
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. :)