php - Lightbox Next/Previous Buttons missing? -


i built dynamic gallery html , php , i'm using lightbox display images. functions when click image next , previous buttons missing , way cycle through images close current open image , open one.

i found dynamic implementation here: http://www.fatbellyman.com/webstuff/lightbox_gallery/

this code of yet:

<?php      function lightbox_display($dir_to_search, $rel){             $image_dir = $dir_to_search;             $dir_to_search = scandir($dir_to_search);             $image_exts = array('gif', 'jpg', 'jpeg', 'png');             $excluded_filename = '_t';                     foreach ($dir_to_search $image_file){                     $dot = strrpos($image_file, '.');                     $filename = substr($image_file, 0, $dot);                     $filetype = substr($image_file, $dot+1);                     $thumbnail_file = strrpos($filename, $excluded_filename);                             if ((!$thumbnail_file) , array_search($filetype, $image_exts) !== false){echo "<a href='".$image_dir.$image_file."'data-lightbox='".$image_dir.$image_file."' rel='".$rel."'>               <img src='".$image_dir.$filename."_t.".$filetype."' alt='".$filename."' width='100' height='80' title=''/></a>"."\n";}}} ?> 

this add gallery html page:

<?php lightbox_display('img/gallery/', 'my_gallery'); ?> 

if have waited 10 more minutes before posting... lol

i changed

<a href='".$image_dir.$image_file."'data-lightbox='".$image_dir.$image_file."' rel='".$rel."'> 

into

<a href='".$image_dir.$image_file."'data-lightbox='my_gallery' rel='".$rel."'> 

i guessing added them 1 "show"


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -