Buddypress activity stream only for friends This code snippet makes the sitewide activity stream only show updates from your friends (and by default yourself and the groups you're a member of). It comes in handy with big sites with lots of Buddypress activity updates.
Exlude roles from buddypress members loop This code snippet excludes members, based on the role they have, from the buddypress members loop.