I'm trying to use slideshow on my homepage which is outside zenphoto. I have activated the slideshow plugin. I already included the following code in my homepage:
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/zp-core/template-functions.php");
and
and
$albumobj = new Album($_zp_gallery, "foldername");
$imageobj = newImage($albumobj, "filename");
printSlideShow(true,false,$albumobj, $imageobj, 400,400);
I keep getting this error message
Fatal error: Call to undefined function printSlideShowJS()
Can you give me an idea on how to do that?
Thanks! It already appears on the homepage. I have another problem though..it only displays all the images on the homepage and not actually as a "slideshow".
Thanks! I finally figured it out. After looking at the page source, I noticed that the filepath for the javascript is wrong since i'm not in zenphoto environment. I just changed FULLWEBPATH . '/' . ZENFOLDER.'/'.PLUGIN_FOLDER inside slideshow.php. It works for me since i'm not using slideshow inside zenphoto.