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: 25468
    Brajesh Singh on in reply to: [Resolved] New Widget areas #8324

    Hi Nana,
    I am sorry those widget areas are for use with Maximus builder. If you are looking for different page sidebars, I will suggest using WooSidebars plugin. It should serve the purpose.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi,
    Please visit settings and make sure there is no white space before/after the extensions. That may be the cause of it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: no description saved #8322

    Hi,
    Please visit Dashboard->Settings->MediaPress->Theming and enable the gallery description on the single gallery page. It will be shown above the media list on single gallery pages then.

    Hope that helps.
    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Conditional plugin not working #8312

    Hi Bonsaiko,
    Please use the “checkbox” here to mark the message as private and It will be invisible to others.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] AutoActivate AutoLogin Not working #8309

    Hi Brett,
    Thank you for the update. I am glad it is resolved 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Can't Delete Gallery #8303

    Hi Malachi,
    Thank you for posting.
    It’s a bug with the theme as it seems. your theme is somehow disabling/hiding the checkbox. Please contact the theme author and let them know about the issue.

    they should be able to fix it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Limit the searching range of members #8299

    Hi Dandy,
    Please put the following code in your bp-custom.php

    
    /**
     * Limit BP profile search plugin to user who are members of the current user's group
     * @param $users
     *
     * @return array
     */
    function buddydev_limit_users_search_to_group_members( $users ) {
    	// Do not check for non logged in or the site admin.
    	if ( ! is_user_logged_in() || is_super_admin() ) {
    		return $users;
    	}
    
    	$logged_id = get_current_user_id();
    	$groups = groups_get_user_groups( $logged_id );
    	// If the user does not belong to any group, the result should be empty.
    	if ( empty( $groups['groups'] ) ) {
    		//this user does not belong to any group
    		$users = array();//array( 0, 0 ); // Limit to invalid user.
    		return $users;
    	}
    
    	// if we are here, the user has some groups, let us find out the members of those groups.
    	global $wpdb;
    	$bp = buddypress();
    
    	$list = '(' . join( ',', $groups['groups'] ) . ')';
    
    	$member_ids =  $wpdb->get_col( $wpdb->prepare( "SELECT user_id FROM {$bp->groups->table_name_members} WHERE group_id IN {$list} AND is_confirmed = 1 AND is_banned = 0 AND user_id != %d",$logged_id ) );
    
    	if ( ! empty( $member_ids ) ) {
    		$users = array_intersect( $users, $member_ids ); // set intersection.
    	} else {
    		$users = array();
    	}
    
    	return $users;
    }
    add_filter( 'bps_filter_members', 'buddydev_limit_users_search_to_group_members' );
    
    

    It will limit the BP profile search to only look for the Group members.
    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Conditional Profile Fields #8296

    Thank you Dennis. That’s good to know 🙂
    Marking it as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Media in comments #8289

    Hi Ben,
    I am sorry to keep you waiting. I am experimenting today and will have some definite results four sure today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Mailchimp list #8287

    That’s a great news.
    Thank you for marking it as resolved.