PHP Classes

Slide Show: Present a slide show of local or remote images

Recommend this page to a friend!
  Info   View files Documentation   View files View files (27)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-11-30 (Less than 1 hour ago) RSS 2.0 feedStarStarStar 53%Total: 3,170 All time: 1,127 This week: 135Up
Version License PHP version Categories
photostest 11MIT/X Consortium ...8.1PHP 5, Content management, AJAX
Description Author

This class can be used to present a slide show of local or remote Web images.

It can extract lists of image files available on the local server or a remote Web server.

The image list is served to the browser which retrieves it with Javascript code that performs AJAX requests to obtain the images to display.

For local server images the class returns a list of image file names. For remote Web server, it retrieves a given remote page and parses it to return the list of GIF, JPEG and PNG images linked from that page.

The Javascript libraries provided within this package control the slide show presentation.

Innovation Award
PHP Programming Innovation award nominee
May 2008
Number 4


Prize: One downloadable copy of Komodo Pro
Slide show applications are common in many Web sites. Usually they present images stored in the same Web server of the slide show page.

This class provides a different kind of solution that allows presenting a slide show of images available in different Web servers. It can automatically scrape a given page to retrieve the list of images to be displayed in a slide show.

Manuel Lemos
Picture of Barton Phillips
Name: Barton Phillips is available for providing paid consulting. Contact Barton Phillips .
Classes: 5 packages by
Country: United States United States
Age: 78
All time rank: 54369 in United States United States
Week rank: 114 Up6 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Details

Slideshow Class

BLP 2022-11-30 - Updated.

Removed prototype logic. Works with php 8.1. Added more demos. Removed carousel.html as it ses prototype.js which is no longer supported.

The SlideShow PHP class gets a list of images from the local filesystem or from a remote web site.

A JavaScript class displays the images collected by the PHP class.

History

This was originally written in 2008. This version is a rewrite of that code. I have upgraded the code to use more recent inovations.

Disclaimer

I have not tried any of this with IE on any version of Windows. I don't use MS-Windows, I don't like MS-Window, and I don't have MS-Windows. I have always hated that OS for what I think are very good reasons.

I use Ubuntu Mate. I have not tested this package on any OS that has not evolved from Debian.

Install

There are three ways to install the package:

  1. Download the zip file from http://github.com/bartonlp/slideshow. Extract the files.
  2. Use 'composer' (https://getcomposer.org/download/):
  3. Go to https://github.com/bartonlp/slideshow and then click on the green Code button. Select the the Clone address provided. Then create a directory on a server (or your local computer if you are running Apache) and type git clone {the selection from above}. You now have a directory slideshow under your webpage name.

If you don't have composer do:

curl -sS https://getcomposer.org/installer | php

Or if you don't have curl:

php -r "readfile('https://getcomposer.org/installer');" | php

After composer is downloaded move the 'composer.phar' to '/usr/local/bin/composer' and make sure it is executable.

To install the SlideShow make a project directory as follows:

mkdir myproject
cd myproject
composer require bartonlp/slideshow:dev-master

The package is under the 'vendor/bartonlp/slideshow' directory. You can run the examples from there or copy them to your project root.

Extra Stuff

The are several additional directories for the project:

  • __images__: this has the image files for the demos.
  • __kb__: this has a slideshow that I got from http://www.dynamicdrive.com. It is interesting.
  • __burnsimages__: this has some images for the kenburns.html in the kb directory.

Examples

There are several example files:

  • photos-jquery.html
  • photos-jquery.php
  • photos.php
  • photos1.php
  • photos2.php
  • photos3.php

Configure the Examples

You may need to configure the demo files for your filesystem. At the beginning of the files there are several statements. The files are pretty well documented.

Contact me at: bartonphillips@gmail.com

Enjoy

Copyright © 2022 Barton Phillips http://www.bartonphillips.com Last Modified 2022-11-30

  Files folder image Files  
File Role Description
Files folder imageburnsimages (6 files)
Files folder imageimages (5 files)
Files folder imagekb (4 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login HTML file photos-jquery.html Doc. Documentation
Accessible without login Plain text file photos-jquery.php Example Example script
Accessible without login Plain text file photos.php Example Example script
Accessible without login Plain text file photos1.php Aux. Auxiliary script
Accessible without login Plain text file photos2.php Example Example script
Accessible without login Plain text file photos3.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data
Accessible without login Plain text file SlideShow-jquery.js Data Auxiliary data
Accessible without login Plain text file SlideShow.class.js Data Auxiliary data
Plain text file SlideShow.class.php Class Class source

  Files folder image Files  /  burnsimages  
File Role Description
  Accessible without login Image file bluewall.jpg Data Auxiliary data
  Accessible without login Image file cutebirds.jpg Data Auxiliary data
  Accessible without login Image file josie.jpg Data Auxiliary data
  Accessible without login Image file landscape.jpg Data Auxiliary data
  Accessible without login Plain text file README.md Doc. Documentation
  Accessible without login Image file table.jpg Data Auxiliary data

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file bestviewedwithmozillabig.gif Photo image for example
  Accessible without login Image file msfree.png Photo image for example
  Accessible without login Image file pissonwindows.gif Photo Example image
  Accessible without login Plain text file README.md Doc. Documentation
  Accessible without login Image file smallmug.jpg Photo image for example

  Files folder image Files  /  kb  
File Role Description
  Accessible without login HTML file kenburns.html Doc. Documentation
  Accessible without login Plain text file kenburns.js Data Auxiliary data
  Accessible without login Plain text file README.md Doc. Documentation
  Accessible without login Plain text file style.css Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:3,170
This week:0
All time:1,127
This week:135Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2117
 
Its a good class and very useful !! lol But it has so mutch j...
14 years ago (Josť Filipe Lopes Santos)
65%StarStarStarStar