Update: This isn't a template issue. ZenLightbox is messing it up, just CONFIRMED it by comparing files — one that shows additional images and the one provided in zenlightbox acrhive.
Changes (in additional_images.php):
Original (O): Blank
Zen Version (ZV):
Code:
Line 18:
$images_array = array();
O:
Code:
$products_image_base = ereg_replace($products_image_extension . '$', '', $products_image);
ZV:
Code:
$products_image_base = str_replace($products_image_extension . '$', '', $products_image);
O:
Code:
$products_image_match = ereg_replace($products_image_extension, '', $products_image_match) . '_';
ZV:
Code:
$products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
O:
[/code]
$products_image_directory = ereg_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
[/code]
Z:
Code:
$products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
O:
Code:
$products_image_directory = DIR_WS_IMAGES . ereg_replace($products_image_directory, '', $products_image) . "/";
ZV:
Code:
$products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";
O:
Code:
if ($products_image_base . ereg_replace($products_image_base, '', $file) == $file) {
ZV:
Code:
if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {
O: Blank/None
ZV:
Code:
// bof Zen Lightbox v1.4 aclarke 2007-09-22
if (ZEN_LIGHTBOX_STATUS == 'true') {
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
} else {
..there're a few more changes.
I'm no PHP guy, can someone please look into it? Its confirmed that this particular zenlightbox version of additional_images.php is blocking the additional images, so you won't be wasting your time.
Thanks!
Bookmarks