@asoldier
9 years, 10 months ago
Discovered a conflict with WP User Management Plus. It does not like the latest version of Buddypress.
11 years ago
I might have done that wrong, but I did this, and it did not help. I even tried beta 2 and it didn’t help. http://www.gameragereviews.net <
11 years, 9 months ago
I also found `user_id );
if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) echo “display_name}’ />”; }?>`
but it doesn’t want to work in the profile
Now I’m trying to take `function pc_get_userrole ($user_id) {
$user = new WP_User($user_id);
$userclean = $user->roles[0];
return $userclean;
}`
and `echo pc_get_userrole(bp_current_user_id()); `
and I want to add some custom CSS based on the role.