Once it’s running.
Started 1 year, 10 months ago by: Korhan Ekinci
I have the latest WP and BP installed.
I just want to show member updates in my activity stream and nothing else. And i don’t want the dropdown filter box to show at all.
How can this be done.
Thanks already for your help.
Hi,
I advise doing this in your own child theme:
You’ll have to modify the /activity/index.php file. In there you can change your activity stream loop to just return status updates, and you can also remove the dropdown filter.
This page gives some guidance on modifying the activity stream loop, including the filter you’ll need just for status updates:
http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
Cheers, Roger
Hello,
Thnx Roger. I did make some research and found this post:
http://buddypress.org/community/groups/creating-extending/forum/topic/how-to-add-per_page35-without-messing-up-load-more-link/
Since I also have this code in my activity-loop.php: php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) ) ) :
Thanks to @Boone :
http://buddypress.org/community/groups/creating-extending/forum/topic/how-to-add-per_page35-without-messing-up-load-more-link/#post-45733
I did this in my child theme’s function.php file:
function my_custom_query_filter( $query_string ) { $query_string .= ‘&action=activity_update’;
return $query_string; } add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );
It seems to work! I now just need to get rid of the dropdown filter boxes!
And to hide the dropdown filter box here is what i added in my child theme’s style.css:
#activity-filter-select { display: none; }
I’m no fan of hiding things with CSS – the code is still ‘cluttering’ up the html – best to remove it in the html/php source file.
Thanks for the lead on the suggestions from @boone using custom filters in the functions.php file.
To remove the dropdown menu, copy over /activity/index.php to your child theme and remove the following list item:
http://pastebin.com/ZLBBYU9u
Existing and new plugins/components and themes.
Show off your BuddyPress powered sites.
Problems with getting it running.
Discuss translating BuddyPress
Everything else.
Feature requests; criticism.
Post your add-ons here.
To start connecting please log in first.
Remember Me
Think you've found a bug with the software? Please report it here (use the same login credentials).