Hack: Remove Reply/Favorite buttons from activity stream on certain types
-
quick and dirty hack (if a better way, please let me know – php is not my forte)
add a function to your hacks/function.php file with the excluded activity types
function my_denied_activity_meta_check($type) {
return in_array($type, array( 'bp_link_vote', 'friendship_created', 'new_forum_post') );
}then on the theme file activity/entry.php add this to the if statement (for either/or comment/favorite links)
!my_denied_activity_meta_check( bp_get_activity_type() )
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hack: Remove Reply/Favorite buttons from activity stream on certain types’ is closed to new replies.