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

    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: 25394
    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: 25394
    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: 25394
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Richard,
    I am sorry the plugin is not tested with WPML and I am not sure if it will work with translations.

    Most probably they will setup different categories for translation and that won’t work with the group categories.

    I am sorry but I don’t think we will be able to assist you much on this.

    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: BuddyPress Redirect to Profile Plugin #12999

    Hi Bob,
    Thank you.

    I need to know what function I can use from MemberPress to check for the membership of the current user.

    If you can point me to the relevant documents, I can quickly assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Bob,
    Thank you.

    Can you please link me to your register page where I can see it live? That will help us assist you better.

    PS: Please use the “Set as private reply” checkbox to set a reply as private.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Recent Visitors For BuddyPress Profile #12975

    Please update the above css and set the margin right to zero as shown below.

    
    #buddypress #item-header .recent-visitors img.avatar {
      float:none;
      margin-right: 0;
    }
    
    

    Hopefully that should do it.

    Regards
    Brajesh