where can I find one the will work with [img] tags
& i know about the one that only resizes the width
but I need width AND hight
****************************************
O & I could use a Image upload in post =)
You could edit
inc/class_parser.php and specify maximum dimensions for images.
Look at this code:
PHP Code:
if($dimensions[0] > 0 && $dimensions[1] > 0)
{
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"\"{$css_align} />";
}
else
{
return "<img src=\"{$url}\" border=\"0\" alt=\"\"{$css_align} />";
}
|
To both the <img> tags, add something like:
Well I started I site where people are making video game levels & they are posting BIG screen shouts
http://utps3.incadudef.com/Forum/showthread.php?tid=6
Its quite a eye sore
I would like the photos to be auto Resized to like
Width 541 &
Height 340
that would be sweet
& I can't find the code you pointed out in your post
ORGAN Wrote:& I can't find the code you pointed out in your post
Um, it's there. Use Find?
Parse error: parse error, unexpected T_STRING in /homepages/16/d200218465/htdocs/UT3/Forum/inc/class_parser.php on line 718
I suck at this stuff LOL
Change the above code to something like this:
PHP Code:
if($dimensions[0] > 0 && $dimensions[1] > 0)
{
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" style=\"max-width: 541px; max-height: 340px;\" alt=\"\"{$css_align} />";
}
else
{
return "<img src=\"{$url}\" border=\"0\" style=\"max-width: 541px; max-height: 340px;\" alt=\"\"{$css_align} />";
}
|
Oh BTW, this won't work on IE6, since it sucks.
And this is a really simple quick solution - it will almost always cause large images to have distorted dimensions.
cool I hat IE
firefox all the way =)
thanks
*************[EDIT]********
works grate =) thank you vary much
the code just stopped working today ?
You're going to have to give more information. Code just doesn't work for a while, then decide to stop working...
Try the Image Resizer plugin by Cipher. It only has a width setting, but I'm pretty sure it automatically adjusts the height to suitably match. At least it does on my forum.
http://mods.mybboard.net/view/image-resizer