MyBB Community Forums

Full Version: Fixed avatar size in misc.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Get rid off fixed avatar dimensions in misc.php (line 582 @1822) - used to display avatars in buddylist-popup on header menu.
$buddy['avatar'] = format_avatar($buddy['avatar'], $buddy['avatardimensions'], '44x44');

This dimension is fixed in source code and should better be replaced by dimensions set up in ACP:
mybb_settings.useravatardims

Using fixed pixels in hard code may complicate/violate template designing.

[ExiTuS]