Plugin to follow the BuddyPress codex Article : Add custom filters to loops and enjoy them within your plugin