Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to display your friends, and your own activity only in the output of the activity stream instead

@rogercoathup

Participant

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().

Skip to toolbar