if(!is_permitted_by_s2member())
Statistics: Posted by Walton — January 24th, 2011, 11:16 pm
<?php if(is_user_logged_in()){ ?>
Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
Some public content.(can be link to your loginout, just add [code]<?php wp_loginout(); ?>[/code]
<?php } ?>
Statistics: Posted by drbyte — June 3rd, 2010, 2:45 pm
<?php if (S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?><!-- checks to see if they're logged in at all, if they are, we show -->
Welcome, <?php echo S2MEMBER_CURRENT_USER_DISPLAY_NAME; ?>! <br>
You are currently a "<b><?php if (is_user_logged_in() && current_user_can("access_s2member_level1")){ ?><?php echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; ?><?php } else { ?> Free Member<?php } ?> </b>", and have been for <b><?php echo S2MEMBER_CURRENT_USER_REGISTRATION_DAYS; ?></b> days.
<!-- this doublechecks to make sure they're logged in (not sure why I did that) and makes sure they're of a minimum level, then tells them their level label (which you specify in the options) and tells them how long, overall, that they've been a member -->
<br style="clear:all;">
<i>Modify Your User Information</i>-<br>
<iframe src="<?php echo S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL; ?>" scrolling="auto" style="width:60%; height:325px; margin:auto; border:1px solid #666666;"></iframe>
<!-- this embeds the box where the user can modify their info -->
<?php } <!-- end this statement -->
else { ?> <!-- else, begin where we show something for users who are not logged in -->
You are not logged in. Please <A HREF="<?php echo S2MEMBER_LOGIN_PAGE_URL; ?>">click here to log in and proceed</A>!
<br><br>
Not a member? <a href="<?php echo S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL; ?>">Click here to sign up today!</A>
<?php } ?> <!-- end the first if/else statement -->
Statistics: Posted by HTMwebrat — May 26th, 2010, 4:04 pm
Statistics: Posted by Jason Caldwell — May 13th, 2010, 12:56 am
Statistics: Posted by PerryM — May 11th, 2010, 7:58 am
Statistics: Posted by jlawlor — May 8th, 2010, 7:55 pm