New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Change order of visibility options. #13031

    Hi Mark,
    Here is how it looks to me

    https://i.imgur.com/mnQbNDk.png

    Are you seeing a different order?

    If yes, most probably another plugin is updating the order too.

    A solution might be to change the priority of the function that we are using to reorder.

    For example

    
    add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options' );
    

    Can be changed to this

    
    add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options', 1001 );
    

    and should most probably work.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi George,
    We can do it by using pre_get_posts filter in the admin and looking for _mpp_media_count meta on the galleries.

    I will post this code later today with the other thread(I am sorry I missed to post a solution there).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Keith,
    Which version of Profile Search plugin are you using? It seems they have removed the function.

    We have the customized template and that’s why you are seeing it(Most probably Andrea has removed the function).

    I am going to test with the current version of Profile search and push an update later today for the Community Builder Theme.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Branded Login Custom Error Message #13026

    Hi Chris,
    Thank you for posting.

    I had a look and see that the strings are not translatable.

    I am letting my team know about this and we will post an update by Tuesday/Wednesday that will allow you to use translation files for the same.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Change order of visibility options. #13025

    Hi Mark,
    Thank you for asking.

    Here is the code that you can put in your bp-custom.php to change the order

    
    /**
     * Update profile visibility option for BuddyPress.
     */
    function buddydev_update_profile_field_privacy_options() {
    	$levels = buddypress()->profile->visibility_levels;
    
    	// and now we will override it's order.
    	buddypress()->profile->visibility_levels = array(
    		'public'     => $levels['public'],
    		'loggedin'   => $levels['loggedin'],
    		'friends'    => $levels['friends'],
    		'adminsonly' => $levels['adminsonly'],
    	);
    }
    
    add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options' );
    
    

    I am just reusing BuddyPress’s default values in the above code and reordering them.

    I am not sure if the follower option is supported by BuddyPress. To add that to profile visibility level, you will need to add a new visibility level and a handler for it.

    I wrote a post a few years about the same here
    https://buddydev.com/buddypress/extending-buddypress-profile-field-visibility/

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Carmine,
    My apologies for the inconvenience.

    I have gone through the notes and I am very sorry that you had to go through such frustration.

    I am here to assist and will make sure that everything works.

    Now looking at the notes and the last point(16th), May I ask that the only problem remaining is removing users from groups etc?

    Member Types pro does not remove a user from BuddyPress Group, It will not remove them
    https://buddydev.com/docs/guides/plugins/buddypress-plugins/buddypress-member-types-pro/adding-users-buddypress-groups-based-member-types/

    The reason behind this decision was that we allowed multiple member type and did not want to make it very complex.

    If that is the only issue you are facing, I can help with some code to make sure that users get removed from groups when their member type is removed.

    PS:- I am sorry if I missed some point. I saw in point 6 that changing member types were not adding user to groups but 16 results showed they worked. Please do let me know if it is not doing that.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: filter the buddypress members in the list of members #13013

    Hi Herve,

    Can you please help me understand this in more details

    
    
    I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
    Example of filter xprofile field “I search” = xprofile field “I am”
    
    

    I am not sure if I understand your requirement clearly.

    1. Is user searching something or are you providing a match based on current logged in user’s xprofile field.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Profile Visibility Plugin Error #13011

    Hi Axel,
    Please upgrade to 1.5.4
    https://buddydev.com/plugins/bp-profile-visibility-manager/

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Profile Visibility Plugin Error #13009

    Oops, I forgot to upload the release. Doing it in next 5-10 minutes. It was fixed last week.