Member
Member
mno   2008-05-14, 12:33
#1

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

Member
Member
sbillard   2008-05-14, 18:16
#2

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.

Member
Member
mno   2008-05-14, 19:45
#3

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!

Administrator
Administrator
acrylian   2008-05-14, 19:52
#4

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

Member
Member
os07   2008-05-23, 15:09
#5

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.

Administrator
Administrator
acrylian   2008-05-23, 15:37
#6

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

Member
Member
michaelsam   2009-02-02, 16:29
#7

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.