Afew months ago Diaspora (the ruby-based social networking opensource project) released what they call ‘intelligent post page templates’ but did you know, it’s 10 times easier to implement in BuddyPress?
This is a snippet that i’ve had in my snippets folder for a while and i only recently remembered it when i saw a post about diaspora’s update.
Within members/single/permalink.php just replace “ with
and then if you want a different template for single permalink views for BP Album photos, just create a new /activity/entry.php template called /entry-bp-album-picture.php and modify to your hearts content… All BP album photos will now use that template and others will just use /entry.php.
Credits where credits due: This is based on Twenty Eleven’s Post-type Loop template_part. Thanks WordPress!
EDIT: Note that str_replace just replaces the underscores inside the activity types to hyphens (works without the str_replace, but i like the consistent look with other templates that use hyphens to separate words)