Hi Guys,
First of all thanks in advance for your help, and congrats for those of you working on this magnificent piece of online software.
I'm building a photography website for someone, and am trying to display a slideshow of each album automatically (do not want or need thumbs).
I added this code in the body of my album.php
`
<?php
$albumobj = $_zp_current_album;
$imageobj = $_zp_current_image;
printSlideShow(true,false,$albumobj, "", 600,400);
?>
`
The result is the two first images of the album, in a row, with an error message saying :
Warning: Invalid argument supplied for foreach() in /homez.56/instantdg/www/zenphoto/zp-core/template-functions.php on line 1012
Any idea on what it could be ? Again thanks a lot for your help.
Comments
(Not using thumbs or individual image pages makes them virtually invisble for search engines and not linkable btw but maybe that is the reason?)
The slideshow plugin is activated and works fine if i dont modify album.php and click on the slideshow link.
You can see it following this link :
http://instantdeviephoto.com/zenphoto/instantdeviephoto/mariage/
In both sub albums, it displays to two first images then the error displays
`set_context(ZP_ALBUM);`
Now the error message is gone but imagewise its the same. Two first pictures one after another, but no slideshow...
It's already at the head of the page.
I found the problem. The `<?php printSlideShowJS(); ?>` had to be put at the end of the ``, and not at the beginning.
Thanks a lot for your help, acrylian !
Also, the slideshow can only display images from one album. If you need a kind of collector you would have to use a dynamci album (see user guide as well). Otherwise you will have to adapt the plugin or use the jQuery Cycle script directly to build your own custom slideshow.