Well well it may sound easy to implement the Lightbox photo album, but of course I think you all don’t mind some bits of the implementation details:
- In the Lightbox /js/ directory, check the file lightbox.js, search the Configuration section. Ensure the paths to the two images are correct.
- In the Lightbox /css/ directory, check the file lightbox.css, ensure the paths to the image files are correct.
- Now back to the blog tool, find out the tiny-mce-xxx.js (xxx is your blog tool), probably in the js directory, and make sure the “a” element (i.e. the anchor tag) includes “rel” (i.e. the relationship attribute) in the line of extended_valid_elements. That change make the tinymce accepts “rel” in anchor tag (by default, tinymce will remove this attribute).
- Then, amend the template of your blog (in my case, the header.template) to include the few script tags and link tag (as specified in the Lightbox help page). That change includes extra js files to your blog pages – i.e. it will essentially slow down all the pages … sorry.
- Last step, create your blog post as usual, but don’t forget to include the “rel” attribute in the anchor tag, as in the Lightbox help page.
That’s it !!
2 thoughts on “How To – Lightbox”
hey Mic, that lightbox photo album is cool… let me try it out. Cheers..kevin
may sound stupid but could you make the install part a little bit easier for those who are not good in english ? maybe with some pictures OR better show the codes with you have edit.