Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: My Friends Activity


matt082606
Participant

@matt082606

why couldn’t you just do this: (of course add style <div>’s etc… just hacking this out quickly)

<?php if ( bp_has_friendships() ) : ?>

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

  • <?php bp_friend_avatar_thumb() ?>

    <h4><?php bp_friend_link() ?></h4>

    <?php bp_friend_last_content_update() ?>

  • <?php endwhile; ?>

<?php else: ?>

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

<p><?php bp_word_or_name( __( “You have no friends”, ‘buddypress’ ), __( “%s’s friends list is currently empty”, ‘buddypress’ ) ) ?></p>

</div>

<?php if ( bp_is_home() ) : ?>

<h3><?php _e( ‘Why not make friends with some of these members?’, ‘buddypress’) ?></h3>

<?php bp_friends_random_members() ?>

<?php endif; ?>

<?php endif;?>

Skip to toolbar