Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide a Private Group/Forum


  • cassihl
    Participant

    @cassihl

    Is there any way to hide a Group & its associated forum by site role?

    I have several user role types set up, and for one of the user roles I want to have a private group for them. I don’t want the other user roles to see that this group exists. Right now, when I create a private group, it still shows up in the list of groups and says “private.” Can I just hide this group unless the person is logged in and has that user role?

    Maybe there is a plugin or something?

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

  • danbp
    Participant

    @danbp

    No plugin, just a setting ! You can create a hidden group for these users.

    Hidden groups 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.

    Group Settings and Roles


    cassihl
    Participant

    @cassihl

    Ok thanks! Do you know if there is a way to add someone to a group automatically if their role is changed to the group it matches? For example, if someone is a subscriber now, and later they have their role changed to a custom role I have set up. Can I set up something to automatically add them to the hidden group upon role change?


    danbp
    Participant

    @danbp

    Hi,

    by changed to a custom role do you mean custom wp role or a buddypress member type ?


    cassihl
    Participant

    @cassihl

    Site Role – I used the plugin User Role Editor to create new roles.


    danbp
    Participant

    @danbp

    Hi !

    You can easily do this from wp’s users admin.
    Once one or x members where promoted as “editor” or whatever wp role you created, you can attribute them to a group.

    The snippet you’ll find on the codex will add a new bulk action “add to bp group” to the existing bulk selector, above the user list.

    Select the concerned member(s), click on Apply. In the box showing up, add the group id, save and you’re done !

    You can see the result by going to dashboard > groups > select the group you’ve added members and edit the group. See the group user list at the bottm of the page and verify the new user(s) are there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar