BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: #32763

    Hello Howard,

    Thank you for posting. You can do that easily using any translation tool. I will recommend using Poedit and translating the string.

    Hope that helps.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Olivier,

    Thank you for the reply. Please allow me to push an update early next week. I will share a snippet after that to enable this behaviour.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Hastibe,

    Thank you for the kind words. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Hastibe,

    Thank you for posting. Try the following it will include only users with subscriber role.

    
    
    /**
     * Exclude Users from BuddyPress Members List by WordPress role.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_include_users_by_role( $args ) {
    	// do not exclude in admin.
    	if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
    		return $args;
    	}
    
    	$included = isset( $args['include'] ) ? $args['include'] : array();
    
    	if ( ! is_array( $included ) ) {
    		$included = explode( ',', $included );
    	}
    
    	$role = 'subscriber';// change to the role to be include.
    
    	$user_ids = get_users(
    		array(
    			'role'   => $role,
    			'fields' => 'ID',
    		)
    	);
    
    	$included = array_merge( $included, $user_ids );
    
    	$args['include'] = $included;
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_include_users_by_role' );
    
    

    Please let me know if is works or not.

    Regrads
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Olivier,

    Thank you for posting. Please let me know what kind of group status you are dealing with. BuddyPress does not have any validate feature by default. But one thing we can with private groups in place of directly adding to groups we can send membership request sothat group admin can add them.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Carsten,

    Sorry i was on wrong side. Please try the following code.

    
    add_action( 'bp_before_member_header_meta', function () {
    	echo sprintf( '<a href="%s">%s</a>', bp_displayed_user_domain(), __( 'View' ) );
    } );
    
    

    it will add a view link inside header content which is inside ‘div#item-header’

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Carsten,

    Thank you for posting. It will be better if you can provide a screenshot with details where you want to place the text. Please do let me know.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Jon blog widget #32724

    Hello Rami,

    Redirect url setting added to join blog widget now. Please update the plugin and have a look.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Change BuddyPress Force Profile Photo plugin redirection #32601

    Hello Tosin,

    Thank you for acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Change BuddyPress Force Profile Photo plugin redirection #32591

    Hello Tosin,

    I have added compatibility for leira-letter-avatar plugin. Right now it is redircting to avatar uploading screen. Please download the latest code from github repo and check is it working or not.

    https://github.com/buddydev/bp-profile-completion

    Regards
    Ravi