Hi I need some help with Zen Lightbox. I have a product info page here
http://www.mygamedemos.com/store/ind...roducts_id=234
I can get the gallery mode / lightbox to work on the main product image at the top, by putting this file:
zen_lightbox-v1.5-20081218\includes\modules\pages\product_info\jscript_zen_lightbox.php
which contains this:
into includes/modules/pages/product_info:PHP Code:
<?php
/**
* Zen Lightbox
*
* @author Alex Clarke ([email protected])
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: jscript_zen_lightbox.php 2008-12-09 aclarke $
*/
if (ZEN_LIGHTBOX_STATUS == 'true') {
require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/slimbox.php');
require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/autoload_default.php');
}
?>
However, my problem is that the light box / gallery mode doesn't work for the other images on the page (the circular makeup shades).
If I replace the includes/modules/pages/product_info/jscript_zen_lightbox.php with the other jscript_zen_lightbox.php from zen_lightbox-v1.5-20081218\
which contains this:
the light box function works for both the main product image at the top of the page and the other images on the page (the circular makeup shades). But the gallery mode doesnt work on the main product image.PHP Code:
<?php
/**
* Zen Lightbox
*
* @author Alex Clarke ([email protected])
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: jscript_zen_lightbox.php 2008-12-17 aclarke $
*/
if (ZEN_LIGHTBOX_STATUS == 'true') {
require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/slimbox.php');
?>
Slimbox.scanPage = function() {
$$(document.links).filter(function(el) {
return el.href && el.href.test(/\.(<?php echo str_replace(',', '|', str_replace(' ', '', ZEN_LIGHTBOX_FILE_TYPES)); ?>)$/i);
}).slimbox({<?php require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/options.php'); ?>]}, null, function(el) {
return (this == el) || (this.parentNode && (this.parentNode == el.parentNode));
});
};
window.addEvent("domready", Slimbox.scanPage);
//--></script><?php } ?>
Is there any way to get the gallery mode to work on the main product image AND on the other images on the page? Please help![]()
Bookmarks