latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Upgrade to Pro stopped custom capability.

Home Forums Community Forum Upgrade to Pro stopped custom capability.

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 3 years, 8 months ago.

Topic Author Topic
Posted: Wednesday Apr 24th, 2013 at 5:25 pm #48312

Hello,
I just today upgraded to s2Member Pro and custom capabilities have stopped working for free/non-registered users. It does seem to work for paid members. I’m getting a little icon on pages with content meant for free users.
Here is the code I’m using:

(Free Access) 
[s2If !current_user_can(access_s2member_level0)]
Hello!  To access detailed information about this site, including high-resolution image galleries, location and access, site history, and more, you'll need to become a subscriber.
[/s2If]  

(Subscriber Access)
[s2If current_user_can(access_s2member_level1)] 
 Content Body
[/s2If]

And example of a page that should be working is here:
http://www.nationalbureauofmines.org/photos/nevada/clark-county/

Any ideas what’s going on?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Apr 25th, 2013 at 8:26 am #48349

There’s no conditional there for Level 0 users, only for non logged in and for Level 1.

For Level 0 users it’d be:

[[s2If current_user_is(s2member_level0)]
Some content for free members.
[/s2If]]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.