Large Image Popups More Friendly Now
Thursday, April 13th, 2006
Go forth and rejoice! You will now be able to view UltraMom’s ginormous popup images in their entirety. Well, actually unless she or I goes back and fixes the one’s she has already posted (and I have fixed a few) then you’ll only be able to see the new photos in their entirety.
I may be the only one who has been bothered by this, but whenever Mom added an image to the site recently it was always too big for my laptop screen, and the popup window had no scrollbars so I was unable to see the parts of the photo that didn’t fit into my screen. As mentioned in my post about how to link (for which I haven’t gotten so much as a thank you I might add), I was planning to do a write-up on how UltraMom could fix this issue when uploading her photos, but then I thought, “She shouldn’t really have to do that. It is our site that is generating the code for her popup window, so why should she have to go back and correct it. I should go in and make the system generate the code how I want it.” So that is what I did. I dug into the code that runs our blogging system, and found the part that generates the popup window and modified it. I was a bit hesitant to do it, because our blogging system is written in Perl, and I’m not all that familiar with Perl, but it was extremely easy.
Anyway, unless we have gone back and fixed it, the images on this old post from UMom should demonstrate the popup window with neither scroll bars nor the ability to resize.
The test post I just put up should have a popup that should be resizable and have scrollbars unless your screen is big enough that the image fits in it without scrolling.
Now just in case you want to go back and fix your old popups Mommy, you can do that by changing two things in each popup link:
scrollbars=>no,resizable=no
should change to:
scrollbars=>yes,resizable=yes
If you examine the source for your posts you should be able to find that for each popup.