Skip to:
Content
Pages
Categories
Search
Top
Bottom

Individual Privacy settings for group areas


  • Matt
    Participant

    @mattmct

    Hi there,

    Is it possible to some how create Individual privacy settings for the different areas of the group?

    I’m setting up a community site for sports teams. I would like to have the main group areas as public, so people can see members lists etc, but I would like the group forum (and documents areas) to be private, and only viewable to the group members.

    Is there a way to do this? either by a plugin that offers tick boxes for the different areas, or even a more crude code hack?

    Overall I would like the groups to be public, so group blogs, members etc are shown, but to “lock down” the group forum and documents to group members only.

    Thanks a lot for the help.
    Matt

Viewing 3 replies - 1 through 3 (of 3 total)
  • off the top of my head – each subnav item and the screen functions can be limited to a “user_has_access” flag set in bp_core_new_subnav_item

    For example the Forum subnav is restricted if public/hidden – you could remove and re-add the subnav with your own function to check access


    Matt
    Participant

    @mattmct

    Hey Rich,

    This sounds promising, thanks a lot for your reply. If we can use this to limit access to group members / non-group members it should work well.

    Could you expand / give me an example of how this might be done?

    Thanks a lot for your help rich! @ etiviti!

    just look at the core files bp-groups.php and the function groups_setup_nav()

    from there you’ll see how bp sets the current access for most subnav items
    look for this line -> // If this is a private or hidden group, does the user have access?

    which is referenced on line 206/7 for the Forums subnav. What you can do is remove the subnav ( bp_core_remove_subnav_item ) then re-add with the param user_has_access calling some function to determine the access level for your given requirements. (hook your remove/re-add on the action groups_setup_nav )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Individual Privacy settings for group areas’ is closed to new replies.
Skip to toolbar