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™
Level 1: Free. Access to all the regular stuff including Blog creation etc.
Level 2: Supporter! about $2,99 per month and gives the user a Badge on his avatar (should be possible using S2Member conditionals I think?)
and access to a VIP forum,
and hopefully to some cool widgets/plugins for their blog (hopefully that will be added to the WP Multisite features in the future?).
Level 3: Sponsor: This is for companies/organizations and is a bigger donation on a monthly basis. This means that they are listed on a special thank you page, and they'll receive some goodies like a t-shirt or something, and are mentioned in a newsletter.
The most important thing is that it's easy to sign up, you don't need a PayPal account and it should all be easy to manage from both sides (user and admin). So S2Member Pro is absolutely great for this, but I need some help with setting everything up. Do you think the above can be achieved with S2Member?
Level 2: Supporter! about $2,99 per month and gives the user a Badge on his avatar (should be possible using S2Member conditionals I think?)
function my_user_role(){
$ID=bp_displayed_user_id();;
$user = new WP_User($ID);
if ($user->wp_capabilities['administrator']==1)
echo '<p>Admin Badge Code</p>';
else if ($user->wp_capabilities['author']==1)
echo '<p>Author Badge Code</p>';
else if ($user->wp_capabilities['s2member_level0']==1)
echo '<p>WOW</p>';
else if ($user->wp_capabilities['s2member_level2']==1)
echo '<p>WOW1</p>';
else if ($user->wp_capabilities['s2member_level3']==1)
echo '<p>WOW2</p>';
else if ($user->wp_capabilities['s2member_level4']==1)
echo '<p>WOW3</p>';
else
echo '<p>Regular User</p>';
}
if(current_user_is("administrator")){
// do something here
} else if(current_user_is("s2member_level0")) {
// do something here
}
$user = new WP_User($user_id);
// Or: new WP_User($username);
if($user->has_cap("administrator")){
// do something here
} else if($user->has_cap("s2member_level0")){
// do something here
}
administrator
editor
author
contributor
subscriber
s2member_level0
s2member_level1
s2member_level2
s2member_level3
s2member_level4
access_s2member_level0
access_s2member_level1
access_s2member_level2
access_s2member_level3
access_s2member_level4
Users browsing this forum: No registered users and 1 guest