- first only a englisch version ...
- eine deutsche Version kommt bald ... oder später ...
... zwischenzeitlich nutze diese
Deutsche-Google-Übersetzung ...
Hi guys,
I've noticed a lot of image galleries using the Lightbox v2 effect
that can be found here - as a great fan of the fantastic 4images gallery, I wanted to implement it into my website.
Here's the quick and dirty method (please note I'm working from memory, so if this doesn't work first time, please post what has gone wrong and I'll try my best to help).
Please note, Lightbox v2 can only handle .jpg files. This will not work with any other type of file, so implement this 'mod' at your own risk.1 - Install it using the methods outlined in the website (you'll need to download it from the website listed above).
2 - Open up thumbnail_bit.html and look for this bit
{thumbnail}
3 - Modify it to look like this
<a href="./data/media/{cat_id}/{thumbnail_file_name}" rel="lightbox[{cat_id}]" title="{image_name}"><img src="./data/thumbnails/{cat_id}/{thumbnail_file_name}" /></a>
Now save it and upload it.
4 - Open up header.html and insert this code before the </head> tag, making sure the paths are correct.
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
Upload this file, and you're done.
As far as the lightbox CSS and so forth goes, I've appended it to my own stylesheet.
*Edit 23 July 2009 - Removed link to my website. No longer using 4images.
*Edit 5/9/2008 - Removed steps that have been found to be uneccessary to the process.
*Edit 25/6/2008 - Updated step 7 to remove an error which would cause the session ID to appear in the the thumbnail box*