miniGallery info site




Table of contents




What's miniGallery?

MiniGallery is a small PHP Gallery Script.

Where are the files stored?

All files are stored in a directory on the filesystem.
Each directory is a album in the gallery.

Does miniGallery needs a database?

No! No database is required. miniGallery don't need to save data.

Do I have to generate the thumbnails manually?

No! miniGallery generates the thumbnails automatically.

Can I change the style of miniGallery?

Sure. The style is saved in templates.
To save performance, the PHP Code is in the templates.
So you don't have to learn any template language.

At the bottom of that page there are instructions to change the style.

Can I add my custom language?

Sure. Languages included: English and German.
At the bottom of this page you can read how to add other languages.

Does miniGallery automatically makes a sitemap file?

Yes, e.g. for Google Webmaster Tools.
The sitemap is located under sitemap.txt (the rewrite rule forwards to sitemap.php).

Is there support for Google Analytics, or any other statistic tool?

Yes. Write the code in the $conf["footer2"] variable.

Who is the autor of miniGallery?

Me, andihit (a young boy from austria).

Requirements

  • PHP with GD Library
  • Some rewrite Modul, e.g. mod_rewrite for Apache2 or mod_rewrite for lighttpd

Installation

  1. Extract minigallery.tar.gz
  2. Edit the config.inc.php
  3. Make the rewrite rules for you webserver - e.g.
    • Apache2:
      The rewrite rules are in the .htaccess.
    • lighttpd:
      url.rewrite-once += (
      	"^/(?!templates)(.+)/$"             => "/index.php?site=album&album=$1",
      	"^/(?!templates)(.+)/generate/(th|si)_(.+)$" => "/index.php?site=generate&album=$1&type=$2&photo=$3",
      	"^/(?!templates)(.+)/(th|si)_(.+)$" => "/pictures/$1/$2_$3",
      	"^/(?!templates)(.+)/raw_(.+)$"     => "/pictures/$1/$2",
      	"^/(?!templates)(.+)/([^/]+)$"      => "/index.php?site=photo&album=$1&photo=$2",
      	"^/sitemap.txt$"                    => "/sitemap.php"
      )	
          				
  4. Give the pictures directory read+write permissions, that the webserver can save thumbnails
  5. Save your photos in the pictures directory.
    Note: Make directorys in the pictures directory, every directory is displayed as a album.

Customization

New language:
Edit the $conf["langstr"].
Copy the lang_en.inc.php and rename it to lang_LANGUAGE.inc.php (LANGUAGE is your new language)
Then change the array values in lang_LANGUAGE.inc.php to match your new language

Change style:
To change the style of the gallery, you need minimal PHP knowledge and you need to be good in HTML and CSS.
Edit the following files in the templates/ directory:
  • index.html
  • album.html
  • photo.html
  • style.css

Download

Hg Repository
View repository

Get a copy:
hg clone http://hg.andihit.net/minigallery minigallery
    
(you need Mercurial if you want to use that command)


Stable releases:
Version 1.2.4 - Changelog


Version 1.2.3
-- Changelog

* templates/*.html MiniGallery is now XHTML 1.0 Strict (andihit)
    	

Version 1.2.2
-- Changelog

* templates/style.css (andihit)
    	

Version 1.2.1