Forum Replies Created
-
HI,
Yes I understood. I will do it with the css if I can not do it otherwise (but not too familiar with someone who has a code to share)
In addition I do not understand why it works in one case and not in the other??
RegardsIn reply to: hide the button “Members” in the display of a groupHI,
+1
ThanksIn reply to: Hide the button “add friend” in the list of membersSorry delete please
In reply to: url with code for usernameHi,
Great ๐
MEGA thank you ๐This kind of tips very useful because I see a lot of old practices on the web
RegardsIn reply to: How to hide tabs on the Sitewide Activity pageHello,
Still unresolved.
If anyone can help me solve it
Have a good dayIn reply to: How to hide tabs on the Sitewide Activity pageHello,
Ah, I have error messages. but I do not see how to correct!
04-Dec-2017 09:42:49 UTC] PHP Notice: Trying to get property of non-object in /home/../wp-content/themes/woffice-am/bp-am/bp-membres.php on line 7 => $user_roles = $user_info->roles; [04-Dec-2017 09:42:49 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /../wp-content/themes/woffice-am/bp-am/bp-membres.php on line 8 => if (is_super_admin() || in_array('membre2', $user_roles)) [04-Dec-2017 09:42:49 UTC] PHP Notice: Undefined variable: output in /home/../wp-content/themes/woffice-am/bp-am/bp-membres.php on line 10 => $output .= '<style type="text/css">body.activity.directory #activity-friends {display: none;}</style>';In reply to: How to hide tabs on the Sitewide Activity pageHello Gorges
And thank you ๐In fact, I want to hide these tabs to everyone except for a wordpress role and the super admin
It works (a priori) but do not hesitate to suggest an improvement.
I am not sure of my code!Regards
add_action('wp_head', 'HD_maj_activite'); function HD_maj_activite() { $bp_loggedin_user_id = bp_loggedin_user_id(); $user_info = get_userdata($bp_loggedin_user_id); $user_roles = $user_info->roles; if (is_super_admin() || in_array('membre2', $user_roles)) return ; $output .= '<style type="text/css">body.activity.directory #activity-friends {display: none;}</style>'; $output .= '<style type="text/css">body.activity.directory #activity-groups {display: none;}</style>'; echo $output; // }In reply to: Goodbye Buddypress?HI,
We can leave but I do not understand the importance of these parameters !!
No plugin is perfect.
Do you have an alternative that is powerful, ergonomic and durable over time ?? I did not find one
Meanwhile as a community plugin, it’s still the best.For Joomla, I like Easy profile ( https://www.easy-profile.com/ ) , cheap and good alternative to joomsocial (high cost)
Hello
+1 please
RegardsIn reply to: BuddyPress 2.6RC Embeds for activityHI
thank you for your replyIn reply to: Change redirect URL after changing user avatarHI,
It does not work!
WP 4.2.4 and BP 2.3.3
I put this code in functions Or bp-custom
This works well?+1
thanks