Location: PHPKode > scripts > Dynapic > dynapic/readme.txt
 Dynapic - dynamic image galleries

version 1.0 stable (read the disclaimer in the end of this file)

A PHP-driven image gallery


1) doesn't require a database
2) unlimited number of thumbnail galleries
3) customisable appearance
4) generates dynamically the galleries
5) prints the NEXT/PREV links
6) easy configuration


PHP3 / web server

 was tested on:

Win98/PHP 3.0.15/Apache 1.3.6
FreeBSD/PHP 3.0.13/MySQL 3.22/Apache 1.3.9

1) unpack

OK, you have unpacked it, the files you'll find:
index.php3 - the script which generates the thumbnail galleries
view.php3 - the script which shows the large view
conf.inc - the configuration file
index.html - the dummy HTML file to be placed in the directories with the pictures and the thumbnails so that no one can get by the backdoor

2) copy those files to the server in a separate directory, for example /dynapic/

3) configure the conf.inc file

$col=4; - the number of columns to be displayed
$row=3; - the number of rows to be displayed
$title="Big view"; - the title of the enlarged view
$dir[0]="/home/youtserverpath/gal1"; - the PATH to the pictures of the first gallery
$picurl[0]="http://www.yourserver.com/gal1"; - the URL to the pictures of the first gallery
$tndir[0]="http://www.yourserver.com/ga1tn"; - the URL to the pictures of the first gallery
//$dir[1]="/home/youtserverpath/gal2"; - the PATH to the pictures of the second gallery

4) make sure you have uploaded the thumbnails and the pictures to the appropriate locations. Also be sure, to upload the index.html file to those locations. No other files are permitted there.

5) make the necessary links in your pages

for example, the URL to /dynapic/ is http://www.foo.com/user/dynapic/

if you make this link:
<a href="http://www.foo.com/user/dynapic/">My photos</a>
the user will see the first page of the first gallery

if you make this link:
<a href="http://www.foo.com/user/dynapic/?gal=2">My photos</a>
the user will see the first page of the third gallery

if you make this link:
<a href="http://www.foo.com/user/dynapic/?gal=1&pg=4">My photos</a>
the user will see the fifth page of the second gallery

6) that's all

 how to add pictures:

just upload them, with the thumbnails.
WARNING ! The thumbnail must have the same name as the big image.
To make the thumbnails, I recommend IrfanView (http://www.irfanview.com/) - it has a very powerful batch conversion feature.


For a demo see http://pakypc.da.ru

 This software is distributed AS IS under the terms of the GPL licence. By using this software you agree to the terms of the licence (such as: not to change this disclaimer, to dustribute freely the source code, NOT to compile it or ask fees for this software and blah, blah, blah.)

Dynapic site:  http://www.tourbase.ru/zink
author: Mike Baikov (hide@address.com)
Return current item: Dynapic