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™

Restrictions with Custom Capabilities

s2Member Plugin. A Membership plugin for WordPress®.

Restrictions with Custom Capabilities

Postby holowan » September 13th, 2011, 9:55 am

Hi All,

After watching Jason's excellent videos on working with custom capabilities, I got fiddling with them on my site. But I can't seem to achieve what I'm after.

We have nearly 40 learning products that users gain full access to once they subscribe (regular subscribers are Level 1 users). We're using category restrictions to do this. I want to add a new product (category), but I don't want it to be available to regular subscribers -- only to a new group (or level) of subscribers. And in turn I don't want these new users to have access to content normally available to Level 1 subscribers. Does that make sense?

I could simply begin using Level 2, but I'd like my solution to be expandable...we may want to add 4 or 5 products in the future, and again these products would only be available to subscribers who have been granted access to them (and these subscribers wouldn't have access to anything else).

I thought this would be possible with custom capabilities, but what I'm finding is that the regular Level 1 subscribers also have access to content "marked" with custom capabilities; and users with access to the "custom capabilities" content also have access to everything else.

Am I missing something?!

Thanks!

Geoff
User avatar
holowan
Registered User
Registered User
 
Posts: 17
Joined: April 13, 2011

Re: Restrictions with Custom Capabilities

Postby Bruce C » September 14th, 2011, 1:07 am

Hi Geoff!

Restriction of categories with custom capabilities is tricky. It takes custom code...

However, what I would suggest is that you watch the custom capabilities video again, and instead of guarding your categories with levels, you must move strictly to custom capabilities instead. That's probably what's causing the problem, as anyone with level 1 access can, in turn, access things from level 0.

Maintenance Mode is going to be your friend.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Restrictions with Custom Capabilities

Postby holowan » September 14th, 2011, 5:14 am

Hi Ace,

Thanks a lot for your reply! I understand exactly what you're describing -- so in other words, each of our training titles would be set up as a custom capability; then we'd simply set up users to have access to whatever combination of custom capabilities (titles) we want. Some might have one, some might have 20, etc. Do I have that right?

In terms of implementing this, I'm still weighing the pros and cons of actually doing this, but thanks again for the great info.

Cheers,

Geoff
User avatar
holowan
Registered User
Registered User
 
Posts: 17
Joined: April 13, 2011

Re: Restrictions with Custom Capabilities

Postby Bruce C » September 14th, 2011, 11:15 pm

That's exactly right, you cannot set up restrictions via level without having members of a higher level be able to see the content also.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011


Return to s2Member Plugin

Who is online

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

cron