I have installed and activated the EXEC-php plugin.
Logged in as Administrator, I created a test page with Level 3 access, and pasted the following:
- Code: Select all
<?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 } ?>
When I view the page, I only see the text "Some public content," which is not what I expected to see. If I am logged in as Administrator, won't I see the text for each level?
Here's what I want to accomplish:
A Level 1 user visits a page and sees content assigned to that level.
A Level 2 user visits that same page and sees content assigned to Level 2, and Level 1.
A Level 3 user visits that same page ans sees content assigned to Level 3, and Levels 1 & 2.
Thanks