Statistics: Posted by drbyte — July 2nd, 2011, 2:50 am
Statistics: Posted by Cristián Lávaque — July 2nd, 2011, 2:33 am
<?php if (current_user_is("s2member_level4")){ ?>
<?php } else if (current_user_is("s2member_level3")){ ?>
<?php } else if (current_user_is("s2member_level2")){ ?>
<?php } else if (current_user_is("s2member_level1")){ ?>
<?php } else if (current_user_is("s2member_level0")){ ?>
<?php } else { ?>
<?php } ?>
Statistics: Posted by drbyte — July 2nd, 2011, 2:18 am
[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
[s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]
<?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 } ?>
Statistics: Posted by drbyte — July 2nd, 2011, 1:56 am
Statistics: Posted by drbyte — July 2nd, 2011, 1:53 am
Statistics: Posted by Cristián Lávaque — July 2nd, 2011, 1:42 am
<?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 } ?>
<?php if(is_user_logged_in()){ ?>
Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
Some public content.
<?php } ?>
global $current_user;
get_currentuserinfo();
If($current_user->user_login != ‘admin‘)
Statistics: Posted by drbyte — July 1st, 2011, 11:11 pm
Statistics: Posted by Cristián Lávaque — July 1st, 2011, 8:16 pm
Statistics: Posted by drbyte — July 1st, 2011, 8:07 am