March 23, 200917 yr I may be being a bit thick here (almost probably!) .... I'm sure I've seen a PHP/Javascript gizmo out there that combines the 'Lightbox' javascript utility with the auto generating PHP Gallery - where you upload pics into a folder which generates a gallery, but displays them with the lightbox effect ? ... Can I find it now ?!? no !! Anyone help ?
March 25, 200917 yr Author I may be being a bit thick here (almost probably!) .... I'm sure I've seen a PHP/Javascript gizmo out there that combines the 'Lightbox' javascript utility with the auto generating PHP Gallery - where you upload pics into a folder which generates a gallery, but displays them with the lightbox effect ? ... Can I find it now ?!? no !! Anyone help ? Found it now .... Its availble at http://www.synapsesinc.com/lightbox/ A nice script that will allow you to automatically generate a gallery from a defined folder, and display those images using the lightbox script.
March 25, 200917 yr Oh my god, if only I saw that 4 days ago and hadn't wasted so much time LOL. Oh well, thanks, will no doubt help in the future
March 25, 200917 yr One2Web thanks for that link - a really useful piece of code I do a website for a car club and I have numerous pictures to post after every meet - using the lightbox, I have to ... resize each photo create a thumbnail for each photo edit each line in the page for each photo I usually post about 20 photos/meet, but it can be upto 100 for a large meet. Now it will be a just a case of resizing the photo - as they say "Jobs a good'un
March 25, 200917 yr Well my initial enthusiasm has been curbed - yes it does the job but ... try validating it (http://www.synapsesinc.com/lightbox/) using the W3CW3C Markup Validation Service - 194 errors This is mainly due to it outputting "&"s in the echo statement echo "<td><a href='". $imgdir ."". $file ."' rel='lightbox[gallery]'><img border='0' src='imgsize.php?w=". $w ."&h=". $h ."&img=". $imgdir ."". $file ."' /></a><td>"; Also note there is no closing tag for the table cell <td> (I wondered why I kept getting blank cells) $file ."' /></a><td>"; should be $file ."' /></a></td>"; A wee rethink is needed Will have a look at this one tomorrow - http://sourceforge.net/projects/phpslightbox/
March 26, 200917 yr . try validating it (http://www.synapsesinc.com/lightbox/) using the W3CW3C Markup Validation Service - 194 errors Well go into the PHP file, fix the errors in question and resubmit it to the open source community. Thats what we are about no?
March 26, 200917 yr This is the original code .. echo "<td><a href='". $imgdir ."". $file ."' rel='lightbox[gallery]'><img border='0' src='imgsize.php?w=". $w ."&h=". $h ."&img=". $imgdir ."". $file ."' /></a><td>"; and the modified code is ... echo "<td><a href='". $imgdir ."". $file ."' rel='lightbox[gallery]'><img alt='" . $file . "' border='0' src='imgsize.php?w=". $w ."&h=". $h ."&img=". $imgdir ."". $file ."' /></a><td>"; Basically changed the & to the special character & and added an alt description (in this case the filename) On the page I created, with these changes, it validated Transitional HTH
March 30, 200917 yr Hey NeRo, Simple use, Drupal and create gallery.. it cans automaticly crop and resize one huge image into 3 small presets best solution for your problem and it is simle to implement to your website ofcourse you will need to use "views" plugin
Create an account or sign in to comment