Additional images and Zen Lightbox
Hi
Can anyone help please.
I have an issue with additional images not showing with Zen Lightbox.
I downloaded the additional images module so that images names would not need to be changed. This all seems to be working in the admin area OK.
But the additional images although seen on the web page will not work in Zen Lightbox.
The source code shows that this is not working:
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript">
<!-- document.write('<a href="images/sept_1.jpg" rel="lightbox-g" title="image"><img src="images/sept_1.jpg" alt="image2" title=" image3" width="200" height="200" /><br /><span class="imgLink">larger image</span></a>'); //--></script> <noscript> <a href="http://www.website.com/index.php?main_page=popup_image&pID=281&zenid=ds441d45v3dvflphao9vi70em2 " target="_blank"><img src="images/sept_1.jpg" alt="image3" title=" image4" width="200" height="200" /><br /><span class="imgLink">larger image</span></a></noscript> </div>
<!--eof Main Product Image-->
<!--bof Additional Product Images -->
<div id="productAdditionalImages"> <div class="additional-images"><img src="images/additional/sept_2.jpg" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="images/additional/sept_3.jpg" alt="" width="200" height="200" /></div><br/><div class="additional-images"><img src="images/additional/sept_4.jpg" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="images/additional/sept_5.jpg" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="images/additional/sept_6.jpg" alt="" width="200" height="150" /></div><br/></div>
<!--eof Additional Product Images -->
It would appear that the Javascript is not working on the Additional Images. I have searched and tried a few things but have hit a brick wall, any suggestions would be helpful thanks.
Re: Additional images and Zen Lightbox
A link to your site please?
Which version of ZC are you using?
And a link to the exact modules that you have used, i.e lightbox and additional images.
Re: Additional images and Zen Lightbox
Quote:
Originally Posted by
picandnix
A link to your site please?
Which version of ZC are you using?
And a link to the exact modules that you have used, i.e lightbox and additional images.
http://www.bongobits.com/index.php?m...5apb3f3u1f5gf2
Zencart version 1.3.9h
Zen LightBox v1.6.2
Additional product images V2 http://www.zen-cart.com/downloads.php?do=file&id=1063
Re: Additional images and Zen Lightbox
MISSING <a href="images/YOUR-ADITIONAL-IMG.jpg" rel="lightbox-g" title="image"> BEFORE <img src="images/additional/YOUR-ADITIONAL-IMG.jpg" alt="" width="200" height="200" />
Re: Additional images and Zen Lightbox
Quote:
Originally Posted by
Mauari
MISSING <a href="images/YOUR-ADITIONAL-IMG.jpg" rel="lightbox-g" title="image"> BEFORE <img src="images/additional/YOUR-ADITIONAL-IMG.jpg" alt="" width="200" height="200" />
Thanks for your reply. I am aware that the above is missing and that it why its not working but would like to know how to fix it.
Re: Additional images and Zen Lightbox
Just in case anyone else has the same problem this partially fixed the problem. The additional images now show in Lightbox but the next and previous buttons are working but at least it's workable. Added below to tpl_modules_additional_images.php thanks to Brandon Walters :smile:
require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
?>
<?php
if ($additional->RecordCount() > 0) {
?>
<div id="productAdditionalImages">
<!-- Fix for broken click to enlarge - Brandon Walters http://www.bwaltdesigns.com -->
<?php
while(!$additional->EOF) {
echo '<div class="additional-images"><a href="images/' .$additional->fields['additional_image']. '" rel="lightbox">'.zen_image(DIR_WS_IMAGES . $additional->fields['additional_image'], '', ADDITIONAL_SMALL_IMAGE_WIDTH, ADDITIONAL_SMALL_IMAGE_HEIGHT).'</a></div><br/>';
$additional->MoveNext();
}
?>
</div>
<?php
}
?>
Re: Additional images and Zen Lightbox
*BUMP
Having same issue but the fix did not work
Re: Additional images and Zen Lightbox
You all should be posting issues with Zen Lightbox in the Zen Lightbox support thread (where answers to your questions are probably already posted if you use the forum thread search tool and search the support thread).
Re: Additional images and Zen Lightbox
Quote:
Originally Posted by
DivaVocals
You all should be posting issues with Zen Lightbox in the Zen Lightbox support thread (where answers to your questions are probably already posted if you use the forum thread search tool and search the support thread).
Look Diva, I appreciate everything you have done and do.
But that being said there is no reason to be snippy with people the way you are. I have read MANY MANY posts from here and lightbox and many of yours, so just because you know more than others please do not be-little them.
NOW that being said you can DIS-REGARD the last post i made because your MOD would not work correctly no matter what i did and i did read the instructions and all of the docs in the install but no matter what i looked everywhere i still had major issues and it never worked so i found the other mod IMAGE MANAGER and installed it and had it working in under 10 mins and guess what NO ISSUES..
I spent HOURS working on this IH4 and got nowhere but an answer from someone ASSUMING we do not know how to SEARCH i mean jesh i found this forum topic i think maybe i know how to search.
Good day and thank you again for all your help. :blush:
Re: Additional images and Zen Lightbox
Quote:
Originally Posted by
noahmarket
Look Diva, I appreciate everything you have done and do.
But that being said there is no reason to be snippy with people the way you are. I have read MANY MANY posts from here and lightbox and many of yours, so just because you know more than others please do not be-little them.
NOW that being said you can DIS-REGARD the last post i made because your MOD would not work correctly no matter what i did and i did read the instructions and all of the docs in the install but no matter what i looked everywhere i still had major issues and it never worked so i found the other mod IMAGE MANAGER and installed it and had it working in under 10 mins and guess what NO ISSUES..
I spent HOURS working on this IH4 and got nowhere but an answer from someone ASSUMING we do not know how to SEARCH i mean jesh i found this forum topic i think maybe i know how to search.
Good day and thank you again for all your help. :blush:
Snippy huh.. okay.. :laugh: that's pretty funny.. The support thread of any module is always the right place to post support questions as other besides myself will tell you.. If you find me making this suggestion to you snippy, or belittling, well then that is YOUR OPINION.. doesn't make it true.. but you are certainly entitled to feel anyway you like.. :smile:
and good for you for getting Image Manager working.. It hasn't been updated in 2 years so you might want to be aware of that if you are using newer versions of Zen Cart.. Sorry IH4 didn't work out for you.. though I don't remember you posting in the support thread to seek help.. Other's are happily using IH4 with no issues.. I preferIH4 because it actually optimizes the images (something Image Manager doesn't do..)
BTW, Zen Lightbox is not MY mod..