Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How can I set “Show NewBlogPosts” as default on acitivity-stream?

@riotdezigner

Member

Great Functions!!! i have been looking for it. only thing i am trying to do now is to use the function only when under friends activity. so in groups activity and Favorites “no filter” will be normal.
i was trying something like that :

function blog_posts_by_default( $query_string ) {
global $bp;
if ( !$query_string )
$query_string = ”;

if ( ($bp->current_component == BP_ACTIVITY_SLUG . ‘/’ . BP_FRIENDS_SLUG . ‘/’ || !$bp->current_component) ) {
if ( strpos( $query_string, ‘action’ ) == 0 )
$query_string .= ‘&action=activity_update,new_member&scope=groups,friends,profile’;
}

return $query_string;
}
add_filter( ‘bp_dtheme_ajax_querystring’, ‘blog_posts_by_default’ );

and i tried many other ways but all gave the same results.

Skip to toolbar