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: 25302

    Hi Patricia,
    Welcome to BuddyDev.

    The error you are seeing is due to a bug in BuddyPress 3.0

    At the moment, any field using multi select and multiple checkboxes are throwing the error.

    Please find more details here

    https://buddypress.trac.wordpress.org/ticket/7845

    The fix needs to be in BuddyPress. My suggestion will be to apply the path from the above ticket.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi tangpage

    I am sorry but I am unable to understand.

    1. Can you please tell me the plugin you are using? Is it about BuddyPress member Types Pro?

    2. Can you please clarify the issue in a little more details.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Thank you for the kind words Jill. It is always a pleasure to assist.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Thank you. The name sounds good.

    If possible, please use any of the only screenshot sharing site like
    https://prnt.sc/
    or
    https://snag.gy/

    It won’t be easy to allow searching these in optimized way. The search will need to search between the range. Since BuddyPress can not store these data as structured value, we will have to use the serialized value and may be we can put the information in profile data meta. Search from the meta is not efficient and I will try to avoid it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Jill,
    Thank you for the patience.

    Please upgrade to 1.2.2 and it will allow you to edit from sitewide activity widget too.
    https://buddydev.com/plugins/bp-editable-activity/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Sujee,

    There is nothing to be sorry. It was just a request from my end 🙂

    Tank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: BuddyPress 3.0 and BuddyDev Plugins #15391

    Thank you Graham.

    That’s a good idea. 3.0.1 will have many fixes and should work as expected.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    You are welcome. Please do let me know how it goes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Sujee,
    Thank you for confirming.

    For the assistance with the other topic:-

    Please leave the members loop intact and you can put this in the functions.php/bp-custom.php

    
    
    /**
     * Filter members loop args.
     *
     * @param array $args
     *
     * @return array
     */
    function buddydev_filter_all_members_list_for_members_dir( $args = array() ) {
    
    	if ( ! bp_is_members_directory() ) {
    		return $args;
    	}
    
    	if ( ! is_user_logged_in() ) {
    		$args['include'] = array( 0, 0 );// invalid
    	} else {
    		$args['user_id'] = get_current_user_id();
    	}
    
    	return $args;
    
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_filter_all_members_list_for_members_dir' );
    
    

    That will hide the list for non logged in users and for logged in, only their friends will be visible.

    The script does have following side effects:-
    1. The total members count is still visible in the tab
    2. It affects search.

    PS:- In future, if possible, please open a new topic for new issues. That way, the topic becomes useful for other members having similar issues. I hope you won’t mind that.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Starting afresh with BuddyPress & Multisite #15386

    Hi Graham,
    I can see the issue

    1. The last activity time is not set for the user and that’s why they are not visible.

    To verify that, Please visit Members Directory and select alphabetical filter, It will list all the members

    “Viewing 1 – 20 of 5,278 members”

    Also, you do need to import first name/last name(This is not required but will be nice).

    The last active time needs to be imported in the activity table. If you are using a custom script

    For each, user_id, you can do it by adding the code

    
    
        bp_update_user_last_activity( $user_id );
    

    Regards
    Brajesh