I've figured out (mostly...) how to integrate ZP into a site I'm working on. I took the code from the album.php page, and moved it into a regular page (with the site's ordinary navigation and styling, etc.) on the site. So, the ZP album thumbnails appear correctly, no problems. When I click on a thumbnail, however, I get the full size image, but on a NEW (generated) page, that lacks all of the site stuff from the calling page that contained the album code.
What I want to do is to have the image load on the SAME page that had the album code - just replacing the album thumbnails with the full size image. I have seen some examples of this, but I can't figure out how to do it.
Also, every time a change is made to the individual albums, the album.php code changes to reflect the new group of images it contains. Is there a way for my integrated album.php code to be automatically updated as well, or so I have to cut and paste the new image info each time the album content is altered?
TIA for your collective wisdom!
Comments
<?php define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php") ?>
<?php define ('$folder', 'weddings');
zp_load_album($folder) ?>
/* then all of the code from the albums.php template to show the content */
Am I on the right track? Sorry, I am not really very experienced in PHP coding. Weddings is subfolder of the ZP albums folder.
Thanks again for your patience.
Sorry to be so clueless here. I've used ZP in other sites, but as a regular gallery installation. The integration thing is just a bit beyond my grasp...
Next you will ask how do I get the latest images shown there then. That is done by a php include(or require, I have to look) of a Zenphoto custom page that shows the latest images (see our theming tutorial for details).
1.)I can restyle the index.php, album.php and image.php pages to fit the site in question. I do not need the index.php file to display, as each site page contains only a single specific album - there is no overall gallery page to show all albums/thumbs.
2.)I need to figure out how I can have the individual site pages each display only ONE specific album/thumbs, instead of all of the albums. If I could figure out how to do this, all the rest would work just fine, i think.
3.)This site will not be updated all that often, and the ZP admin interface is perfect for the end user. I think as long as the specific album is called on each page, it will always reflect the proper contents as they are changed.
3) ?
Very grateful for your patience and support!