PHP Classes

File: Readme.txt

Recommend this page to a friend!
  Classes of Girish Nair   gnGallery   Readme.txt   Download  
File: Readme.txt
Role: Documentation
Content type: text/plain
Description: information on installing / configuring etc.
Class: gnGallery
Image gallery generation class based on templates.
Author: By
Last change: Info
Date: 21 years ago
Size: 1,943 bytes
 

Contents

Class file image Download
Hello users, 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). Regards, Girish For any bashing/thrashing/kicking/likeing use <girishn2003_@_yahoo_._co_._in> Installation: 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. $base_dir="/path/to/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 $obj->use_db=1; 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 [image filename] 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. OS: Windows/Linux TODO: The list of todo is being worked on, if you have suggestions please send a mail.