Statistics: Posted by foliovision — January 26th, 2012, 3:55 am
Statistics: Posted by Jason Caldwell — January 25th, 2012, 6:40 pm
Statistics: Posted by Cristián Lávaque — January 25th, 2012, 6:22 pm
Statistics: Posted by Jason Caldwell — January 24th, 2012, 2:19 pm
Statistics: Posted by colinjones — January 20th, 2012, 3:30 pm
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
Statistics: Posted by Jason Caldwell — September 7th, 2010, 8:40 pm
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>';
}
Statistics: Posted by chrisk2020 — September 4th, 2010, 8:07 am
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?)
Statistics: Posted by chrisk2020 — September 3rd, 2010, 11:57 am
Statistics: Posted by Jason Caldwell — September 1st, 2010, 3:21 am
Statistics: Posted by BoweFrankema — August 31st, 2010, 6:27 pm
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?
Statistics: Posted by Jason Caldwell — August 29th, 2010, 11:38 pm
Statistics: Posted by BoweFrankema — August 24th, 2010, 5:02 pm