Topic: Auto XML Gallery - automatically load all images in a folder
So you prefer the xml flash gallery look and feel, but want it to work like the Auto Flash Gallery? Well, there is a solution for you! I put together a simple php script that will allow you to point the xml gallery to a folder and pull all the images from it automatically.
You will need to download this file: auto.zip
Unzip the file and open auto.php. At the very top set $file_dir to the directory you want the gallery to read from. There are a couple of other options:
$show_titles - set to true to display image titles as captions (without .jpg)
$omit_chars - number of characters to be omited from beginning of image titles. So, if you set this to 3, then "01_myimagetitle.jpg" will display as "myimagetitle"
$show_links - set to true to display links to individual images
$before_link - text to be added before image title in link
$after_link - text to be added after image title in link
In your xmlGallery.html change the following line:
var so = new SWFObject("xmlGallery.swf", "gallery", "100%", "100%", "6", "#333333");
var so = new SWFObject("xmlGallery.swf?file_to_load=auto.php", "gallery", "100%", "100%", "6", "#333333");
Now you will need to upload everything to a server that supports php (most do). The gallery will not work on your local computer.
-- Rene Descartes