Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to call avatar thumbnails

  • Avatar of dmcdmc
    dmcdmc
    Participant

    @dmcdmc

    Hey. I’m relatively new to buddypress and php coding.

    I am trying to call in the thumbnail versions of a user’s avatar in order to create a link to go back to that user’s profile to put at the top of the friends, group, blogs etc. pages (somewhat ala facebook).

    this is the code i am toying with:

    <a href="<?php bp_user_link() ?>"><?php bp_the_avatar() ?></a>

    however, the “bp_the_avatar” calls in the full size version. i tried resizing to no avail. Does anyone know the call for the thumbnail version?

    I just want to call the same thumbnail used for wire posts basically. thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    try: <?php bp_the_avatar_thumbnail() ?>

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    This will do the trick:

    <?php global $bp; ?>
    <a href="<?php echo bp_core_get_userurl($bp->displayed_user->id) ?>"
    title="<?php bp_core_get_user_displayname( $bp->displayed_user->id, true ) ?>">
    <?php echo bp_core_get_avatar( $bp->displayed_user->id, 1 ) ?></a>

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.