Filter Activity Feed

Hey guys I was going off the comments on another discussions about filtering the activity stream but i didnt have any luck. I am probably missing something small. But I used this code in the activity-loop.php but i am still seeing friends updates and avatar updates for some reason.

<?php

/**

* BuddyPress – Activity Loop

*

* Querystring is set via AJAX in _inc/ajax.php – bp_dtheme_object_filter()

*

* @package BuddyPress

* @subpackage bp-default

*/

?>

<?php do_action( ‘bp_before_activity_loop’ ); ?>

<?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) .’&action=ew_forum_post, created_group, new_forum_topic, activity_update’ ) ) : ?>

<?php /* Show pagination if JS is not enabled, since the “Load More” link will do nothing */ ?>

<noscript>

<div class=”pagination”>

<div class=”pag-count”><?php bp_activity_pagination_count(); ?></div>

<div class=”pagination-links”><?php bp_activity_pagination_links(); ?></div>

</div>

</noscript>

<?php if ( empty( $_POST ) ) : ?>

<ul id=”activity-stream” class=”activity-list item-list”>

<?php endif; ?>

<?php while ( bp_activities() ) : bp_the_activity(); ?>

<?php locate_template( array( ‘activity/entry.php’ ), true, false ); ?>

<?php endwhile; ?>

<?php if ( bp_activity_has_more_items() ) : ?>

<li class=”load-more”>

<?php _e( ‘Load More’, ‘buddypress’ ); ?>

<?php endif; ?>

<?php if ( empty( $_POST ) ) : ?>

<?php endif; ?>

<?php else : ?>

<div id=”message” class=”info”>

<p><?php _e( ‘Sorry, there was no activity found. Please try a different filter.’, ‘buddypress’ ); ?></p>

</div>

<?php endif; ?>

<?php do_action( ‘bp_after_activity_loop’ ); ?>

<form action=”” name=”activity-loop-form” id=”activity-loop-form” method=”post”>

<?php wp_nonce_field( ‘activity_filter’, ‘_wpnonce_activity_filter’ ); ?>