Zen Cart Logo
Forums / All Other Contributions/Addons / Zen Lightbox addon [Support Thread]

Zen Lightbox addon [Support Thread]

Views: 953,090

Results 1,201 to 1,220 of 3,722
21 Dec 2008, 12:39 AM
#1201
anna718 avatar

anna718

New Zenner

Join Date:
Dec 2008
Location:
Tasmania. Australia
Posts:
35
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

Alex Clarke:

This sounds like a good feature that I'll have to add. It should be fairly easy to implement.

I'll add this to the additions/features for v1.6, which I'm currently working on at the moment.

PM me if you would like me to work on this straight away for you (for a small fee/donation), or you can wait for the v1.6 release.

Can I please ask that if you do incorporate this into the 1.6 version, that you also make it admin swtichable? I would personally stay away from any site that automatically loaded the lightbox when my mouse just happened to slide over an image.

22 Dec 2008, 9:41 AM
#1202
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Anna718:

Can I please ask that if you do incorporate this into the 1.6 version, that you also make it admin swtichable? I would personally stay away from any site that automatically loaded the lightbox when my mouse just happened to slide over an image.

This would definitely be switchable via the admin.

Personally, I wouldn't use such a feature on an ecommerce website. However, I'm sure that many other people would.

It would be a nightmare for sites with loads of additional images. :shocking:

22 Dec 2008, 5:42 PM
#1203
raspberryjamcloth avatar

raspberryjamcloth

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

raspberryjamcloth:

Quick question... I got the size of my pics fixed, now I am wondering when you click on the item pic it pops up right in the box, but it says next and if you click that it shows the same pic. How do I get it to show another pic?

https://www.raspberryjamcloth.com

Just bumping my question.

23 Dec 2008, 9:23 AM
#1204
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

> raspberryjamcloth:

Just bumping my question.

You still have some traces of the old Zen Lightbox code in your HTML output.

I've just seen this...

```

<!-- bof Zen Lightbox v1.4 aclarke 2007-09-15 -->
It's important to completely uninstall any old versions of Zen Lightbox before using v1.5.

I would recommend that you remove all v1.4 files (download v1.4 again if you want a list of files to remove). When done, make sure that all v1.5 files are present and in the correct location.

Let me know how you get on and goodluck!
23 Dec 2008, 10:07 AM
#1205
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I just noticed something a little odd about our lightbox install when viewed in shudder IE6...

have a look at...
http://www.tradersupplies.co.uk/index.php?main_page=product_info&cPath=90_91&products_id=234

Everything works fine, except the "prev" and "next" tabs are not appearing in IE despite the fact that there are multiple images.
I've noticed you can still skip between images though by clicking just above the little orange arrow next to the caption... i think some kind of formatting issue has forced all the link code down there.

Anyone ever experienced this? Not surprisingly every other browser we've tested this in works fine :D

UPDATE: it seems some products are showing prev/next tabs correctly whilst others aren't?!

23 Dec 2008, 10:22 AM
#1206
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I've given up on the above... it seems like an intermittent problem which I can only put down to IE. Sometimes it shows the tabs correctly, sometimes it doesn't. But if someone has a version of IE6, could you confirm it's working ok in your browser?

Thanks
D

23 Dec 2008, 10:32 AM
#1207
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Thanks for the informaton.

I'll have a look into this sometime next week and release a patch/update to correct any issues (if possible).

23 Dec 2008, 12:21 PM
#1208
petzlifedirect_com avatar

petzlifedirect_com

New Zenner

Join Date:
Mar 2007
Posts:
33
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hey All

I followed the installation instructions to a tee and reinstalled a few times as well but still get this error when I apply the sql patch.

1146 Table 'allergicaredb.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any body have any idea?

23 Dec 2008, 1:55 PM
#1209
raspberryjamcloth avatar

raspberryjamcloth

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Petzlifedirect.com:

Hey All

I followed the installation instructions to a tee and reinstalled a few times as well but still get this error when I apply the sql patch.

1146 Table 'allergicaredb.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any body have any idea?Go back a page or 2... There were a couple of us having that issue. try adding zen_ to the beginning of configuration_group in your SQL coding.

Alex Clarke:

You still have some traces of the old Zen Lightbox code in your HTML output.

I've just seen this...

```

<!-- bof Zen Lightbox v1.4 aclarke 2007-09-15 -->
> It's important to completely uninstall any old versions of Zen Lightbox before using v1.5.
> 
> I would recommend that you remove all v1.4 files (download v1.4 again if you want a list of files to remove). When done, make sure that all v1.5 files are present and in the correct location.
> 
> Let me know how you get on and goodluck!

I checked what I downloaded and I installed v1.5 - I found the instance of v1.4 it is in the coding of the fix for the cherry template. Here is the code:
<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <!-- bof Zen Lightbox v1.4 aclarke 2007-09-15 --> <table><tr><td align="center"> <div id="productMainImage" class="centeredContent back"> <?php

if ($current_page_base == 'product_reviews') {

$zen_lightbox_products_name = $products_name_reviews_page;

} else {

$zen_lightbox_products_name = $products_name;

}

if (ZEN_LIGHTBOX_STATUS == 'true') {

echo '<script language="javascript" type="text/javascript"><!-- document.write(\'<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</div></a></td></tr>\')//--></script>';

} else {

echo '<script language="javascript" type="text/javascript"><!-- document.write(\'<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</div></a></td></tr>\')//--></script>';

}

?>

<!-- eof Zen Lightbox v1.4 aclarke 2007-09-15 --> <div id="productMainImage" class="centeredContent back"> <noscript> <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a><br /><a span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?> </noscript> </div> <tr><td algin="center"><span class="imgLink"><a href="<?=zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_products_name); ?>">larger image</a></span></div></td></tr></table> ``` and the one with v1.5 ``` <?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <div id="productMainImage" class="centeredContent back"> <?php // bof Zen Lightbox 2008-12-15 aclarke ?> <?php if (ZEN_LIGHTBOX_STATUS == 'true') { if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') { $rel = 'lightbox-g'; } else { $rel = 'lightbox'; } ?> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); //--></script> <?php } else { ?> <?php // eof Zen Lightbox 2008-12-15 aclarke ?> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); //--></script> <?php // bof Zen Lightbox 2008-12-15 aclarke ?> <?php } ?> <?php // eof Zen Lightbox 2008-12-15 aclarke ?> <noscript> <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?> </noscript> </div> ```
24 Dec 2008, 10:40 AM
#1210
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

raspberryjamcloth, this file (the Cherry Zen fixed one) was written for v1.4 of Zen Lightbox. It will not work correctly with v1.5.

A quick fix would be to find the following code in this file...

rel="lightbox[gallery]"

and replace it with...

rel="lightbox-g"

This should work, but I don't use the Cherry Zen template so cannot confirm this.

I've added this issue to my todo list and v1.6 will include an up-to-date fix for the Cherry Zen template.

I hope the above fix works. Please let me know how you get on.

24 Dec 2008, 10:54 AM
#1211
orko avatar

orko

New Zenner

Join Date:
Dec 2008
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

hi,sorry form my english, i've just installed lightbox mod for my zen cart, it seem to work....so image pop up in light box correctly

but no options to configure it appear in admin->configuration->Zen LightBox

what can i do? is it a known issue?

24 Dec 2008, 11:11 AM
#1212
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Some people have reported an issue with the install.sql code. I'm looking in to this at the moment.

Can you please confirm the version of MySQL you are running.

Also, did you receive any error messages when running the SQL code?

24 Dec 2008, 11:23 AM
#1213
orko avatar

orko

New Zenner

Join Date:
Dec 2008
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

mysql : 4.1.23

no error when inserting the sql mod code, but i've done it with phpmyadmin and correcting the name of the table adding the prefix zen_

24 Dec 2008, 1:11 PM
#1214
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

So, you have things working now?

I think part of the SQL code doesn't work (the table prefix is not inserted automatically).

If this is the case, I'll correct this in the next release.

24 Dec 2008, 1:51 PM
#1215
raspberryjamcloth avatar

raspberryjamcloth

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex - that takes off the next and prev off the main pic and will work untill you release the next. Thank you!

24 Dec 2008, 1:54 PM
#1216
orko avatar

orko

New Zenner

Join Date:
Dec 2008
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

didn't work yet, maybe i explain me in a bad way

installation seems to be ok, no error adding sql trough phpmyadmin

but when i go in admin section, setting does not display

25 Dec 2008, 3:31 AM
#1217
knobbery avatar

knobbery

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hello,

A new user here, we have a new zencart that has been implemented and i installed he zen lightbox yesterday. Works like a charm, however i have 1 issue, that perhaps someone could shed some light

1- If my product has no attributes defined, the lighbox works fine. ex here

2- However if my product has attributes defined, the image still opens up in a pop up. Ex here

We use the same product image for the attributes but for some reason the lighbox wont be triggered for these products.

Please any suggestions would be great

Thanks

knobbery:

HI,

Does anyone have any pointers for me on this issue..

Any help would be appreciated

Thanks
Ameet
I just upgraded to 1.5, I am still having the same issue where images which have an attribute defined are still opening up in a popup, ones that are without the Attributes open just fine in a Light Box. I hope the contributor on this feature can help me out..

ex. without attribute (Opens in a lightbox)
http://www.knobbery.com/index.php?main_page=product_info&cPath=47_48&products_id=18369&zenid=e5e3e152008af4c0059afd64f6eabd0f

Ex with attribute (Opens in a Pop Up)

http://www.knobbery.com/index.php?main_page=product_info&cPath=3_74&products_id=27425&zenid=499ea53441ad933c1b6c272ad87a0356

Thanks

Ameet

25 Dec 2008, 2:52 PM
#1218
axzion avatar

axzion

New Zenner

Join Date:
Jul 2008
Location:
Klippan, Sweden
Posts:
7
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Installed Lightbox (copied) all files according to instructions, but got this error messages (after updating the install.sql):

1146 Table 'netkompa_zc4.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Does anybody know what it means, please?

Copied the: jscript_zen_lightbox.php, to root (/public_html/). Was that the right thing to do?

25 Dec 2008, 5:43 PM
#1219
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

Can use external links with Lightbox?

27 Dec 2008, 4:14 PM
#1220
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

raspberryjamcloth:

Alex - that takes off the next and prev off the main pic and will work untill you release the next. Thank you!

Thanks for the update. The next release will probably be out before Zen Cart 2.0.0.

orko:

didn't work yet, maybe i explain me in a bad way

installation seems to be ok, no error adding sql trough phpmyadmin

but when i go in admin section, setting does not display

You should be running the install.sql code via your Zen Cart Admin (as per the installation instructions).

Running the code via phpMyAdmin is fine, but only if you manually update your table names (if you use prefixes).

Try running the code via your Zen Cart Admin and see what happens.

knobbery:

Hello,

A new user here, we have a new zencart that has been implemented and i installed he zen lightbox yesterday. Works like a charm, however i have 1 issue, that perhaps someone could shed some light

1- If my product has no attributes defined, the lighbox works fine. ex here

2- However if my product has attributes defined, the image still opens up in a pop up. Ex here

We use the same product image for the attributes but for some reason the lighbox wont be triggered for these products.

Please any suggestions would be great

Thanks

I just upgraded to 1.5, I am still having the same issue where images which have an attribute defined are still opening up in a popup, ones that are without the Attributes open just fine in a Light Box. I hope the contributor on this feature can help me out..

ex. without attribute (Opens in a lightbox)
http://www.knobbery.com/index.php?main_page=product_info&cPath=47_48&products_id=18369&zenid=e5e3e152008af4c0059afd64f6eabd0f

Ex with attribute (Opens in a Pop Up)

http://www.knobbery.com/index.php?main_page=product_info&cPath=3_74&products_id=27425&zenid=499ea53441ad933c1b6c272ad87a0356

Thanks

Ameet

Hi Ameet,

You've got a few errors on your site. I recommend that you fix these. Try installing Firefox and using the FireBug addon to locate the problems.

An existing contribution that's installed may be causing a conflict with Zen Lightbox here.

Can you list all the contributions you have installed please?

Thanks,

Alex

axzion:

Installed Lightbox (copied) all files according to instructions, but got this error messages (after updating the install.sql):

1146 Table 'netkompa_zc4.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Does anybody know what it means, please?

Copied the: jscript_zen_lightbox.php, to root (/public_html/). Was that the right thing to do?

How did you run this SQL code? Via your Zen Cart Admin or phpMyAdmin?

The jscript_zen_lightbox.php file should not be placed on the root. It is required only if you need to use the lightbox effect on extra pages. Please check the readme.html file for more information.

webskipper:

Can use external links with Lightbox?

Yes, this should be possible.

Try setting up an EZ-Page with a link to an external image.

It should work... but I've not tried it yet! :P