Location: PHPKode > scripts > AutoSlider > autoslider/README.txt
AUTOSLIDER v0.9 ------------------------------------- 15 Dec 2000
      PHP script for simple automated slide presentations 
  Italian Network of Telepathology and University of Udine, Italy

Copyright (C) 2000-02  Vincenzo Della Mea, University of Udine, Italy.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (http://www.fsf.org/licenses/gpl.html)
as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.


  autoslider.tar contains the following files:
  - autoslider.php : main PHP script
  - asg/ : directory containing button graphics for the pages (next.gif, prev.gif, etc)
  -conf.inc: sample configuration file to be put in the presentation folder
  - README : this file     

  Just untar autoloader.tar inside a web-accessible directory, then setup the variables as explained below. 

  Inside autoslider.php, set $slidebase as the URL of the directory where presentations are 
  kept (even on another server); it is near the <body> tag.

  Each presentation is a folder, containing images with names
  1.ext, 2.ext, ... N.ext. In addition, each folder contains a conf.inc 
  file where title, author, homepage, homepage name, file extension, and
  eventually number of slides (in the $last variable) are to be set.
  A sample conf.inc file is provided with these files. 
  You can run a presentation with:
  Each page will display title, author, 4 buttons for navigating into
  the presentation.

  at the URL http://your.site.com/dir1/dir2/slides/ there are the
  following folders: phpcourse, htmlcourse. Each of them contains the
  files named 1.jpg, 2.jpg, etc., and a conf.inc file:

	%> ls slides/*:
	1.jpg      2.jpg     3.jpg     4.jpg     5.jpg      6.jpg
	7.jpg     8.jpg     9.jpg     10.jpg   11.jpg     12.jpg      conf.php
	1.jpg      2.jpg     3.jpg     4.jpg     5.jpg      6.jpg
	7.jpg     8.jpg     9.jpg     10.jpg   11.jpg     12.jpg      conf.php

  The conf.php file inside phpcourse such file will have the following content:
  $title = "Beatiful PHP Course";
  $author = "Phil H.P. Expert, 11/2000";
  $homepage ="http://ppp.hhh.ppp/~php/";
  $homename = "Teaching material of P.H.P. Expert";
  $imagetype =".jpg";
  $last = 12; //optional

  Your customized autoslider.php file can be put everywhere, e.g. at
  http://your.site.com/autoslider.php and will contain these code lines:
  $slidebase = "http://your.site.com/dir1/dir2/slides/";
  $homepage = "http://www.yous.site.com/";
  To show the first presentation from the beginning, it can be called 
  as follows:
  To start from the fourth slide,
  To show the other presentation,

  To show just a subset of presentation you might just pass the "last" 
  parameter too:

Return current item: AutoSlider