02-12-2006, 04:31 PM
![[Image: logo.gif]](http://forum.msgstuff.com/images/msgstuff/logo.gif)
is used this
Code:
[ img=100x100]http://forum.msgstuff.com/images/msgstuff/logo.gif[/img ]so the image should be resize to 100x100
to fix that
Open inc/functions_post.php(line 103)
find:
PHP Code:
$message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\]([a-z]+?://){1}(.+?)\[/img\]#i", "<img src=\"$3$4\" style=\"border: 0; width: $1; height: $2;\" alt=\"\" />", $message);
and replace with
PHP Code:
$message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\]([a-z]+?://){1}(.+?)\[/img\]#i", "<img src=\"$3$4\" style=\"border: 0; width: $1px; height: $2px;\" alt=\"\" />", $message);
regards
