PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2015-04-14 (4 months ago) RSS 2.0 feedStarStarStar 47%Total: 3,119 All time: 1,090 This week: 1,083Up
Version License PHP version Categories  
photostest 8MIT/X Consortium ...5PHP 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: 3 packages by
Country: United States United States
Age: 71
All time rank: 66381 in United States United States
Week rank: 409 Up37 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Details provided by the author  

slideshow

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 (April 2015) is a rewrite of that code. I have upgraded the code to use more recent inovation.

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 Linux Mint which evolved from Ubuntu via Debian. I have not tested this package on any OS that has not evolved from Debian.

Install

There are two 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/): 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.

Examples

There are several example files:

  • photos-prototype.html
  • photos-jquery.html
  • photos-jquery.php
  • carousel.html

'photos-prototype.html' uses the 'prototype1.7.2.js' version of the 'prototype' JavaScript framework (http://http://prototypejs.org/).

'photos-jquery.html' uses the jQuery JavaScript framework (http://jquery.com) via a CDN (Content Delivery Network).

'photos-jquery.php' is like the above HTML but instantiates the class differently.

'carousel.html' is an adaptation of Harry Armadillo (http://www.codingforums.com/showthread.php?t=58814) nice program. Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code etc.

There are two versions of the JavaScript SlideShow class, one for 'prototype' and one for 'jQuery'.

To install this demo do a 'tar xvzf SlideShow.tar.gz' in the 'Document Root' of the web server or in a sub-directory. The tar will create a 'photosTest' directory and 'photosTest/images'. If you have already untared this demo some place else before you read this README you can just do a 'mv photosTest <Docuement Root>'.

Configure the Examples

You may need to configure the 'photos-xxx.html' files for your filesystem. At the beginning of these files there are several statements in the &lt;head&gt; section.

To contact me email to bartonphillips@gmail.com

Enjoy

Barton Phillips Copyright &copy; 2015 Barton Phillips bartonphillips@gmail.com http://www.bartonphillips.com

  Files folder image Files  
File Role Description
Files folder imageimages (4 files)
Accessible without login HTML file carousel.html Data Example html
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 HTML file photos-prototype.html Doc. Documentation
Accessible without login Plain text file prototype1.7.2.js Data Auxiliary data
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-prototype.js Data Auxiliary data
Plain text file SlideShow.class.php Class Class source

  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 Image file smallmug.jpg Photo image for example

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