Saturday, September 17, 2011

Fixing Blogger's new "feature"

You may have noticed when clicking on blog photos recently, that instead of getting a larger version of the picture, Blogger just displays the photo in a sort of slideshow format.  While you and I might consider this a bug, the folks who run Blogger, in their infinite wisdom, call it a "feature."

Unless Blogger decides to undo its unilateral implementation of this "feature," we are forced to view photos on other blogs in this manner.  However, there is a fix for individual blogs, which I have applied to SGDN.  Here's how to bring back the old way of displaying photos on your own blog:
  1. Go to the Design section of your blog (you know, the "Add and Arrange Page Elements" section).
  2. Click on "Add a Gadget" (anywhere on the page)
  3. Select the "HTML/Javascript" gadget
  4. Leave the title blank and paste this code into the "Content" section.
  5. Save your changes, and your blog will display photos the way you expect it to.

15 comments:

  1. Paste the following code into your HTML/Javascript gadget:


    <script type="text/javascript">
    //<![CDATA[
    function killLightbox() {
    var images = document.getElementsByTagName('img');
    for (var i = 0 ; i < images.length ; ++i) {
    images[i].onmouseover=function() {
    var html = this.parentNode.innerHTML;
    this.parentNode.innerHTML = html;
    this.onmouseover = null;
    };
    }
    }

    if (window.addEventListener) {
    window.addEventListener('load',killLightbox,undefined);
    } else {
    window.attachEvent('onload',killLightbox);
    }
    //]]>
    </script>

    ReplyDelete
  2. Thanks for digging this up. One of my blogs this doesn't matter, but on the other it is sort of self defeating. Taking very high res macro images then not being able to view them enlarged is...aggravating.

    ReplyDelete
  3. Thank you! I guess since facebook was doing it, blogger had to do it, as well. "See? We're hip, modern and happening, too!"

    ReplyDelete
  4. Thanks for finding that!

    Last night it semeed images were no larger, now they seem to show up as original size in the slideshow, so I'll not change it for now, but see how it goes and use your code if I don't like it.

    Though I don't put up anything truly massive, so I don't know if it would zoom in for pictures larger than 8" across at 180 dpi, which is about as big as I tend to use.

    ReplyDelete
  5. Thank you for the time and the article!

    I'll be in the corner fix'n things!

    CK

    ReplyDelete
  6. I didn't even realize it effected my blog, I thought it was an option others had chosen for theirs, I will fix this now, thanks for the fix.

    ReplyDelete
  7. Awesome, it worked, great work mate.

    Cheers
    Dan

    ReplyDelete
  8. Thanks for that...why does blogger keep Pi**ing about with the system....I mean, it´s not as if any of the changes they have recently made have been a sucess for them or us..
    Cheers
    paul

    ReplyDelete
  9. Thanks mate, with this you have restored my calm. :)

    ReplyDelete
  10. Bloody brilliant fix. Thanks for that, most appreciated.

    ReplyDelete
  11. Ditto the thanks. I put in the gadget and it worked like a charm.

    ReplyDelete
  12. So I did it and it worked. Now it doesn't (for your's either btw). Ugh.

    Think Google did a work around?

    ReplyDelete
  13. Google has backtracked on lightbox and reverted back to the old way of displaying photos. You can now delete the code from your blog. I deleted the kill-code on my blog and photos display fine. Deleting the kill-code also stopped the thumbnails from loading with some odd flashes.

    Love the retro gaming here! Lots of memories!

    ReplyDelete