Hi,
Does anyone know how to include zenphoto in an existing website?
I found the code to include a random image in an page and that works fine (see:
http://www.lobstervormgeving.nl/foto.php as a concept page) but how does this code work to include a complete album. It must be with the variable: $_zp_current_album or $_zp_gallery but I don't know how to change the example code for a random image into a code for a whole album.
-------------
example code
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "
<img src='". $randomImage->getSizedImage(getOption('image_size')) . "' alt=\"random image\"\n" . $randomImage->getTitle() . '" />';
---------------------------
Zenphoto is in the following directory at my site:
http://www.lobstervormgeving.nl/pictures/Can someone please help me?
Thanks a lot!
Martin
Comments