@markezz: sorry, what should this php code do? Should it add automatically all images (even if the images have different names or extension, for example mountain.jpg or sky.png) to a lightbox gallery? Thanks for the attention.
<p>@mdt: this php-function grabs all images (defined by the $extensions-list) from a directory and adds them automatically to a lightbox gallery. actually it creates an imagelist for a lightbox gallery</p> <p>to add png support you have to use the $extensions parameter:<br /> <code> <?php echo createLbFromDir ("My Gallery", "gal_one", "./path/to/dir/", array ("jpg", "jpeg", "png")); ?> </code> </p>
thanks for your great php script. i took it and changed a few things to add thumbnail loading directly from a second folder. now you can specify two folders, one for the images and one for the thumbnails. the thumbnails need to have the same name as the original images to be loaded.
I published the script on my blog, there it's not scrambled as above: http://blindape.wordpress.com/2006/12/24/ajax-image-gallery-lightboxphp/