For a while I was looking for a slideshow to display images from coppermine on my homepage. I tried a number of things and eventually developed this flash based slideshow.
It is supplied as is so please do not ask for additional features.
It has been designed so it does not interfere with any of the coppermine files. The php was written by me while the flash code was supplied to me by my good friend Mike.
There are a number of modes of operation as you can see in the demo's listed below.
http://www.windsurf.me.uk/cpg133/slide.php is a simple fade to the next image.
http://www.windsurf.me.uk/cpg133/slide1.php each image drops into view.
http://www.windsurf.me.uk/cpg133/slide2.php each image gets pushed up by the next.
http://www.windsurf.me.uk/cpg133/slide3.php fades to the next image via black.
To install simply extract the attached zip file to your coppermine root. This will copy 5 files to your root:-
flashthumb.php, slide.php, slideshow.php, source.php and slideshow.swf
To call the script simply call slide.php . I'm using it in an iframe on my homepage
http://www.windsurf.me.uk/index.htm but there are other methods to include the script in your site.
iFrame example
<iframe src="http://www.windsurf.me.uk/cpg133/slide.php" frameborder="0" scrolling="Auto" width="340" height="270" title="Map">
News </iframe>
You can select the number of slides in the show by modifying flashthumbs.php and source.php
you can also modify source.php to select the duration of each slide or different transition modes.
simply find this line
Code:
$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff");
and change it to this
Code:
$slideshow[ 'slide' ][ $i ] = array ( 'url' => $url[$i+1] , 'background' => "ffffff" , 'duration' => x);
where x is your duration in seconds.
To change transition type simply add below the above line
$slideshow[ 'transition' ][ $i ] = array ( 'type' => "z", 'duration' => y );
Where "z" can be "drop","fade_to_black" or "push_up" and y is the duration of the transition in seconds.
The size of your images can be set by changing the dimensions in slide.php
//insert the slideshow.swf flash file into the web page
//tell slideshow.swf to get the slideshow's data from sample.php created in the first step
//set the slideshow's width to 320 pixels and the height to 240
echo Insert_Slideshow ( "slideshow.swf", "source.php" , 320, 240 );
and in slideshow.php
function Insert_Slideshow( $flash_file, $php_source, $width=320, $height=240, $license=null ){
You can see the various development stages at this thread.
http://forum.coppermine-gallery.net/index.php?topic=46832.0Known bugsIf you have the youtube mod installed and the script selects an image from that it will timeout giving an error message in the slideshow. The script selects random .jpg extensions from the entire gallery (or folders selected by flashthumbs.php) but seems to accept the youtube files as an acceptable format. I'll work on this when I get the time.
Many thanks to rhpMedia as I borrowed and modified the code for flashthumbs.php from his excellent image scroller based on iTunes mod.
http://forum.coppermine-gallery.net/index.php?topic=44042.0