Statistics: Posted by Jason Caldwell — October 25th, 2010, 11:17 pm
<?php if (current_user_is("s2member_level4")){ ?>
Some premium content for Level 4 Members.
<?php } else if (current_user_is("s2member_level3")){ ?>
Some premium content for Level 3 Members.
<?php } else if (current_user_is("s2member_level2")){ ?>
Some premium content for Level 2 Members.
<?php } else if (current_user_is("s2member_level1")){ ?>
Some premium content for Level 1 Members.
<?php } else if (current_user_is("s2member_level0")){ ?>
Some content for Free Subscribers.
<?php } else { ?>
Content from my home page went here.
<?php } ?>
Statistics: Posted by KirkWard — October 25th, 2010, 6:28 pm
<?php if (is_user_logged_in && current_user_can ("s2member_level4")){ ?>
Some premium content for Level 4 Members, but not for members of any other level.
<?php } else if (is_user_logged_in && current_user_can ("s2member_level3")){ ?>
Some premium content for Level 3 Members, but not for members of any other level.
<?php } else if (is_user_logged_in && current_user_can ("s2member_level2")){ ?>
Some premium content for Level 2 Members, but not for members of any other level.
<?php } else if (is_user_logged_in && current_user_can ("s2member_level1")){ ?>
Some premium content for Level 1 Members, but not for members of any other level.
<?php } else if (is_user_logged_in && current_user_can ("s2member_level0")){ ?>
Some content for Free Subscribers, but not for members of any other level.
<?php } else { ?>
Some public content, not for members of any other level.
<?php } ?>
Statistics: Posted by KirkWard — October 25th, 2010, 12:11 pm
Statistics: Posted by KirkWard — October 25th, 2010, 10:10 am
<?php if (current_user_is("s2member_level4")){ ?>
Some premium content for Level 4 Members.
<?php } else if (current_user_is("s2member_level3")){ ?>
Some premium content for Level 3 Members.
<?php } else if (current_user_is("s2member_level2")){ ?>
Some premium content for Level 2 Members.
<?php } else if (current_user_is("s2member_level1")){ ?>
Some premium content for Level 1 Members.
<?php } else if (current_user_is("s2member_level0")){ ?>
Some content for Free Subscribers.
<?php } else { ?>
Some public content.
<?php } ?>
<?php
switch (ws_plugin__s2member_user_access_level ())
{
case 4:
echo 'Some premium content for Level 4 Members.';
break;
case 3:
echo 'Some premium content for Level 3 Members.';
break;
case 2:
echo 'Some premium content for Level 2 Members.';
break;
case 1:
echo 'Some premium content for Level 1 Members.';
break;
case 0:
echo 'Some content for Free Subscribers.';
break;
default:
echo 'Some public content';
}
?>
[s2If current_user_is(s2member_level4)]
Some premium content for Level 4 Members.
[/s2If]
[s2If current_user_is(s2member_level3)]
Some premium content for Level 3 Members.
[/s2If]
[s2If current_user_is(s2member_level2)]
Some premium content for Level 2 Members.
[/s2If]
[s2If current_user_is(s2member_level1)]
Some premium content for Level 1 Members.
[/s2If]
[s2If current_user_is(s2member_level0)]
Some content for Free Subscribers.
[/s2If]
[s2If !current_user_can(access_s2member_level0)]
Some public content.
[/s2If]
Statistics: Posted by Jason Caldwell — October 25th, 2010, 2:54 am
<?php
switch (current_user_is($i) {
case s2member_level4:
Some premium content for Level 4 Members.
break;
case s2member_level3:
Some premium content for Level 3 Members.
break;
case s2member_level2:
Some premium content for Level 2 Members.
break;
case s2member_level1:
Some premium content for Level 1 Members.
break;
case s2member_level0:
Some content for Free Subscribers.
break;
default:
Some public content.;
} ?>
Statistics: Posted by KirkWard — October 24th, 2010, 9:55 pm