A website of the Watkiss Online Group. Also see the First Aid Quiz Website.
This site is funded using adverts:
Penguin Image

Linux Open Source Software

Penguin Gallery - web photo gallery powered by PHP and AJAX

Penguin Gallery is a web photo gallery utilising the features of PHP and Javascript in a Ajax based web interface. When viewed on a browser with Javascript enabled then it uses the full Javascript Ajax smooth image loading with slide-show option. If javascript is not available or disabled then it provides a traditional html / http based gallery.

As from version 0.1.1 it can optionally be embedded within Wordpress.

Screen shot of Penguin Gallery in use on Watkissonline.co.uk

Note that this software is at an early stage in development and there will be significant changes before this becomes stable, but it is already in use on the sites below

.

Documentation

Documentation is currently in progress whilst the software is going through some major changes. Note that the configuration files will change in future versions and will need to be reconfigured.

Installation

Extract the main program archive into a suitable place in your web path. Copy sample-gallery.cfg to gallery.cfg and edit the appropriate details - see comments within the sample configuration file. If you would like to use the included button images then they are included in the second archive.

The gallery has to be embedded within an existing php file. First create the main page layout and then enter the following into the html (if using a GUI editor then use raw html mode)
<?php include("../penguingallery/gallery.php"); ?>

Create a unique directory for each gallery and copy the photos into that folder (all must end with .jpg)
On a Linux based machine (with ImageMagick installed) run the following commands from inside the folder for each appropriate gallery.
mogrify -resize 450x450 *.jpg
for i in *.jpg; do convert -resize 150x100 -quality 80 $i sml_$i; done

Create a unique configuration file for each gallery ending with .cfg

$gallerytitle = "Title or gallery";
$directory = "path to directory with image files (from document root)";
$prefixthumb = "sml_";
$viewthumb = $directory."sml_";
$viewfull = $directory;

Embedding within Wordpress needs some further changes - details will be added in future

.

Download

License

This software is released under the GPL version 3.

Known Issues

There is currently no handling of errors within the configuration files. All configuration files must contain valid PHP syntax.

History

These are some of the significant events in the development of the wQuiz program.

Future Development

The program is in early stages of development. The configuration files will be changing in the future. At the moment I have not yet decided whether this will continue to use text configuration files (possibly xml based) or to use a database for holding configuration details.