Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-06T00:55:52-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15999 2011-12-06T00:55:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=54632#p54632 <![CDATA[Re: nested shortcodes and s2member]]>
Code:
[s2If current_user_can(access_s2member_level1)]


Yall were using:

Code:
[s2If current_user_is(s2member_level1)]


Lets users 1 and above view.

Statistics: Posted by adaum — December 6th, 2011, 12:55 am


]]>
2011-12-05T23:52:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=54624#p54624 <![CDATA[Re: nested shortcodes and s2member]]>
If so, I'd appreciate knowing what it was.

Thanks

Statistics: Posted by adaum — December 5th, 2011, 11:52 pm


]]>
2011-11-23T04:02:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=53737#p53737 <![CDATA[Re: nested shortcodes and s2member]]> They would just have to type [some_kind_of_shortcode]....protected content...[/some_kind_of_shortcode] to have it protected like if they had typed :

Code:
[s2If current_user_is(s2member_level1)]
... protected content .....
[/s2If]
[s2If !current_user_is(s2member_level1)]
.... static content if no access to ask users to register .......
[/s2If]

Statistics: Posted by oxwald — November 23rd, 2011, 4:02 am


]]>
2011-11-22T17:47:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=53719#p53719 <![CDATA[Re: nested shortcodes and s2member]]> Statistics: Posted by Eduan — November 22nd, 2011, 5:47 pm


]]>
2011-11-22T17:29:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=53717#p53717 <![CDATA[Re: nested shortcodes and s2member]]>

Statistics: Posted by oxwald — November 22nd, 2011, 5:29 pm


]]>
2011-11-22T15:22:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=53704#p53704 <![CDATA[Re: nested shortcodes and s2member]]> And then use the s2Member conditionals.

Statistics: Posted by Eduan — November 22nd, 2011, 3:22 pm


]]>
2011-11-22T15:08:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15999&p=53700#p53700 <![CDATA[nested shortcodes and s2member]]> I'm using the "post snippets" plugin (http://wpstorm.net/wordpress-plugins/post-snippets/) and would like to create a shortcode containing s2member conditions.

the shortcode woul look like :
Code:
[hide_content].... protected content...[/hide content]


the corresponding s2member conditions looking like

Code:
[s2If current_user_is(s2member_level1)]
... protected content .....
[/s2If]
[s2If !current_user_is(s2member_level1)]
.... static content if no access .......
[/s2If]


But i cannot make it work : the s2member conditions are not evaluated
Do you have any idea why ?
Thanks in advance

Statistics: Posted by oxwald — November 22nd, 2011, 3:08 pm


]]>