Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-28T23:01:41-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15685 2011-10-28T23:01:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=49125#p49125 <![CDATA[Re: Simple Conditionals]]>
Code:
First part of post content available to anyone.

[s2If !is_user_logged_in()]
Join as a free member to read more.
[/s2If]

[s2If is_user_logged_in()]
Content for Level 0.
[/s2If]

[s2If !current_user_can(access_s2member_level1)]
Join at Level 1.
[/s2If]

[s2If current_user_can(access_s2member_level1)]
Content for Level 1.
[/s2If]


Let me know if that helps. :)

Statistics: Posted by Cristián Lávaque — October 28th, 2011, 11:01 pm


]]>
2011-10-27T08:41:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=48974#p48974 <![CDATA[Re: Simple Conditionals]]> Statistics: Posted by reallysimpleseo — October 27th, 2011, 8:41 am


]]>
2011-10-27T08:32:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=48972#p48972 <![CDATA[Re: Simple Conditionals]]> Statistics: Posted by Eduan — October 27th, 2011, 8:32 am


]]>
2011-10-27T08:29:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=48971#p48971 <![CDATA[Re: Simple Conditionals]]> Statistics: Posted by reallysimpleseo — October 27th, 2011, 8:29 am


]]>
2011-10-27T08:15:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=48969#p48969 <![CDATA[Re: Simple Conditionals]]> Statistics: Posted by Eduan — October 27th, 2011, 8:15 am


]]>
2011-10-27T07:16:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15685&p=48965#p48965 <![CDATA[Simple Conditionals]]> I have been using simple conditionals to enable people to access more of a post depending on their membership level. Now I want to use nested conditional (or I think I do) to go a little further. Basically I want to post access to work as below:

First part of post content available to anyone.

Content for subscribers at level 0

Content for Level 1

----
The way I have been trying to do this is as:

First part of post content available to anyone.

[s2If is_user_logged_in()]

Content for subscribers at level 0

[s2If !is_user_logged_in()]Join as a free member to read more.[/s2If]

[s2If current_user_can(access_s2member_level1)]

Content for Level 1

[/s2If] [s2If !current_user_can(access_s2member_level1)]
Join at Level 1.
[/s2If]

This doesn't seem to work as it just brings up the Level1 option. I'm sure it's simple but I just can't get my head around the correct conditionals. If you could just show me the correct conditionals for this, it would be most helpful.
Many thanks
David

Statistics: Posted by reallysimpleseo — October 27th, 2011, 7:16 am


]]>