Hi,
is it possible to integrate the following code ? :
$str = preg_replace("/\[img\](.*?)\[\/img\]/ie", "'<img src=\\1 border=0>'", $str);
list($width, $height, $type, $attr) = getimagesize($fotopad);
if($width > 500)
{
$width = '500';
}
[code=php]
Because some ppl just use to large images...
I want that in the img tag that there the var width is used.
but i don't now how to integrate those two.
Thanks for any help in advance...