BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide Members List in Groups #40630

    Hello Simon,

    Thank you for telling me. Please use the following code it will hide the members tab except for super admin or group admin.

    
    add_action( 'groups_setup_nav', function () {
    
    	if ( is_super_admin() || groups_is_user_admin( get_current_user_id(), bp_get_current_group_id() ) ) {
    		return;
    	}
    
    	// If will hide members tab for all users. You can place conditions whom to show or hide this group.
    	bp_core_remove_subnav_item( bp_get_current_group_slug(), 'members', 'groups' );
    } );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide a specific group on my profile tab #40629

    Hello Simon,

    Thank you for the clarification. Can you provide me screenshots because it will give a more clear view of your requirements ?. As per my understanding, you are looking for a way to hide secret groups under Group’s directory > Secret Tab. Or point me you the link where these groups are rendering and you want to hide them.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide Members List in Groups #40598

    Hello Simon,

    Are you looking to hide the group’s member tab or hide some members from the group member’s list?.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide a specific group on my profile tab #40597

    Hello Simon,

    As you said the privacy of secret groups is hidden and hidden groups by default are invisible to non-members. These group names and descriptions are not listed in sitewide directories, and their contents are accessible only to members of the group. Because the group is unlisted, users cannot request membership. Instead, individuals can only join the group by invitation.

    what are the organizers you are referring to is it group administrator?.

    Please help me to understand your requirement so that I can help You.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide a specific group on my profile tab #40581

    Hello Simon,

    Thank you for asking. Please try the following code:

    
    
    add_filter( 'bp_after_has_groups_parse_args', function ( $r ) {
    
    	// Not show secret groups to other users except user on his own profile.
    	if ( bp_is_user() && ! bp_is_my_profile() ) {
    		$r['group_type__not_in'] = array( 'secret' );
    	}
    
    	return $r;
    } );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Auto Join not working for new users #40577

    Hello Tomas,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Auto Join not working for new users #40553

    Hello Tomas,

    Thank you for sharing the details. I have checked and testing the functionality by creating a test account “buddydevsupport” and the group is successfully adding to my account. Please give it a shot another time and check if this is working for you or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Auto Join not working for new users #40520
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Multisite Groups are Linked #40519

    Hello John,

    Thank you for posting. Please let me know are you looking for a solution that enables you to reflect the same users, same forums with all subsite?.

    Regards
    Ravi