Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

How to filter all activity from a member (2 posts)

Started 1 year, 10 months ago by: Stef

  • Profile picture of Stef Stef said 1 year, 10 months ago:

    Is it possible to use the member ID and filter all it’s activity?
    So that everthing this user does.. that the activity stream isn’t showing anything of it?

  • Profile picture of Boone Gorges Boone Gorges said 1 year, 10 months ago:

    Check out this post by Rich: http://blog.etiviti.com/2010/03/buddypress-hack-remove-non-friend-updates-from-the-activity-stream/ You’ll want to change line 10 to be something like if ( $activity->user_id == $filtered_user_id ) (or use in_array if you have a number of users whose content you want to filter).

    Not a perfect solution – it’ll screw up some of your page numbering if you filter out too much – but it’s good for filtering out the occasional item from a particular item.