Skip to content

Commit

Permalink
Fix for search friends not showing
Browse files Browse the repository at this point in the history
- Props to Jarretc
- Adds in fix for spacing on search returns
  • Loading branch information
karmatosed committed Aug 5, 2012
1 parent f112149 commit fdcbebb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion _inc/css/status.css
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,9 @@ margin: 0 0 20px;
width: 100%;
min-height: 100px;
}

#whats-new-about{
padding: 10px 0 0 0;
}
.groups #whats-new-declare {
border-bottom: 1px solid #ddd;
border-right: none;
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function status_blog_comments( $comment, $args, $depth ) {
function status_showfriends() {
$user = bp_loggedin_user_id();
if( is_user_logged_in() ) :
if( bp_has_members('user_id=' . $user . '') && $user !== 0 ) : ?>
if( bp_has_members('user_id=' . $user . '&search_terms=') && $user !== 0 ) : ?>

<ul id="friends-list" class="looplist">
<?php while ( bp_members() ) : bp_the_member(); ?>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: An activity stream focused child theme for BuddyPress
Version: 1.0
License: GNU General Public License
License URI: license.txt
Author: DJPaul, Hnla, Karmatosed, Ve, Mercime
Author: DJPaul, Hnla, Karmatosed, Ve, Mercime, Jarret
Author URI: http://buddypress.org
Template: bp-default
Tags: buddypress, two-columns, fixed-width
Expand Down

0 comments on commit fdcbebb

Please sign in to comment.