News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Size of avatars

Started by celticgirl, October 01, 2004, 04:58:33 PM

Previous topic - Next topic

celticgirl

My board seems to have avatars set as rather small...is there anyway I can set this to a larger size?

[Unknown]

Admin -> Edit Features and Options -> Avatars -> adjust the size limits there.

-[Unknown]

celticgirl

heehee thanks! *hugz* I should have noticed that... ::)

NoRad

Any chance of boxing in the avatar with a solid color if it doesn't meet the size of the Square?

Let's say my max avatar is 100x100. I upload a pic of 75x100. I fill in the extra 25 pixels with a solid color (evenl on each side).

davon

#4
@ Radianation

you could define an extra table around the avatar stuff in Display.template.php, width and height to 100px, background-color of your choice, even like a wanted border.

simple example:

// Show avatars, images, etc.?

if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
    echo '
    <table cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td style="width:100px; height:100px; background-color:#FFFFFF; border:1px solid #BBBBBB;" align="center" valign="center">
        <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div>
        </td>
      </tr>
    </table>
<br />';

NoRad

That was easy enough to do, but I'll have to change it in several places (profiles, who's online, etc.) and it seems to be showing the box even if they don't have an avatar. Thanks for the tip though.

davon

Quoteand it seems to be showing the box even if they don't have an avatar

hm, thats funny.. for me it's working like expected. dunno why you get the box even without an avatar :(

NoRad

looks like it has something to do if their avatar is an off-site link that has stealing blocked.

davon

ok.. but sadly i have no clue how to proove if an avatar was correctly loaded. i only allow directly uploaded avatars in my board to step beside such problems.

NoRad

I have just enabled that option on mine as well. I felt guilty about bandwidth stealing.

Advertisement: