Messages - Timo Trallala [ switch to compact view ]

Pages: [1]
1
Hi Mouser,

once again: Is there a way to set a max width for fullsizeInlineImages so they will not crash my layout.

The following function should solve my problem, but I really don't know how to edit my files


   function resizeImage($width, $height, $maxWidth, $maxHeight)
        {
        $srcRatio=$width / $height;  // width/height ratio
        $destRatio=$maxWidth / $maxHeight;

        if ($destRatio > $srcRatio)
            {
            $destSize[1]=$maxHeight;
            $destSize[0]=ceil($maxHeight * $srcRatio);
            }
        else
            {
            $destSize[0]=$maxWidth;
            $destSize[1]=ceil($maxWidth / $srcRatio);
            }

        return $destSize;
        }

Thanks for some instructions
Greetz from Germany
Timo

2
O.K. done!

But there is a final question:

can I set a max-width  for inline-fullattach, so that none can crash my layout.

for example:
if(imgwidth>maxwidth)
   displayASInlineThumbAttachement

Thanks
Trallala

3
 :Thmbsup:

O.K. Thanks A Lot. I switched to default theme and now it's working fine.

So I will continue width edititing my favorite theme 8)

bye
Trallala

4
Hi,

first of all a great feature, but it won't work in my case.


http://forum.hafenvolleyballer.de/index.php?topic=337.msg1270#msg1270

Thanks
Timo Trallala

Pages: [1]
Go to full version