Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: [Resolved] BuddyPress Limit Friendship Issue #8632
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    Thank you. I am posting it in an hour today.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: Featured Members #8627

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: Featured Members #8615

    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?

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    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