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

    Hi Richard,
    I am sorry to hear about this.

    This should not happen randomly.

    You don’t need to ask users for providing the details, you can use a tool like
    https://www.smartlook.com

    to record user session and view if the error is happening and how are they able to create it. Once we get the idea, It can be easily fixed.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: Usernames #13035

    Hi Mark ,
    It is doable.

    1. We need to add a filter to strip the @ from the URI while parsing.
    2. We will need to make sure that the canonical redirect does not redirect to old urls

    3. We will need to filter the functions like bp_loggedin_user_domain() and other such functions to use the new url.

    This is how it needs to be handled in current BP.

    I won’t be able to test it with code today and tomorrow due to my schedule(This code needs attention), but I can help on Tuesday if you want.

    Thank you
    Brajesh

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

    No problem. Sometimes, overriding is only option. For example, the above code will have issues(If any plugin adds new visibility level, they will be hidden).

    So, Please keep that in perspective while adding new visibility level.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    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: 25472

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

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

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