I am sure this is covered somewhere but I am unable to find it. I want to conditionally display content on some pages based on what member level a subscriber has. How is this done?
You can use conditionals in the shortcode form like this:
[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]
So everything can be on the same page, but only the content specific for a particular level will show up. Note that if you are admin, you might not see what the members see so create yourself a test member that will be assigned alternatively the different levels so you can see from the test member’s angle.
You can find more about the conditionals (and there is a lot more that you can do if you want) in your s2Member > Api/Scripting.
Let us know if you run into any problem (or if it works fine too).