Hide Friendship Notifications from Activity Wall


#1

I would like to hide the Friendship Notifications from all but the users activity walls. I started a topic in the buddy press forums and they said it would be a theme change so here I am asking you how I would go about doing this?

Here is the buddy press topic: http://buddypress.org/support/topic/remove-friendship-notifications-from-activity-stream/


#2

Hello Josiah,

Find this line of code in inspirebook -> buddypress -> activity -> activity-loop.php

<?php bp_get_template_part( 'activity/entry' ); ?>

And replace with following code

<?php  
if ( 'friendship_created' != bp_get_activity_type() ) {  
	bp_get_template_part( 'activity/entry' );  
} ?>

Let me know for further assistance.


#3

Worked great. Thank you Sagar. Any change we can see an option for turning different notifications off or on inside of the themes settings in the future?


#4

Hello Josiah,
Thanks for suggesting one more point. Since we are working on some more premium themes we will add these options in upcoming themes.


#5

Yes it worked like a charm!


#6