Forums / All Other Contributions/Addons / Additional images and Zen Lightbox

Additional images and Zen Lightbox

Views: 3,661

Results 1 to 10 of 10
30 Oct 2013, 11:10 AM
#1
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

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](http://www.zen-cart.com/view-source:http://www.bongobits.com/images/additional/sept_2.jpg)" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="[images/additional/sept\_3.jpg](http://www.zen-cart.com/view-source:http://www.bongobits.com/images/additional/sept_3.jpg)" alt="" width="200" height="200" /></div><br/><div class="additional-images"><img src="[images/additional/sept\_4.jpg](http://www.zen-cart.com/view-source:http://www.bongobits.com/images/additional/sept_4.jpg)" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="[images/additional/sept\_5.jpg](http://www.zen-cart.com/view-source:http://www.bongobits.com/images/additional/sept_5.jpg)" alt="" width="200" height="150" /></div><br/><div class="additional-images"><img src="[images/additional/sept\_6.jpg](http://www.zen-cart.com/view-source:http://www.bongobits.com/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.

30 Oct 2013, 11:47 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

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.

30 Oct 2013, 1:57 PM
#3
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: Additional images and Zen Lightbox

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?main_page=product_info&cPath=24&products_id=281&zenid=ptppbkeja3p75apb3f3u1f5gf2
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

30 Oct 2013, 8:49 PM
#4
mauari avatar

mauari

New Zenner

Join Date:
May 2011
Posts:
67
Plugin Contributions:
4

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" />

31 Oct 2013, 9:05 AM
#5
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: Additional images and Zen Lightbox

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.

6 Nov 2013, 4:27 PM
#6
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

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 } ?>
13 Oct 2014, 11:48 PM
#7
noahmarket avatar

noahmarket

New Zenner

Join Date:
Oct 2014
Location:
North Carolina
Posts:
8
Plugin Contributions:
1

Re: Additional images and Zen Lightbox

*BUMP

Having same issue but the fix did not work

14 Oct 2014, 6:18 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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).

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

14 Oct 2014, 9:06 PM
#9
noahmarket avatar

noahmarket

New Zenner

Join Date:
Oct 2014
Location:
North Carolina
Posts:
8
Plugin Contributions:
1

Re: Additional images and Zen Lightbox

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:

**

14 Oct 2014, 11:37 PM
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Additional images and Zen Lightbox

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..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.