Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatar sizing

  • I am wondering if someone can help me with the avatar sizing parameters. I am wondering if there is a way to change the allowed size of a avatar?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can do something like this in your theme:

    bp_displayed_user_avatar( ‘type=full&width=100&height=100’ );

    ok if i am using the default buddypress theme can you tell me which file that code would go into?

    if you post a link to the page that the avatar is on, i’ll be able to tell you which template file to change.

    not sure what your wanting so instead if you goto http://www.stoningtonlodge.org/blog and register with a valid name that way I won’t assume the account is spam and delete you then maybe that will help you figure out what file i need to change.

    You need to explain what page you are referring to, avatars are displayed across many pages and most can have their size passed through as args.

    Asking people to login to your site isn’t really going to help.

    You can define constants that BP will use as crop sizes but will also re-size existing avatars, results will vary though depending on original size.

    In bp-custon.php (create file if not existing in ‘plugins’ folde) add:
    `
    define( ‘BP_AVATAR_THUMB_HEIGHT’, 150 );
    define( ‘BP_AVATAR_THUMB_WIDTH’, 150 );
    define( ‘BP_AVATAR_FULL_HEIGHT’, 250 );
    define( ‘BP_AVATAR_FULL_WIDTH’, 260 );
    `
    depending on which type you want to resize.

    If you want finer control then you need to id the page in question and someone can tell you how to modify.

    I apologize for not being more specific. I am wanting to be able to get past a problem I am having when people have registered and are trying to set their avatar in their profile. And I am having trouble setting avatars for groups that I create. So thank you Hugo for enlightening me that I needed to be more specific. I thought it all was controlled in one area.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Avatar sizing’ is closed to new replies.
Skip to toolbar