PDA

View Full Version : How to change avatars' thumbnails diemensions in 3.7 & 3.8


Mazinger
12-08-2008, 10:00 PM
Avatars' thumbnails are which you see in new profiles, albums, social groups, comments and visitor messages.

The maximum dimensions by default are 60px width and 80px height.

1) You can change them from includes/class_core.php (line 17):

/**#@+
* The maximum sizes for the "small" profile avatars
*/
define('FIXED_SIZE_AVATAR_WIDTH', 60);
define('FIXED_SIZE_AVATAR_HEIGHT', 80);
/**#@-*/
Change the 60 and the 80 to the new values you want and save.


2) Then go to your admincp to rebuild the thumbnails:

Maintenance -> Update Counters -> Rebuild Avatar Thumbnails


And you're done! :)

Marco van Herwaarden
12-10-2008, 08:17 AM
Moved to modifications. Please also upload your instructions in a text file.

nerofix
12-10-2008, 06:14 PM
Ah thank you :)
I was looking for this. I fixed it by editing the functions_user.php with just linking all thumbnails of avatars to the original avatars because they are bigger, but your solution is better I think.

lostgirl815
01-19-2009, 11:02 PM
Is there any way to just turn off the thumbnail deal? I really hate it.

Mazinger
01-20-2009, 06:35 PM
I don't know about it - sorry. :)

lostgirl815
01-20-2009, 07:24 PM
Ah well, thanks for the answer! I've never actually messed with the hard code before, but I'm about desperate enough to try. Thanks for the Mod!

Naan-Kadavul
06-12-2010, 10:39 AM
Is there any way to put a specific size for an avatar ?

this hack is for only avatar thumbnail. right ?

I need to set up 120px X 120px for my avatar that appears in Threads & Posts.

Is there any way? Please guide. Thank you.

Sweeks
06-12-2010, 11:24 AM
Is there any way to put a specific size for an avatar ?

this hack is for only avatar thumbnail. right ?

I need to set up 120px X 120px for my avatar that appears in Threads & Posts.

Is there any way? Please guide. Thank you.

You can set that under your usergroups options.