code to add activity filter

hi,
If anyone needs to add an activity filter for the group reviews put this code to the templatetags.php file.
Just take care of the tags.
=====================================================================================
`function bp_rating_activity_filter_option() { ?>

the problem is it deletes the last activity you posted, but not the last review. How to fetch last review/activity i posted instead of the last activity on group?

Adds link to delete review at the review list.
templates..entry.php

ADD
`

still looking for,how to pull last review only,quess its same like mentions and favorites activity on profile.And as i set up, that u can only post 1 review on a group. its possible to pull the last only instead of last activity from your group. but how to code the group part into it to pull only from the group site you are in now…