Replies
- Brajesh Singh on April 18, 2017 at 9:48 pm in reply to: [Resolved] BuddyPress Limit Friendship Issue #8636
Hi Richard,
No problem. I am glad I am able to assist you.Please avoid using closing php tag. It helps you avoid some notices in future(Output already send error).
Regards
Brajesh - Brajesh Singh on April 18, 2017 at 9:41 pm in reply to: [Resolved] BuddyPress Extended Friendship Request default message #8633
Hi again,
The update is available now.https://wordpress.org/plugins/buddypress-extended-friendship-request/
Please upgrade to 1.0.9 and then you can put the following code in bp-custom.php
function buddydev_default_extended_friendship_message( $message ) { $message ='Let us get connected!'; return $message; } add_filter( 'bp_ext_friendship_default_message', 'buddydev_default_extended_friendship_message' );We do plan to provide a UI for it in future.
Hope that helps.
Brajesh - Brajesh Singh on April 18, 2017 at 9:38 pm in reply to: [Resolved] BuddyPress Limit Friendship Issue #8632This reply has been marked as private.
- Brajesh Singh on April 18, 2017 at 8:51 pm in reply to: [Resolved] BuddyPress Extended Friendship Request default message #8628
Thank you. I am posting it in an hour today.
Regards
Brajesh Hi Gregg,
Can you please try disabling BuddyPress profile visibility Manager and BuddyPress Mute(one by one) and check if that makes the list work?Also, for outputting html in the list, it is most probably the verified plugin causing it. I am going to test it and will report back.
- Brajesh Singh on April 18, 2017 at 8:49 pm in reply to: [Resolved] BuddyPress Limit Friendship Issue #8626
Hi Richard,
if there is no bp-custom.php, Please create on in the wp-content/plugins directory.Please see this for more details
https://buddydev.com/docs/guides/guides/buddypress-guides/what-is-bp-custom-php/Regards
Brajesh - 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