I tried an embed-o-rator found here:
http://www.flashyourweb.com/staticpages/index.php?page=gallery2_embed-o-rator
It's made for Gallery2. Is there a similar tool for Zen?
I tried the function, but it did not work, I guess because the 2nd line, the embed.php file is missing.
<?php
require_once ('http://www.alternativephotography.com/photography/embed.php');
$ret = GalleryEmbed::init( array ('g2Uri'=>'http://www.alternativephotography.com/photography/index.phpmain.php', 'embedUri'=>'http://www.alternativephotography.com/photography/artists.php', 'fullInit'=>'false'));
if ($ret) {
print 'G2 init error: '.$ret->getAsHtml();
}
$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
exit;
}
GalleryEmbed::done();
?>
<!-- Your Html Head -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Photographers</title>
<link href="http://www.alternativephotography.com/common/ap_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://www.alternativephotography.com/common/script.js"></script>
<!-- Gallery's Head -->
<?php
echo $g2data['headHtml'];
?>
<!-- End Gallery's Head -->
</head>
<!-- End Your Html Head -->
<!-- Your Html Body -->
<body>
<p>Header here in this space</p>
<!-- End Your Html Body -->
<!-- Gallery's Body -->
<?php
echo $g2data['bodyHtml'];
?>
<!-- End Gallery's Body -->
<!-- Your Html Footer -->
<p>Footer here in this space</p>
</body>
</html>
<!-- End Your Html Footer -->
The Gallery2 embed file looks like this:
<?php
/* Define G2_EMBED = 1 to remember to generate correct URLs and return the HTML, etc. */
require_once(dirname(__FILE__) . '/modules/core/classes/GalleryDataCache.class');
GalleryDataCache::put('G2_EMBED', 1, true);
require(dirname(__FILE__) . '/main.php');
require(dirname(__FILE__) . '/modules/core/classes/GalleryEmbed.class');
GalleryEmbed::getEmbedPathByHttpRequest();
?>
I know absolutely no php, so i have no idea how to make it work, but perhaps it could be useful for some other of you.