Community Support Forums — WordPress® ( Users Helping Users ) — 2010-05-06T21:06:47-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=22 2010-05-06T21:06:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=22&p=125#p125 <![CDATA[Re: Uses s2Member API Constants, instead of functions. Error]]>
Yes, example #3 works the same as example #5.

Example #5 should have been this:
Code:
<?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 } ?>

Thanks for reporting this. I'll have this corrected.

Statistics: Posted by Jason Caldwell — May 6th, 2010, 9:06 pm


]]>
2010-05-06T19:02:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=22&p=117#p117 <![CDATA[Re: Uses s2Member API Constants, instead of functions. Error]]> Statistics: Posted by erichamby — May 6th, 2010, 7:02 pm


]]>
2010-05-06T18:33:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=22&p=114#p114 <![CDATA[Uses s2Member API Constants, instead of functions. Error]]> you get errors.

Parse error: syntax error, unexpected T_ENDWHILE

Statistics: Posted by erichamby — May 6th, 2010, 6:33 pm


]]>