Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hidden groups in "All groups" tab


  • whoaloic
    Participant

    @whoaloic

    Hello,
    when a user is a member of a hidden group, this group is not shown in “All groups”.
    How to make hidden groups visible in “All groups” tabs for members of this groups.

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)

  • danbp
    Moderator

    @danbp

    Hidden means hidden, specially on the group directory.
    Only members who belonging to such groups can see it, and ONLY on their profile -> my groups


    whoaloic
    Participant

    @whoaloic

    Oh All right 🙂


    whoaloic
    Participant

    @whoaloic

    I’m sorry to reopen this topic but as all my groups are hidden, there is a useless “All groups” tab for users.
    How to hide the group directory for registered users?


    danbp
    Moderator

    @danbp

    Hi,

    The button is in /bp-legacy/buddypress/groups/index.php:19

    Make a copy of that file to your child-theme. (child-theme/buddypress/groups/index.php)

    Than you can remove the code or add a condition. For example, only the site admin will see All Groups.

    <?php if ( is_site_admin() ): ?>
       <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
    <?php endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hidden groups in "All groups" tab’ is closed to new replies.
Skip to toolbar