Please or Register to create posts and topics.

Forum posts showing up in Buddypress Activity Stream

Hi there,

When posting in the Forum all comments are showing up in the Activity Stream of Buddypress. I like the notifications when a user replies to a post. But not the forum post showing in the activity stream. I have the Asgaros Forum BuddyPress-Integration plugin activated, but when I deactivate the plugin I no longer get Asagros Forum notifications in Buddypress.

How can I filter the Asgaros forum comments out?

I already have filters in my theme php file below that filters certain updates out of the Activity Stream below, maybe you can provide

Asagros filter or hook?

function bp_activity_dont_save( $activity_object ) {
    $exclude = array(
        'updated_profile',
        'new_member',
        'new_avatar',
        'friendship_created',
        'joined_group',
  'new_blog_post',
  'new_forum_post',
    	'new_blog_comment'
    );
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) ) {
        $activity_object->type = false;    
    }
}
add_action('bp_activity_before_save', 'bp_activity_dont_save', 10, 1 );


Thanks,

Naomi

 

 

Hi there,

I did a temp fix by commenting out the following code

// Filter/hooks for activity-related behavior.
        /*
        add_action('asgarosforum_after_add_post_submit', array($this, 'add_activity_post'), 10, 6);
        add_action('asgarosforum_after_add_topic_submit', array($this, 'add_activity_topic'), 10, 6);

And that stopped Forum post from updating in the Activity Stream.

Thanks,

Naomi

 

Asgaros has reacted to this post.
Asgaros