ZenphotoCMS Forum
Include zenphoto - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Include zenphoto (/thread-2875.html)



Include zenphoto - mno - 2008-05-14

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 "';


Zenphoto is in the following directory at my site: http://www.lobstervormgeving.nl/pictures/

Can someone please help me?

Thanks a lot!

Martin




Include zenphoto - sbillard - 2008-05-14

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.




Include zenphoto - mno - 2008-05-14

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!




Include zenphoto - acrylian - 2008-05-14

Alternativly you could just build a lookalike theme for zenphoto to match your site's look.




Include zenphoto - os07 - 2008-05-23

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.




Include zenphoto - acrylian - 2008-05-23

os07: Why don't you stay in your threads? No need to ask the same in different threads.




Include zenphoto - michaelsam - 2009-02-02

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