Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding avatar & name to blogs

  • I am trying to add the blog owner name & avatar to their blog(s). When I try to use bp_the_avatar() in the theme, it just uses some generic avatar… not the avatar associated with the person.

    Is there some function call I need to make to get the bp functions to work right in themes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d like to build a widget for this, but for now you can do this in the sidebar:

    <div id="profile-badges">
    <?php
    $users = get_users_of_blog( $current_blog->blog_id );

    foreach ( $users as $user ) {
    $user = new BP_Core_User( $user->user_id );
    ?>
    <div class="profile-badge-avatar"><?php echo $user->avatar_thumb ?></div>
    <div class="profile-badge-name"><?php echo $user->user_link ?></div>
    <div class="profile-badge-active"><?php echo $user->last_active ?></div>
    <?php } ?>
    </div>

    That will print a profile badge for every user with privileges on a blog.

    Thanks! works great.


    zipnguyen
    Participant

    @zipnguyen

    Andy,

    Is the script above a means to change the blog avatars in BP. I’ve seen the trac ticket for it, but is this the “temporary” workaround?

    Thanks,

    Ninh

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding avatar & name to blogs’ is closed to new replies.
Skip to toolbar