2010-01-28, 05:40 AM
I'm surprised that MyBB doesn't already do this but you might have noticed that the avatars in your avatar gallery are shown at full size, not the board avatar size. I came up with a solution for this in a support thread and its pretty straight forward so I thought it would be a useful tutorial.
Simply go ACP > Templates & Styles > Templates > Select template > User Control Panel Templates > usercp_avatar_gallery_avatar and replace:
Enter your avatar width where it says yourwidth, usually this is simply 100px so you would just enter 100 there.
Here are some other places where this is also an issue:
In User Control Panel Templates > usercp_avatar_current template change:
In User Control Panel Templates > usercp_avatar_current template change:
Simply go ACP > Templates & Styles > Templates > Select template > User Control Panel Templates > usercp_avatar_gallery_avatar and replace:
<img src="{$avatarpath}" alt="{$avatar}" title="{$avatar}" />
with:<img src="{$avatarpath}" width="yourwidth" alt="{$avatar}" title="{$avatar}" />
Enter your avatar width where it says yourwidth, usually this is simply 100px so you would just enter 100 there.
Here are some other places where this is also an issue:
In User Control Panel Templates > usercp_avatar_current template change:
<img src="{$urltoavatar}" alt="{$lang->avatar}" title="{$lang->avatar}" {$avatar_width_height} />
to<img src="{$urltoavatar}" alt="{$lang->avatar}" width="yourwidth" title="{$lang->avatar}" />
In User Control Panel Templates > usercp_avatar_current template change:
<img src="{$urltoavatar}" alt="{$lang->avatar}" title="{$lang->avatar}" {$avatar_width_height} />
to<img src="{$urltoavatar}" width="yourwidth" alt="{$lang->avatar}" title="{$lang->avatar}" />