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™

Short Code Restrictions

s2Member Plugin. A Membership plugin for WordPress®.

Short Code Restrictions

Postby scott74 » October 8th, 2011, 8:56 pm

I can't seem to find the short code for Restrictions.. so you can have a few different things on the same page and block items depending on what level the user is logged in at..

something like
[s2level1] content goes here [/s2level1]

[s2level2] ect......

can you do this or is there a link with code.... I am starting a membership site and have custom dashboard panels for different levels of membership and this would be the only way i would know to block that content in the dashboard..

Thanks
User avatar
scott74
Registered User
Registered User
 
Posts: 38
Joined: September 23, 2011
Location: St Louis

Re: Short Code Restrictions

Postby Eduan » October 8th, 2011, 9:10 pm

You can find what you want under WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals. In there you'll find the code you want.

Under WP Admin -> s2Member -> API / Scripting -> Advanced/PHP Conditionals you'll find something a little more advanced. In there you'll find the code you want.

Hope this helps :) .
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

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

cron