topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday June 20, 2021, 10:30 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


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.hafenvo...=337.msg1270#msg1270

Thanks
Timo Trallala

Pages: [1]