PDA

View Full Version : Minimum Avatar Size [REQ]


domokun
07-18-2006, 04:12 AM
Hey there,

Right now I have my forum set so that the maximum avatar size is set at 150x150 pixels. But what I cannot do is set the minimum so that the users don't upload a tiny avatar. My minimum is enforced verbally at 100 width and 150 height. Is there a hack I could get that could automatically prevent users from uploading an avatar that's below the minimum?

Thanks :),

domokun

Having a fixed size avatar would also help if there's no way to have a minimum size.

Thanks again ;),

domokun

Scandal
09-20-2007, 10:56 PM
I need it too! :(

Any idea how to set a minimum avatar size?

Freesteyelz
09-21-2007, 07:54 AM
I've always edited the postbit and/or postbit_legacy templates and defined the width/height of the avatar. If you don't mind doing that then...

Find:


<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />


Replace with:


<img src="$post[avatarurl]" width="x" height="y" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />



Replace "x" with width size and "y" for height size. It doesn't matter what size the image upload is as it'll be forced to display your specified dimensions.