diff --git a/wp-content/themes/score/lib/buddypress/functions-buddypress.php b/wp-content/themes/score/lib/buddypress/functions-buddypress.php index 8b2addd..7527018 100644 --- a/wp-content/themes/score/lib/buddypress/functions-buddypress.php +++ b/wp-content/themes/score/lib/buddypress/functions-buddypress.php @@ -535,6 +535,21 @@ function bp_member_add_dedicate_a_song_button() { echo bp_get_button( ( $button ) ); } } - add_action('bp_directory_members_actions', 'bp_member_add_dedicate_a_song_button'); +add_action('bp_directory_members_actions', 'bp_member_add_dedicate_a_song_button'); + + +function my_friends_by_default( $query_string ) { + global $bp; + + if ( !$query_string ) + $query_string = ''; + + if ( $query_string == '' && $bp->current_component == BP_MEMBERS_SLUG && !strpos($query_string, 'scope=')) { + $query_string .= 'type=active&action=active&user_id='.$bp->loggedin_user->id.'&scope=personal&page=1'; + } + + return $query_string; +} +add_filter( 'bp_dtheme_ajax_querystring', 'my_friends_by_default' ); ?> \ No newline at end of file diff --git a/wp-content/themes/score/members/index.php b/wp-content/themes/score/members/index.php index 2d83850..b9e239b 100644 --- a/wp-content/themes/score/members/index.php +++ b/wp-content/themes/score/members/index.php @@ -34,7 +34,7 @@