MyBB Community Forums

Full Version: avatar size
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I put the size of the avatar people may add to 90x90, but now I see that this means that they also can add a smaller size as 90x90.
Is it possible to do something that the size of the avatar is always 90x90 even when the original is 100x120 or 70x110??
The option is "Maximum avatar size", not "Specific avatar size". So, you'll need a code modification for what you want.
OK I understand so my question is does anybody know a codemodification or this.
The easiest way would be to change the postbit_avatar template
from:
<img src="{$post['avatar']}" alt="" {$avatar_width_height} />
to something like
<img src="{$post['avatar']}" alt="" width="90" height="90" />

Do note this is a quick and somewhat "dirty" work around...
ZiNga BuRgA Wrote:The easiest way would be to change the postbit_avatar template
from:
<img src="{$post['avatar']}" alt="" {$avatar_width_height} />
to something like
<img src="{$post['avatar']}" alt="" width="90" height="90" />

Do note this is a quick and somewhat "dirty" work around...
Should still give the desired result though even if it is dirty, lol Smile.
This does not work.
I made an avatar of 200x200
I change the code as you said and the avatar still 200x200
^^The above doesn't change the original image's dimensions - it just changes the dimensions when viewed in a browser (ie the browser resizes the images).
OK thats works but still 2 problems

When people wanne change their avatar,

- the original size is there and not the resized size
- the text The maximum dimensions for avatars are: 200x200 pixels, I wanne have this 200x200 in 90x90.