PDA

View Full Version : Avatar (image) resizing help!


djxcee
11-02-2008, 06:19 PM
I have my avatar image size set to 225x225px.
However I only want the width to be 170px on the showthread.php page (postbit_legacy),
so I've decided to add " width="170px" " in the postbit_legacy template and everything is fine. However, the problem is if a user uploads a small image (lets say 100px X 100px) it stretches and looks distorted in the showthread.php

Is there any way I can make it so that 170px is restricted for only images larger than that?

djxcee
11-04-2008, 04:10 AM
I found something about max-width and max-height but confused on how it works.

Lynne
11-04-2008, 02:38 PM
Why do you not want to just set the allowed size of the avatars in the Usergroup Manager?

It looks to me like the avatar path along with the height and width are determined in /inlcudes/class_postbit.php around lines 623 or so. You would probably have to edit that code to do what you want.

RedeemedWarrior
11-04-2008, 05:22 PM
i think you mean you want the avatar smaller on legacy than the normal postbit?

if so I can help. just let me know and i'll post up what ya need