MyBB Community Forums

Full Version: Avatar Gallery Resize
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! Assistance is needed.
How do I have the avatars in the avatar gallery resized to a desired width? I've been searching the forums and can't find anything related to what I'm looking for. Thanks in advance.
you mean like, so when someone uploads their own avatar, it is like 90x90?
Is ACP > Configuration > User Registration and Profile Options > Maximum Avatar Dimensions what your looking for?
Sorry, I should have been clearer. I mean in the avatar gallery that I upload, the default gallery, not user uploaded avatars. Log in to my site with the test user profile and check the change avatar option under the User CP. I want the avatars displayed in the gallery to displayed with a limit of 100px regardless of the actual size.

http://42kmi.taloncrossing.com/
Username: testuser
password: testuser
Ok, 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="100" alt="{$avatar}" title="{$avatar}" />
Thank you so much Big Grin
I turned this into a tutorial along with how to fix this issue in other places, you might like to take a look at the rest http://community.mybboard.net/thread-63934.html Wink