Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Filtering Activity Stream

@rogercoathup

Participant

@megainfo – my outline solution from the other threads is:

“If you have a look in the code for bp_has_activities(), you can
see how it’s implemented scope searching internally, and then create your own version:

e.g. for scope=>friends, it builds an array of the friend IDs and sets that array as the user_id element of the filter.

Therefore, you should be able to do the same in your template — create an array of friend IDs, add the users own ID to the array, and then pass the array as the user ID filter to bp_has_activities().”

Rich Fuller’s version: http://wpmu.org/create-a-better-community-experience-with-the-new-buddypress-friends-only-activity-stream-plugin/ takes an alternative approach.

There’s some coding involved, but either of those solutions should help you.

Skip to toolbar