PDA

View Full Version : Force Signature to Specific Size regarding Resized Images


ggiersdorf
01-27-2006, 12:17 PM
I looking for some hardcoded text or Plugin that will make signatures resize to X regardless of the size they are.

Here is the code for IE I have more but this is what im talking about.

return '<a href="' . $link . '" target="_blank"><img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 500 ? 150 : true);" /></a>';
}

this takes any image thats over 500 and shrinks it to 150 sadly this also shrinks down the signatures if there over 500 thatsnot usally an issue, but some people change that 500 down to 150 all the time so you can fit alot of images on the screen than the signature shrinks also.

Im looking for someone to help me complete some new code I have that will work for IE, Opera, and Firefox

I need CODE that will force only the $signature images tags to be resized to X value.

Or modficiation to the above code that excludes the [img] tag from being shrunk with the pictures on the forum.

Thanks in Advance.

PLEASE do not attempt to install the code above it is incomplete and will not work. I will release the entire code once we fix this..

Zia
02-20-2006, 05:37 PM
its very important :S for us ..that related with sigs..not to resized by image re-sizer