I have tried adapting SimpleViewer to Effervescence. I am clearly missing something. The SimpleViewer application loads then shows a small X on the left and a large X on the right. I copied code from SimpleViewer: #index and #Flash from the CSS and the imagae body code from album.php:
-------
<?php if (!defined('WEBPATH')) die();
// Overwrite the number of images per page to infinity
$_zp_conf_vars['images_per_page'] = 10000;
// Change the configuration here
$backgroundColor = "#e3e2dd";
$maxImageWidth="640";
$maxImageHeight="640";
$preloaderColor="0xFFFFFF";
$textColor="0xFFFFFF";
$frameColor="0xFFFFFF";
$frameWidth="20";
$stagePadding="40";
$thumbnailColumns="3";
$thumbnailRows="4";
$navPosition="right";
$enableRightClickOpen="true";
$backgroundImagePath="";
// Enf of config
?>
...
<script type="text/javascript" src="<?php echo $_zp_themeroot ?>/swfobject.js"></script>
...
<!-- Wrap Main Body -->
<?php if (getNumImages() > 0) { /* Only print if we have images. */ ?>
<div id="flash">SimpleViewer requires Macromedia Flash.
Get Macromedia Flash. If you have Flash installed,
click to view gallery.</div>
<script type="text/javascript">
var fo = new SWFObject("<?php echo $_zp_themeroot ?>/simpleviewer.swf", "viewer", "100%", "100%", "7", "<?php echo $backgroundColor ?>");
fo.addVariable("preloaderColor", "<?php echo $preloaderColor ?>");
fo.addVariable("xmlDataPath", "<?php echo getAlbumLinkURL()."?format=xml" ?>");
fo.addVariable("width", "100%");
fo.addVariable("height", "100%");
fo.write("flash");
</script>
<?php } ?>
----------
I suppose I am missing something, any idea what?