Replies
- Brajesh Singh on April 18, 2017 at 8:47 pm in reply to: [Resolved] Change color of Activity Time Hyperlinks #8625
Hi Dandy,
it might be some css caching. it is working fine for me on your site. I can see that you have added the code at the bottom o the style.css and it is doing its job there.Please try clearing browser cache and check again.
- Brajesh Singh on April 17, 2017 at 4:54 pm in reply to: [Resolved] BuddyPress Extended Friendship Request default message #8616
Hi Gregg,
Thank you for posting here.I am sorry but the plugin currently does not allow that. Please allow me to post an update today.
Thank you
Brajesh Hi Gregg,
Thank you for posting.Something on the site is modifying the bp_has_members() loop. Are you using any plugin or code to filter on the members list somewhere?
- Brajesh Singh on April 16, 2017 at 11:28 pm in reply to: [Resolved] Remove add friend button for member type on members page/members loop #8612
Hi Tosin,
Here is an example
/** * Disable BuddyPress Components conditionally based on role. * * @param bool $enabled is component enabled? * @param string $component BuddyPress Component id(e.g 'activity', 'groups', 'notifications', 'friends', 'settings', 'xprofile', 'messages', etc) * * @return mixed */ function buddydev_conditionally_disable_components( $enabled, $component ) { if ( ! is_user_logged_in() ) { return $enabled; // we do not disable component for the logged in user } $user = wp_get_current_user(); $roles = $user->roles ; // $role check for 'subscriber', 'contributor', 'author', 'editor', 'administrator' if ( 'friends' == $component && in_array( 'subscriber', $roles ) ) { //disable friends for subscribers $enabled = false; } return $enabled; } add_filter( 'bp_is_active', 'buddydev_conditionally_disable_components', 10, 2 );Submit
Please feel free to modify and adapt it as per your requirements.
Hope it helps.
Regards
Brajesh - Brajesh Singh on April 16, 2017 at 11:26 pm in reply to: [Resolved] Remove "add friend" button from admins' profile #8610
You are most welcome!
Thank you Gregg. Our community will appreciate that.
- Brajesh Singh on April 16, 2017 at 10:55 pm in reply to: [Resolved] Group Activities Notifier – Ignore 1 group #8606
Thank you for the appreciation Gregg.
I am glad I was able to help 🙂
It is quiet possible. Please post the message with the error to them and they should be able to helps.
It is related to access protection and something is triggering it on the server.
- Brajesh Singh on April 16, 2017 at 10:41 pm in reply to: [Resolved] Group Activities Notifier – Ignore 1 group #8603
Hi Gregg,
Thank you for the kind words and joining our premium membership.Here is the code that you can put in your bp-custom.php to skip the group
/** * Skip a group from the group notifications. * * @param bool $skip true to skip notification. * @param BP_Activity_Activity $activity current activity instance. * * @return bool true to skip. */ function buddydev_skip_group_from_notification( $skip, $activity ) { $group_id = $activity->item_id; //change the group id if ( $group_id == 3 ) { //Please change '3' with your group id $skip = true; //skip } return $skip; } add_filter( 'bp_local_group_notifier_skip_notification', 'buddydev_skip_group_from_notification', 10, 2 );Please change the group id with yours.
Let me know if it works for you or not?
Thank you
Brajesh Hi Gregg,
Thank you for posting.
if that is the error, it means your admin-ajax.php is not available due to access restrictions.Are you using any privacy plugin or some code to limit access to admin area?