Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limit Activity Stream to Groups a user belongs to.


  • robgrahamsydney
    Participant

    @robgrahamsydney

    How can I limited the activity feed to only display activities in the groups the user belongs to?

    Our site groups need to be very private. Being able to view a friend’s activity is a great but not if the friend’s activity is a private group that the user does not belong to.

    For example, a friend belongs to a private group named ‘secrets’ but the user does not belong to the group.

    Now the friend creates a topic (bbPress) in the ‘secrets’ group forum discussing a ‘new formula’. The user will now see the topic posted in their activity feed. The new secret formula is now revealed outside the ‘secrets’ group.

    I hope this makes sense.

Viewing 1 replies (of 1 total)

  • Venutius
    Moderator

    @venutius

    Hi there,

    One option is the overload the activity-loop.php file, find the part where bp_has_activities() is called and change it to this:

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . "&scope=groups" ) ) : ?>

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