
SimpleViewer - Automatic Web Server Instructions
These instructions show you how to create a SimpleViewer gallery by uploading your images to your web server, and running a server-side script. The script will generate the XML file and thumbnails required by SimpleViewer.
Follow the steps below to create a SimpleViewer gallery on your website.
1: Download SimpleViewer files
Download and unzip SimpleViewer files to a new folder.
2. Download Build script
Select which server-side script to use based on your webserver type. Unzip Build script into the same folder created in Step 1.
- Download PHP version (zip file - 3k). For Unix web servers (if you don't know which type of server you have, try this one first).
- Download ASP .NET version (zip file - 3k). For Microsoft servers.
- Download ASP classic version (zip file - 1k). For Microsoft servers without .NET. (this version does not generate thumbnails.)
- Download ColdFusion version (zip file - 3k). For servers with ColdFusion installed. (this version does not generate thumbnails.)
- Download Perl version (zip file - 3k). For servers with Perl installed.
- Download Python version. For servers with Python installed.
3. Add image files
Copy your image files to the 'images' Folder. Images should be JPGs and saved as 'non-progressive'.
4. Set gallery options (optional)
Edit the Build script using a text editor (e.g. NotePad, Text Edit). Set gallery options where indicated in the script. Here is a list of the XML gallery options with their descriptions.
Set if you would like to show a Download link as the caption for each image by setting the showDownloadLinks variable to true or false.
5. Set background color (optional)
To set the background color, edit index.html. Enter the hex color value as the last parameter in the SWFObject code line:
var fo = new SWFObject("viewer.swf", "viewer",
"100%", "100%", "7", "#ff00ff");
6. Upload files
Upload all your files to a new folder on your web server using an FTP program.
7. Set file permissions
Set file permissions/attributes on the build script, gallery.xml and thumbs folder to 'read/write/execute' for all levels (777). You can do this with your FTP program, check the documentation.
8. Run Build Script
In a web browser, navigate to the URL of your build script (For example 'http://www.mySite.com/myGallery/buildgallery.php' ). The build script will inform you if thumbnails and XML have been created successfully.
9. Edit Captions (optional)
If you require customised image captions, you can download and edit gallery.xml from your gallery web folder. gallery.xml is a simple text file that can be edited in any text editing software (e.g. NotePad, TextEdit). Insert image captions in the caption tag for each image. Re-upload gallery.xml back to your gallery web folder.
To Update Gallery
To update your gallery with new images, upload the new images to your images folder, then re-run the build script (see Step 8).
Note: If your new images are not showing up, you may need to delete your browser's cache, check the FAQ for details.