PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 3,186 All time: 1,121 This week: 37Up
Version License PHP version Categories
photostest 12MIT/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: 80
All time rank: 53469 in United States United States
Week rank: 164 Up23 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Documentation

 

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 (27)  
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 (27)  /  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 (27)  /  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 (27)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:3,186
This week:0
All time:1,121
This week:37Up
User Ratings User Comments (1)
 All time
Utility:70%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1435
 
Its a good class and very useful !! lol But it has so mutch j...
16 years ago (José Filipe Lopes Santos)
65%StarStarStarStar