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™

Custom capabilities not being picked up by conditional

s2Member Plugin. A Membership plugin for WordPress®.

Custom capabilities not being picked up by conditional

Postby nathardwick » August 18th, 2010, 6:49 am

Hi

I'm trying to set up some custom capabilities using conditionals but my custom cap's don't seem to be being picked up... I've tried with my own then tested with the ones in the docs but to no avail :(

Setting it to those without custom cap (ie. using ! ) displays content to all - even if they have the custom cap in the conditional - which suggests it's just not being picked up - in the user listing, I can see it but it just doesn't get picked up.

Any help would be appreciated,
N
User avatar
nathardwick
Registered User
Registered User
 
Posts: 25
Joined: August 8, 2010

Re: Custom capabilities not being picked up by conditional

Postby nathardwick » August 18th, 2010, 6:56 am

Sorry - I was being dumb... I was adding the whole access_s2member_ccap to it myself and therefore doubling up - didn't realise it was prepended automatically - was confused by the docs... (I'm easily confused!)

N
User avatar
nathardwick
Registered User
Registered User
 
Posts: 25
Joined: August 8, 2010

Re: Custom capabilities not being picked up by conditional

Postby Jason Caldwell » August 24th, 2010, 11:52 am

Gotchya. No problem.

Yea, whenever you enter Custom Capabilities, you just type in the trigger words.
For instance: music,videos

Then, when you test using Conditionals, that's when you use the full version:
access_s2member_ccap_music
access_s2member_ccap_videos

* Sorry for the confusion.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 0 guests

cron