I've tried this mod, thanks TECK, it works well.
But I need some enhancements, pls help !
In my forum, users send a lot of image in posts, and I want the images have better layout:
1. Don't touch the small in-line image like this

one
2. For the image that larger than 200 px wide, I would like to have them center-aligned,
so i did some modifications in the code
PHP Code:
$dynimage = '';
if ($this->registry->options['dynamicpic_enabled'])
{
$dynwidth = intval($this->registry->options['dynamicpic_width']) - 1;
$dynimage = ($dynwidth > 0) ? 'class="resizeimage" onload="resize_image(this, \'' . $link . '\', ' . $dynwidth . ');" ' : '';
list($width, $height, $type, $attr) = getimagesize($link);
}
if ($width >200)
{
return '<div align="center"><img src="' . $link . '" style="border: 12px solid #EBEBEB" alt="" ' . $dynimage . '/></div>';
}
else
{
return '<img src="' . $link . '" border="0" alt="" ' . $dynimage . '/>';
}
Live demo at:
http://forum.vietpet.com/showthread.php?p=3198#post3198
But here, I used php getimagesize(), which connects to remote server to get actual width of the image. It slows the page load EXTREMELY.
May be CSS can help? But I don't know how to modify CSS
CAN YOU GIVE A SOLUTION?
Thanks a lot in advance
Kien, NT