Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I get the big avatar from the 2 we have?


  • seppolaatle112
    Participant

    @seppolaatle112

    Hey again ladies and gentlemen.! :P

    This little piece of code, will get the small avatar, 50×50 into the template. What can I do, if I want to get the avatar with a size of 150×150 witch also is created when someone uploads a new avatar?

    <?php bp_loggedinuser_avatar_thumbnail( 74, 74 ) ?>

    Thanks in advance everyone. :)

    Best Regards

    – Atle

Viewing 7 replies - 1 through 7 (of 7 total)
  • With the latest revision (r595+)

    Thumbnail:

    <?php bp_core_get_avatar( $user_id, 1 ) ?>

    Full Size:

    <?php bp_core_get_avatar( $user_id, 2 ) ?>

    Custom Size:

    <?php bp_core_get_avatar( $user_id, 2, $width, $height ) ?>

    Or you can use the template tag:

    <?php bp_loggedinuser_avatar() ?>


    seppolaatle112
    Participant

    @seppolaatle112

    I actually did try using.: <?php bp_loggedinuser_avatar() ?> , but this one is not working. My guess is because I did not upgrade to the latest trunk yet.

    I guess I’ll just do that, and everything will be fine. :)

    Thanks for helping me out on this one. ;)

    Regards

    – Atle


    seppolaatle112
    Participant

    @seppolaatle112

    And everything looks just great!


    seppolaatle112
    Participant

    @seppolaatle112

    Ok.. I am now using <?php bp_loggedinuser_avatar() ?> , witch is working great with the latest trunk.

    But,

    <?php bp_core_get_avatar( $user_id, 1 ) ?>

    <?php bp_core_get_avatar( $user_id, 2 ) ?>

    <?php bp_core_get_avatar( $user_id, 2, $width, $height ) ?>

    Does not work. I have no idea why, but I can’t belive this is me doing something wrong. I don’t get any errors, just no images…

    <?php echo bp_core_get_avatar( $user_id, 1 ) ?>

    :)


    seppolaatle112
    Participant

    @seppolaatle112

    No kidding. Hehehe :P

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I get the big avatar from the 2 we have?’ is closed to new replies.
Skip to toolbar