Wtf ??? Huge avatars in torrent comments
1 Attachment(s)
What the... i didnt do anythink but now my torrents comments are huge
Attachment 558 can you tell me how to fix this :( |
simply check to make sure your not using a pic thats about 200 x 200 for a avatar or just open the torrent details file and look for the section that deals with the avatar and add width="100" or something to make it shrink any avatar to that size :)
|
Here is an answer you can actually use!
include/functions.php (Line 930) remove: $avatar_max_height, $avatar_max_width include/functions.php (Line 980) remove: height=\"$avatar_max_height\" and width=\"$avatar_max_width\" to line 980! |
might also be a good idea to implement either a javascript or php validation for the avatars. PHP validation would getimagesize() and check its not too big and javascript would resize if too big on loading .. i prefer the php method but u have to turn off error reporting at all levels .
i have also used phpthumb to do this on one site but i really hate that class |
All times are GMT +2. The time now is 15:42. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.