PHP Classes
elePHPant
Icontem

gnGallery: Image gallery generation class based on templates.

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2003-05-25 (13 years ago) RSS 2.0 feedStarStarStar 44%Total: 2,426 All time: 1,541 This week: 1,109Up
Version Licenses Categories
gngallery 1.0Freeware, GNU Les...Graphics, Templates
Description Author

Template based Image gallery generation class.

Example shows how it:- Creates the thumbnails into a folder, and then generates HTML file listing all the thumbnails and links to the original images.
Each class can be used seperately!

Please contact me if you have any suggestions.

Picture of Girish Nair
Name: Girish Nair <contact>
Classes: 3 packages by
Country: India India

Details
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.


  Files folder image Files  
File Role Description
Plain text file example1.php Example example file to use the functionalities
Plain text file Faq.txt Doc. This contains some FAQs, asked by some users
Plain text file gnGallery.php Class gnGallery class
Plain text file gnShow.php Appl. Show Gallery images
Plain text file gnThumbNail.php Class Creates thumbnails
Accessible without login Plain text file Readme.txt Doc. information on installing / configuring etc.
HTML file template.html Example Example template file
Plain text file template.inc Class Phplib template class for parsing template
HTML file template2.html Example Example template file shows another way to use the gnGallery!

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,426
This week:0
All time:1,541
This week:1,109Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:50%StarStarStar
Examples:41%StarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:2489