Thanks Doc,
Honoured to have you on the case!
I have experimented with enabling/disabling Javascript, as well as with the use of the alternate link and this is what I've found:
I get one "missing ) after argument list" for every additional image I have whenever I use Javascript. Without Javascript it works OK (although obviously without the niceties of the javascript). This happens independent of whether I have the Zen Lightbox functionality turned on or off. (It happened before I installed Lighbox as well).
Here's the code that is giving me grief:
Code:
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 {
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
}
and here's a link to the example where it's happening. (You can see the small dotted vertical lines separating where the images are supposed to be:
http://test.possumbooks.com/index.ph...roducts_id=232
Finally, here's an excerpt from the resulting page source code that shows what the final script looked like:
Code:
<script language="javascript" type="text/javascript"><!--
document.write('<a href="javascript:popupWindow(\'http://test.possumbooks.com/index.php?main_page=popup_image_additional&pID=232&pic=0&products_image_large_additional=images/Illustrated Fairytales_01.jpg\')"><img src="bmz_cache/e/ef2387c104eb5dbe00217b48e5e57cd2.image.100x63.jpg" alt="Illustrated Fairy Tales" title=" Illustrated Fairy Tales " width="100" height="63" style="position:relative" onmouseover="showtrail('bmz_cache/d/d75abaa72c100a305044756fcc6d7193.image.180x113.jpg','Illustrated Fairy Tales',100,63,180,113,this,0,0,100,63);" onmouseout="hidetrail();" /><br />larger image</a>');
//--></script>
<noscript><a href="http://test.possumbooks.com/index.php?main_page=popup_image_additional&pID=232&pic=0&products_image_large_additional=images/Illustrated Fairytales_01.jpg" target="_blank"><img src="bmz_cache/e/ef2387c104eb5dbe00217b48e5e57cd2.image.100x63.jpg" alt="Illustrated Fairy Tales" title=" Illustrated Fairy Tales " width="100" height="63" style="position:relative" onmouseover="showtrail('bmz_cache/d/d75abaa72c100a305044756fcc6d7193.image.180x113.jpg','Illustrated Fairy Tales',100,63,180,113,this,0,0,100,63);" onmouseout="hidetrail();" /><br /><span class="imgLinkAdditional">larger image</span></a></noscript></div></td>
Can you see any errors in there?
Really appreciate your thoughts on this one.
Possum.
Bookmarks