Include zenphoto

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

  • Do you want to include the album page itself or just a link to the album? If it is the former you would have to replicate the album.php code plus some setup to set the album to the one you wish to display.
  • mno Member
    Thank you for your answer sbillard. I'm not a php genius (not even a beginner ;-) so I guess it will be to difficult for me. I'll figure out something els (iframe...) Thanks anyway!
  • acrylian Administrator, Developer
    Alternativly you could just build a lookalike theme for zenphoto to match your site's look.
  • os07 Member
    How to modify the album.php code to set the album to the one you wish to display? This is the heart of the issue, for me.
  • acrylian Administrator, Developer
    os07: Why don't you stay in your threads? No need to ask the same in different threads.
  • so what was the other thread, i can't find it - and i also need that, cause when i want to start zenphoto on my page it only works with an iframe
Sign In or Register to comment.