If you use Example #5: Uses s2Member API Constants, instead of functions.
you get errors.
Parse error: syntax error, unexpected T_ENDWHILE
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL >= 4){ ?>
Some content for Members with an s2Member Level >= 4.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL >= 3){ ?>
Some content for Members with an s2Member Level >= 3.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL >= 2){ ?>
Some content for Members with an s2Member Level >= 2.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL >= 1){ ?>
Some content for Members with an s2Member Level >= 1.
<?php } else if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 0){ ?>
Some content for Free Subscribers.
<?php } else if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL === -1){ ?>
Some public content.
<?php } ?>
Users browsing this forum: No registered users and 1 guest