Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to call avatar thumbnails

  • @dmcdmc

    Participant

    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)
  • @mariusooms

    Participant

    try: <?php bp_the_avatar_thumbnail() ?>

    @jeffsayre

    Participant

    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)
  • The topic ‘how to call avatar thumbnails’ is closed to new replies.
Skip to toolbar