Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @jamz86

    Member

    bump? is this really that hard?

    @jamz86

    Member

    bump!

    @jamz86

    Member

    If you’re trying to pull just the avatar from within a loop, this shows how to do that:

    http://wpmu.org/how-to-create-a-gallery-of-members-avatars-in-buddypress/

    If you’re trying to pull up someone’s avatar simply by ID, use bp_core_fetch_avatar() like this:

    `
    <?php
    global $bp;
    $the_avatar = $bp->displayed_user->id; //you’d put in whatever function you’re using to get the ID here, assign it to a variable
    echo bp_core_fetch_avatar( ‘item_id=’.$the_avatar );
    ?>
    `

    Look up bp_core_fetch_avatar() as there are a lot more options than this. For example, do you want a thumbnail or full sized image? There is a way to specify. Hope that helps!!

    @jamz86

    Member

    Hi @boonebgorges, I’ve tried the array structure, and the problem is still there. I’ve never done var_dump() before, so I’m a little confused. Could you show me the code I should put in?

    @jamz86

    Member

    Hi @Stacy, thanks! Is the code written correctly? When I copied it into bp-custom in Dreamweaver it said the code was invalid. Thanks so much, though.

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar