Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: friends widget for the profile sidebar


jschires
Participant

@jschires

probably too old and not needed now, but I did something like this and added it to the userbar.php

<td colspan=”2″ align=”center” valign=”middle” class=”freindsbox”> <?php if ( bp_has_friendships(‘type=active&per_page=6&max=50&user_id=’ . bp_loggedin_user_id() ) ) : ?>

<ul id=”friend-list” class=”item-list”>

<?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>

” title=”<?php bp_friend_name() ?>” target=”_blank”><?php bp_friend_avatar_thumb() ?>

<?php endwhile; ?>

<?php else: ?>

<div id=”message” class=”info”>

<p>No friend connections found.</p>

</div>

<?php endif;?></td>

</tr>

<tr>

<td height=”110″ colspan=”2″ align=”center” valign=”middle”>

</td>

</tr>

</table>

Skip to toolbar