This classes (gnThumbNail and gnGallery) is created to help any one setup
a working image gallery with little efforts(if you have the required things
setup..., see requirements).
For any bashing/thrashing/kicking/likeing use
You need to copy the two class files (gnThumbNail.php and gnGallery.php) +
(template.inc + example1.php) into the folder you want to setup the things.
Now copy the gnShow.php into the base directory where all your gallery is.
(by gallery I mean you have the folders with collection of images).
Now change the value of $base_dir and $domain (inside gnShow.php and
example1.php) to your URI. the base_dir must
be absolute path from the root folder. the $domain should contain the URL
pointed by the $base_dir.
$domain="http://yourdomain.co.in"; OR ="yourdomain.co.in/galleries";
then you need to run the example1.php you will get the index.html generated
inside the galleries.
To use the Additional data display feature, you need to set the
a file named "gnGallery.db" is created in every folder when the gnThumbNail
script is executed, then you can edit this file and put the details below
the section named as
TPL_VARIABLE_NAME = "content"
See the default db file generated it generates 3 variables, for filename,
dimension and datemodified
You can put it as you wish in the template file (see the example templates).
To use different templates just change this value in the exapmle1.php
$gG->tpl_file="template1.html"; // the template file name to use
Note: - You must have appropriate permissions for this in the folders.
Tested on (Requirements):
PHP 4.2 OR >
With GD support.
The list of todo is being worked on, if you have suggestions please send a mail.