Messenger Stuff Community Forums

Full Version: [img=x*y] not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: 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
Fixed :)
this was actually already mentioned: http://forum.msgstuff.com/showthread.php...34#pid1934
the andyman Wrote:this was actually already mentioned: http://forum.msgstuff.com/showthread.php...34#pid1934
but it wasn't fixed !
and the post is from 02-05-2006
so it's good to remind !!

bbye
so is it working now?
_James_ Wrote:so is it working now?


Yes its been fixed :)
Since it's been fixed I see there is no use to keep this open. Keep it up zaher1988

Don't argue this close. This thread isn't needed anymore. It's closed for a good reason
Reference URL's