Description

MiniGallery (MG) is a very simple gallery system used to display images embeded on another webpage, and is made to be simple and easy to set up. The MiniGallery doesn't use any databases, and only very basic knowledge of HTML and PHP.

The MiniGallery is used to display pictures easily, quickly, and cleanly directly from a folder on your website. Just upload the images using FTP and MiniGallery takes care of generating thumbnails, caching, and displaying to the user.

MiniGallery uses javascript libraries JQuery and Thickbox for effects.


Example

Below is an example of the gallery embedded right in this page!
Next Page
Got you hooked?

Setup and install

Setup is simple and only requires putting three lines in your webpage:

NOTE: Webpage must be a PHP page (.php extension).
First, include the MiniGallery header files in your webpage (between the <head></head> tags) by:
<?php require_once("/dir/to/minigallery/headers.php"); ?>

Next, where you want the gallery on the page put:
<?php
require_once("/dir/to/minigallery/gallery.php");
generate_content("/path/to/images");
?>
And that's it!
You can see index.php for a work example.

Maximum Execution Time Error

WARNING: The gallery page will take a while to load the first time you view it. This is because it needs to generate the cache. If you get a fatal error of "Maximum execution time", either turn up the max execution time in your configuration, or simply refresh the page until the error goes away.

Advanced Setup

If you want more advanced settings to display the gallery, the prototype is:

function generate_content($directory, $multipage=true, $ipp=12, $thickbox=true)
Where:
$directory: the path to the images.
$multipage: Boolean that expresses whether the gallery is multiple pages
$ipp : The number of images that are displayed on each page
$thickbox : Whether or not the gallery uses thickbox to display the images

License

This software is licensed under the LGPLv3:

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

LICENSE NOTE:

Thickbox and JQuery may be under different licenses (MIT and GPL), so please honor the licenses when you use the software on your page.

Download and Version History

Version 1.0 - December 29, 2008
-Released initial version
Download Zip File

Questions, Comments, and Donations

Questions:
Redgalaxy QA
Contact me directly:
Donations: If you would like to donate, please send it to on paypal