Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatar Sizes in the Leaderboard

  • Avatar of Nm
    nm
    Participant

    @nahummadrid

    paul would you consider changing the avatar type in the leader board to Type=Full and replace the height/width with achievement css to make it 20px. so that it allows for manipulation of the original image, rather than being stuck having to CSS around the 20×20 thumb size which leads to some crappy looking avatars when scaled up. I guess I would also settle for just changing it to type=thumb without the 20/20 hw.

    bp_core_fetch_avatar( array( ‘height’ => 20, ‘item_id’ => $high_scorers[$i]->id, ‘type’ => ‘thumb’, ‘width’ => 20 ) )
    to
    bp_core_fetch_avatar( array( ‘item_id’ => $high_scorers[$i]->id, ‘type’ => ‘full’ ) )
    and
    `div.achievements-sitewide-leaderboard tr td img.avatar {
    height: 20px;
    width: 20px;
    }`

    For example I’m making use of the widget in the body of a page for a pseudo Leaderboard page and I’m having shotty images when trying to make the image size of the avatar bigger using CSS.

    I guess i could recreate a new widget but I’d rather not. :) Or is there another way?

Viewing 4 replies - 1 through 4 (of 4 total)
  • People would usually kill me for loading larger images then scaling them down, but I’ll consider this. I’ll probably end up saying that you have to make/tweak your own widget, however.

    Avatar of Nm
    nm
    Participant

    @nahummadrid

    no problem…doesn’t hurt to throw it out there!

    I am not going to change this; BuddyPress has settings to change the size of the thumbnail avatars (changing those would affect all across the site, not just Achievements). If you’re trying to use a larger picture size, as you suspected I would suggest that you build a new widget.

    You’re probably recommended to build this into a separate plugin for convenience, rather than to try to stick it into your theme’s functions.php.

    Avatar of Nm
    nm
    Participant

    @nahummadrid

    all good! no worries. it’s widget time. :)

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

The forum ‘Achievements’ is closed to new topics and replies.