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: 25494
    Brajesh Singh on in reply to: [Resolved] Update error on Member Types Pro #25448

    Hi Mike,
    Is there any chance that the BuddyDev Dashboard plugin’s API key is not setup? I manually downloaded the plugin and the zip file seems to be valid.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: When will Community Builder 2.0 will be ready? #25446

    Hi Torben,
    Thank you.
    Yes, It will need some effort. we will be here assisting you with that.
    2.0 is not backward compatible but ti should not take much effort to migrate unless you are using the Facey Blue color scheme. We have dropped Facy Blue from core and will be available as child theme in future.

    There are only minor change in child theme(better coding standard and so on). You can adapt them easily(or can keep using the child theme).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,
    Thank you.

    Thank you for sharing the translation, I have included it.

    I have release 1.3.8 which fixes the translation issue and also includes a filter for limiting search.

    Here is an example how to limit to certain member type

    
    /**
     * Filter allowed member types in BP Profile Search.
     */
    add_filter( 'bpmtp_profile_search_form_allowed_member_types', function ( $member_types ) {
    
    	return array(
    		'student',
    		'teacher',
    	);
    	// add more to the above list.
    } );
    
    

    That will limit search to student and teacher types(these are the unique names you use while creating member type).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Christian,

    Thank you for renewing your membership. I sincerely appreciate it..

    I have checked the video and I like the idea about reordering galleries. It will be a nice feature to have in the core itself.

    If you want to do it yourself, You can hook to

    
    mpp_setup_nav
    

    and use

    
    bp_core_new_subnav_item()
    

    to add sub nav item.

    If you can sponsor 2 hours of development time, we will gladly add it with 1-2 weeks in the plugin. It will be part of the plugin eventually tough.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Registration filds #25443

    Hi,
    If you know the BuddyPress field id or label that you want to map, you can use

    
    
    xprofile_set_field_data($id_or_field_name, $member_id, "value" );
    
    

    Please make sure to change the $id_or_field_name and “value” with appropriate values.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Array of user IDs for specific member type #25442

    Hi,
    yes, the role based fetching is very easy.

    Here is a code to get all user ids for subscriber role.

    
    
    	$users_ids = get_users( array(
    		'role'   => 'subscriber',
    		'fields' => 'ID'
    	) );
    

    Please feel free to change the role appropriately.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Insert content before Activity page #25441

    Hi,
    BuddyPress provides you a hook to add content before activity directory . You can attch to

    
    bp_before_directory_activity
    

    action.

    example.

    
    
    add_action( 'bp_before_directory_activity', function () {
    	echo "hello activity";
    } );
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Filter for specific members type in the members loop #25440

    Hi,
    I am sorry if I was notr very clear.

    Since you mentioned you are creating a custom loop, Can you please tell me how are you creating a custom loop?

    If you create a members loop, It will need the above function. If I can get some idea on how are you creating the members loop, I can assist better.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: The Urgent Ones #25430
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: The Urgent Ones #25428
    This reply has been marked as private.