Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change thumb avatar files to full.

  • @lrv

    Participant

    Hi.
    Thumb avatars looks to small and ugly. I would like to use only full version of avatar files everywhere in buddypress. How to change use of thumb avatar files to full?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @lrv

    Participant

    Strange things to this forum. I opened this topik 3 days ago but last activity displayed more the year ago and it never been on top page.

    The question is still relevant!

    @henrywright

    Moderator

    Hi @lrv

    Do you have a link to the original thread you opened? I’ve noticed the same thing happening so will pass on any info you have to the core dev team.

    Regarding full avatars instead of thumbs – you can set the thumb (and full) avatar size in your bp-custom.php file. For example:

    define ( 'BP_AVATAR_THUMB_WIDTH', 80 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 80 );
    define ( 'BP_AVATAR_FULL_WIDTH', 300 );
    define ( 'BP_AVATAR_FULL_HEIGHT', 300 );

    If you don’t already have a bp-custom.php file, just create one and drop it in your plugins directory – i.e. yoursite.com/wp-content/plugins/bp-custom.php

    @lrv

    Participant

    Hi @henrywright
    Thanks for the idea!
    It is possible to replace the existing users avatars?

    @henrywright

    Moderator

    @lrv No, using the bp-custom.php approach – you’d need to re-upload existing avatars in order for the new sizes to be used.

    The alternative is to use the full size avatar throughout your theme. However, this might involve making changes to multiple template files (depending on your theme).

    @somethingelse

    Participant

    this worked great…
    now, is it reasonably simple to add a THIRD size?? eg. i’d like one size for listings, one size for featuring, and one size for the individual profile pages…

    there isn’t a list somewhere of which size is used in which file, i suppose… 🙂

    @hnla

    Participant

    Make your ‘full’ image size larger than needed and then go through your templates setting the width/height prams on the avatar call, you can always reduce an image dimensions – within reason – and retain quality whereas you can’t increase without pixalation.

    @somethingelse

    Participant

    THAT makes sense… perfect, thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change thumb avatar files to full.’ is closed to new replies.
Skip to toolbar