Posts tagged image

Lightbox JS v2.0 Integration with Blogger Template

Create a simple Photolog using and Lightbox JS. A step by step guide for photo bloggers; to Integrate Lightbox with their existing Blogger publishing system.

Blogger is a popular weblog publishing system, which supports custom designs and templates. Meanwhile Blogger is not much popular as other blog publishing system like WordPress, etc for its support to Plug-ins. In other hand Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It is lightweight and works with most of the browsers with Javascripts enabled.

Yesterday, I was trying to publish my own Photolog. I was looking for a good web serice so that it would ease my task. I am with Blogger for a quite time and still I have not moved my blog to WordPress, even I wish so. So I decided to go with Blogger again with the FTP publishing enabled. But blogger didn’t have any ready made plug-in for Lightbox so I had to hack the code little bit. Blogger with Ligthbox would give any blog a realistic Photolog look.

Step by Step Guide:-

  1. Download the Lightbox JS script from Here and copy the scripts to your web server most likely where your blog is been published.
  2. Login into Blogger system and go to Template –> Edit HTML
  3. Add the below line into the Meta section of HTML tag
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen">

  4. Add the following scripts tag in the header section of the HTML template
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
  5. Check the CSS and make sure the referenced prev.gif and next.gif files are in the right location. Also, make sure the loading.gif and close.gif files as referenced near the top of the lightbox.js file are in the right location.
  6. Once you’re done Save the Template.
  7. With Blogger, we will not able to tweak their system directly, since it is not open source software. So we need to have little manual effort every time before you publish a photo log entry.
  8. After creating a blog entry in Blogger system, do the following steps before publishing.
  9. Go to Edit HTML option in the Post window as show in the figure
  10. Once you have uploaded the image you will see an entry similar shown in the figure below.
  11. Replace the selected code above with rel=”lightbox” as shown below
  12. You can also add title tag in tag to enable Caption in the LightBox displayed
  13. Now you’re all set and you can publish your Photolog.

If you like to have image sets for each post entry then you need to add rel="lightbox[group_name]" for all the images that you which to show in that particular group image set. It should be similar to the below image.
Now you have a wonderful Photolog to start with as I do; Visit my PhotoLog at The PhotoLog Free Image Search Engine

YotoPhoto is an alternative for Google Image search. YotoPhoto can be used for searching free / open images. YotoPhoto can be great resource for bloggers and designers.

I was looking for a decent image for my new design. I initially tried using Google’s Image search. I was fed up with Google, since it had a huge source and most of the decent images are copy protected as well 🙁 So I was not able to get what I wanted. Only then I came to know about the existence of image search engine where we can find free to use images.

YotoPhoto was really decent which managed to give me decent images with Creative Commons, Public Domain, GNU FDL, and various other ‘copyleft’ licenses.YotoPhoto is an image search engine with a difference. It allows you to search for free-to-use stock photographs and images.

They index various sources of free imagery on the web including Flickr, Wikipedia, Stock.Xchng, Morguefile, Pixelperfect Digital and OpenPhoto. Only photographs are indexed at this time. Other image types like maps, graphics, illustrations, 3D renderings, charts and the like are not indexed currently.

In short these are images you can use without paying anything. However an attribution may be required in some cases. They also provide a link to the type of license the image is under for convenience.

You can search by tags, keywords or by color. You can include stop words and specify image orientation. You can also combine keyword search with color attribute. YotoPhoto gives the copyright information about the image in search results which is great for Developers/ Designers etc,

Finally I got a decent image for the my new design 🙂

Kudoz to YotoPhoto!

Go to Top