Page 1 of 1

How to protect some content of a post?

PostPosted: September 28th, 2010, 7:26 am
by alinew
Hi ,
how can i protect some content of a post?
Such as, content between <s2_level_one>Content for Level one</s2_level_one>,
<s2_level_two>Content for Level two</s2_level_two>...
That "Content for Level one" is just for level one or above, "Content for Level two" is for level two or above.

Re: How to protect some content of a post?

PostPosted: September 28th, 2010, 12:20 pm
by drbyte
<?php if (current_user_can("access_s2member_level1")){ ?>
Some content for Members who are logged in with an s2Member Level >= 1.
<?php } else { ?>
Some public content.
<?php } ?>

Re: How to protect some content of a post?

PostPosted: September 30th, 2010, 4:36 am
by alinew
Thanks

Re: How to protect some content of a post?

PostPosted: October 2nd, 2010, 11:06 am
by Elizabeth
Thank you.