<?php if (!S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?>
Show all membership packages and options (free and paid)
<?php } ?>
<?php if (is_user_logged_in() && !current_user_can("access_s2member_level1")){ ?>
This is a free member, so display ALL paid subscription options
<?php } ?>
<?php if (is_user_logged_in() && !current_user_can("access_s2member_level2")){ ?>
<?php if (current_user_can("access_s2member_ccap_blogs")){ ?>
Subscription modification buttons (Add Media to your Blogs package) OR (Add Groups to your Blogs package)
<? } ?>
<?php if (current_user_can("access_s2member_ccap_media")){ ?>
Subscription modification buttons (Add Blogs to your Media package) OR (Add Groups to your Media package)
<? } ?>
<?php if (current_user_can("access_s2member_ccap_groups")){ ?>
Subscription modification buttons (Add Blogs to your Groups package) OR (Add Media to your Groups package)
<?php } ?>
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level2")){ ?>
<?php if (!current_user_can("access_s2member_ccap_blogs")){ ?>
Subscription modification button (Add Blogs to your Media+Groups package)
<? } ?>
<?php if (!current_user_can("access_s2member_ccap_media")){ ?>
Subscription modification buttons (Add Media to your Blogs+Groups package)
<? } ?>
<?php if (!current_user_can("access_s2member_ccap_groups")){ ?>
Subscription modification buttons (Add Groups to your Blogs+Media package)
<?php } ?>
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level3") && !current_user_can("access_s2member_level4")){ ?>
ALL options already included in subscription, so offer upgrade to Lev4 Lifetime membership
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level4")){ ?>
You are already a Lifetime member. Awesome, dude!
<?php } ?>
Statistics: Posted by pcwriter — June 26th, 2010, 7:36 am
Statistics: Posted by pcwriter — June 26th, 2010, 5:08 am
<?php
$user = new WP_User("johndoe22");
if(!$user->has_cap("access_s2member_ccap_blogs"))
echo 'They do NOT have the Blogs capability.';
else if(!$user->has_cap("access_s2member_ccap_media"))
echo 'They do NOT have the Media capability.';
else if(!$user->has_cap("access_s2member_ccap_groups"))
echo 'They do NOT have the Groups capability.';
?>
$user = new WP_User("johndoe22");
$user = new WP_User(54);
Statistics: Posted by Jason Caldwell — June 26th, 2010, 1:19 am
<?php if(is_user_logged_in() && current_user_can("access_s2member_level2")){ ?>
<?php if(!current_user_can("access_s2member_ccap_blogs")){ ?>
Upgrade now to Level #3, add the Blogs Capability to your Membership!
<?php } else if(!current_user_can("access_s2member_ccap_media")){ ?>
Upgrade now to Level #3, add the Media Capability to your Membership!
<?php } else if(!current_user_can("access_s2member_ccap_groups")){ ?>
Upgrade now to Level #3, add the Groups Capability to your Membership!
<?php } ?>
<?php } ?>
Statistics: Posted by Jason Caldwell — June 26th, 2010, 1:10 am
<?php if (is_user_logged_in() && current_user_can("access_s2member_level1")){ ?>
<?php if (current_user_can("access_s2member_ccap_blogs")){ ?>
Show subscription modification buttons to add Media OR Group packages
<?php } ?>
<?php if (current_user_can("access_s2member_ccap_media")){ ?>
Show subscription modification buttons to add Blogs OR Group packages
<?php } ?>
<?php if (current_user_can("access_s2member_ccap_groups")){ ?>
Show subscription modification buttons to add Blogs OR Media packages
<?php } ?>
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level2")){ ?>
<?php if (!current_user_can("access_s2member_ccap_blogs")){ ?>
Show subscription modification buttons to add Blogs package
<?php } ?>
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level2") && !current_user_can("access_s2member_ccap_blogs")){ ?>
Show subscription modification buttons to add Blogs package
<?php } ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_level2") && current_user_can("access_s2member_ccap_media") && current_user_can("access_s2member_ccap_groups")){ ?>
Show subscription modification buttons to add Blogs package
<?php } ?>
Statistics: Posted by pcwriter — June 25th, 2010, 4:24 pm