Ah sorry, seems that plugin is no longer available
Looking at it, I think you could create a template overload if Activity-loop.php and change the scope of bp_has_activities () to friends.
See the activity loop page for more information:
Activity Loop
I’m not an expert, I think this is correct.
@venutius Yes I have already done that now its working but when i click on the other tabs on the same page and again clicking the activities on ajax call its displaying all the activities
I’m not sure how you would do that but one workaround I might suggest is that you replace the activity page with a page running BuddyDev’s Activity Shortcode and set that to friends, I don’t think it will display any options for getting alternative activities if I understand your requirements correctly.
I will explain. In my activity pages while I am loading it by clicking on the main link activity it will only show my friends activity, but there are some more tabs in the same page after clicking on some other tabs (eg: My likes, Mentions) and when I click on the same tab for Activities then it will show all the activities on calling ajax its displaying all
Yes the drop down that includes -Everything-, my suggestion above would avoid having that as an option so that only friends activity could be viewed. Otherwise I’ll leave this to greater minds than me to answer.
@venutius I removed the everything from that list but I want Updates as the first one in that list box and I searched for that from Where its coming and didn’t understand please help me to find the filter list. Whether its coming from database or from any of the files
<select id=”activity-filter-by”>
<option value=”-1″><?php _e( ‘— Everything —’, ‘buddypress’ ); ?></option>
<?php bp_activity_show_filters(); ?>
<?php do_action( ‘bp_activity_filter_options’ ); ?>
</select>
@venutius this is the code in that page I directly removed the Everything which is coming as the first option but now i want updates as the first option from where the function bp_activity_show_filters() is getting values from database or any of the files
@venutius
Hi have you got any solution for my question, please help me
I’m afraid not, maybe someone else could comment?
Check out bp_parse_args()
. It’s super powerful when it comes to filtering the activity stream.
@henrywright Thanks for your reply i will check with bp_parse_args()