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

Zen Lightbox addon [Support Thread]

Views: 952,796

Results 1,921 to 1,940 of 3,722
11 Apr 2010, 4:17 AM
#1921
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Zen Lightbox addon [Support Thread]

Jdavidb0216:

I will try jquery lightbox. Does it not use mootools...?

In short... no! jquery and mootools are two different libraries. and don't play will with each other.

Jdavidb0216:

The file i have modified is includes/templates/template_default/templates/tpl_product_info_display.php

And the three lines of code causing the problem are:

<script type="text/javascript" src="scripts/prototype.lite.js"></script> <script type="text/javascript" src="scripts/moo.fx.js"></script> <script type="text/javascript" src="scripts/moo.fx.pack.js"></script>

Does anyone notice anything about these lines that would cause lightbox to stop functioning and if so any suggestions on how to remedy the problem...?

Loading the code within the body tag vs the head could be one problem.... and if the name means it's using the mootool core, then its loading in the wrong spot and over writing as DA stated.. you may be able to run the script just by using the 'prototype.lite.js' file and leaving the others out... ZenLightbox is using both modified and default mootool core files version 1.2.1..

11 Apr 2010, 5:13 AM
#1922
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

Any ideas if ZenLightbox well be ported over to 1.2.4 version of mootools anytime??

I want to convert my tree menu over to mootools, it be nice to have both running on version1.2.4... Already tried a quick switch out of the core and it didn't work out.

11 Apr 2010, 9:27 AM
#1923
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Jdavidb0216:

Thanks will do!

Is one last question, is jquery lightbox on the zencart contribs site?

it is located here:

http://eazyecommerce.com/platforms/zen-cart/modules/jquery-lightbox

it is free

11 Apr 2010, 9:33 AM
#1924
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Jdavidb0216:

Hello there,

I'm having an issue with something and was hoping someone might know the solution:

Basically, i've installed zen lightbox within my site and everything has worked wonderfully.

Recently i added a feature to my product image page allowing the product information to be displayed in a four tabbed AJAX menu box. Since the addition of this, lightbox no longer works and the large images just load in a popup window like default.

I have narrowed the problem down to three lines of code that work in conjuction to cause the proplem with light box, but are necessary for the AJAX menu to function.

The file i have modified is includes/templates/template_default/templates/tpl_product_info_display.php

And the three lines of code causing the problem are:

<script type="text/javascript" src="scripts/prototype.lite.js"></script> <script type="text/javascript" src="scripts/moo.fx.js"></script> <script type="text/javascript" src="scripts/moo.fx.pack.js"></script>

Does anyone notice anything about these lines that would cause lightbox to stop functioning and if so any suggestions on how to remedy the problem...?

I apologize for the poor explanation and will try my best to clarify if asked... :)

Any help is welcomed!! Thank You!!
Not sure if this is of any use to you, Slimbox... http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=830 - I prefer it over the full Lightbox add-on as it is a stand alone mod, easy to install, easy to uninstall - I only had problem after problem with the full Lightbox mod and gave up on it after a short while

You can see the slimbox version in action here - http://www.bwe-invest.cz/index.php?main_page=product_info&cPath=1_2&products_id=1

11 Apr 2010, 5:28 PM
#1925
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

Twaddle:

Not sure if this is of any use to you, Slimbox... http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=830 - I prefer it over the full Lightbox add-on as it is a stand alone mod, easy to install, easy to uninstall - I only had problem after problem with the full Lightbox mod and gave up on it after a short while

You can see the slimbox version in action here - http://www.bwe-invest.cz/index.php?main_page=product_info&cPath=1_2&products_id=1

Actually, Fuel and Zen are both using Christophe Beyls Slimbox version... Fuel, version 1.3, Zen version 1.67 which is why I went with Zen.....

The latest Slimbox version of his is 1.71 which uses mootools 1.2.4... and wasn't that hard to upgrade ZenLightbox to after all.

12 Apr 2010, 4:53 AM
#1926
stefanb avatar

stefanb

New Zenner

Join Date:
Jul 2007
Posts:
18
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

stefanb:

Hi, I have just installed Zen Lightbox on a test server. My site is both in English and Bulgarian. All is working fine except this close buton missing only in Bulgarian version. I uploaded the same files in Bulgarian folder as in English. Where am I wrong?

I still have not fix the problem. The "Close" buton isn't visible.

12 Apr 2010, 9:41 PM
#1927
jdavidb0216 avatar

jdavidb0216

New Zenner

Join Date:
Dec 2009
Location:
Austin, Texas
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

it would seem that the tab add on has overridden the mootools js for lightbox, which is what some will do.

have you tried removing the js scripts for tabbing to see if it will still work?

or you might have to install jquery lightbox instead

Thanks for all your previous advice DarkAngel!

I attempted to install jquery lightbox instead of Zen Light box and the installation went well.

Although, I am still having the same issue with jquery as i did with zen. Perhaps the way i have the tab menu installed is not the best way to do it... (which is probably the case :|)

Overall, what i'm trying to acheive is this:

I obviously want the lightbox effects for larger image previews, but in addition I want to be able to have the tab menu functional on all product info pages.

So, what i have done is just inserted the code for the tab menu into:
includes/templates/template_default/templates/tpl_product_info_display.php

thereby causing the conflict with the three lines of code i've mentioned in a previous post...

The code for the tab menu i'm using can be found here: http://www.nyokiglitter.com/tutorials/tabs.html

If anyone is able to shed some additional light on the best way to acheive what im looking for, i'm all ears...

I may just have to go an alternative route and use a different tab menu...

13 Apr 2010, 12:38 AM
#1928
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

according to that site the coding is a bit old so maybe that is hampering things a bit.

this is what my veiw source says about the lightbos stuff in the same section you have your code:

<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/style_imagehover.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_header_menu.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_reward.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_zen_lightbox.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/as-Gold/css/print_stylesheet.css" /> <script type="text/javascript" src="includes/templates/as-Gold/jscript/jscript_imagehover.js"></script> <script type="text/javascript" src="includes/templates/as-Gold/jscript/zen_lightbox_mootools_custom.js">

maybe substituting the js for lightbox where the one for the other one is might help...I really don't know since I try to recode and sometimes butcher instead...but other times it actually works.

13 Apr 2010, 2:06 AM
#1929
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

stefanb:

I still have not fix the problem. The "Close" buton isn't visible.
Do you have a folder in /includes/templates/YOUR_TEMPLATE/buttons/Bulgarian
with a full set of buttons?

Jdavidb0216:

I obviously want the lightbox effects for larger image previews, but in addition I want to be able to have the tab menu functional on all product info pages.

So, what i have done is just inserted the code for the tab menu into:
includes/templates/template_default/templates/tpl_product_info_display.php

thereby causing the conflict with the three lines of code i've mentioned in a previous post...

I may just have to go an alternative route and use a different tab menu...
The Accordion effect is something Mootools can do, look to their web site to see a demo of it.,,, but you need to have the full set of core files and same version of code to get everything to work. That's why I upgraded mine and now working on a tree menu, and I'll more then likely use the accordion tabs for something as well.

13 Apr 2010, 3:55 PM
#1930
stefanb avatar

stefanb

New Zenner

Join Date:
Jul 2007
Posts:
18
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

davewest:

Do you have a folder in /includes/templates/YOUR_TEMPLATE/buttons/Bulgarian
with a full set of buttons?
Thank you davewest. The problem is solved.

15 Apr 2010, 2:58 PM
#1931
mkintner avatar

mkintner

New Zenner

Join Date:
Mar 2010
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

The install went okay, other than I had to change the SQL statment and append zen_ in front of the table names and then the update installed. However when I click the larger image it just goes to a new page and only displays the image no hover over popup window. Can anyone shed any light as to the problem.

I thouht I followed the directions to a T. Everything shows correctly in the Admin area.

My website is http://www.CommunityArtShop.com

Thank you in advance for your help. :smile:
Mike

15 Apr 2010, 4:58 PM
#1932
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

mkintner:

The install went okay, other than I had to change the SQL statment and append zen_ in front of the table names and then the update installed. However when I click the larger image it just goes to a new page and only displays the image no hover over popup window. Can anyone shed any light as to the problem.

I thouht I followed the directions to a T. Everything shows correctly in the Admin area.

My website is http://www.CommunityArtShop.com

Thank you in advance for your help. :smile:
Mike

yup no lightbox when you click to see larger image.

make sure you uploaded ALL the files to their right places (including any folder you needed to create with your templates name on them) and make sure your files found the right home....just one left out will muck things up a bit.

15 Apr 2010, 6:00 PM
#1933
sdimagine avatar

sdimagine

New Zenner

Join Date:
Apr 2010
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Woot, finally found this thread.

I need help. According to the configuration for initial height and width, I'm suppose to have a resize animation option. Where is it?

I don't want it resizing the frame. I want the frame to be a set px with white space.

15 Apr 2010, 8:04 PM
#1934
mkintner avatar

mkintner

New Zenner

Join Date:
Mar 2010
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

yup no lightbox when you click to see larger image.

make sure you uploaded ALL the files to their right places (including any folder you needed to create with your templates name on them) and make sure your files found the right home....just one left out will muck things up a bit.

I have done this over and over, and after looking at several posts there are multiple people with this same problem. Something is missing and I do not know what. What can I do to have you help me DarkAngle?

16 Apr 2010, 2:29 AM
#1935
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

SDImagine:

Woot, finally found this thread.

I need help. According to the configuration for initial height and width, I'm suppose to have a resize animation option. Where is it?

I don't want it resizing the frame. I want the frame to be a set px with white space.

admin/configuration/images

towrads the bottom of the list are the setting to change for ih2

17 Apr 2010, 12:08 PM
#1936
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Help needed with install on a custom template

This is my original file of my template :

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> 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"> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<div class="image"><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) . '</a></div><a class="name" href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo ' <div class="image"> <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>
</div><br />
<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank"><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span>';

?>
</noscript>

</div>

And when I instal the file from the lightbox pop up won't work

I tried it with winmerge but it want work for me
Hopefully somebody can merge thenm for me in the right way

Below is the lightbox file I have

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> 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>
17 Apr 2010, 1:10 PM
#1937
mo_athar avatar

mo_athar

New Zenner

Join Date:
Jan 2010
Location:
Dorset, UK
Posts:
2
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

BlessIsaacola:

I upgraded to 1.5 and everything was fine except for a minor issue I am currently experiencing.

SCENARIO 1: If Gallery Mode and Include Main Image in Gallery are both set to true zen light works fine except that the main image is included as an additional image. This means if you have one image (main product image) when you enlarge, you actually get 2 copies of the same image being displayed as 1 of 1 and 1 of 2. This I think should be expected based on the configuration setting.

SCENARIO 2: If Gallery Mode is set to true and Include Main Image in Gallery is set to false zen light doesn't work right. When you click on large image the main image is enlarged but none of the additional images are displayed and the next and previous buttons are gone. This to me appears to be a bug.

SCENARIO 3: If Gallery Mode and Include Main Image in Gallery are both set to false zen light does work either. It displays the main image on clicking large image but none of the additional images are displayed.

I don't mind the configuration setting in 1 except that it's not user friendly displaying duplicate image. It's also not user friendly to display the same image twice when only one image is present.

It looks like this code may have something to do with it:

<?php if (ZEN_LIGHTBOX_STATUS == 'true') { if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') { $rel = 'lightbox-g'; } else { $rel = 'lightbox'; } ?>
> 
> Any help is appreciated.

Hello, I have witnessed the same issue and am rather baffled as when I tested lightbox (v1.5) on my local copy of ZenCart (v1.3.8a) (running on a windaz machine), the feature worked quite well (no duplication of the main image, with or without the gallery mode). 

The other issue I faced was with the install script (I have now seen various posts with similar issues so I am not going to repeat that here). It looks to me like a configuration issue than any flawed logic in the PHP code.  

Well, it's an annoyance to see the same image twice but lightbox is still far better than the horrible default pop up window.
20 Apr 2010, 11:17 AM
#1938
mo_athar avatar

mo_athar

New Zenner

Join Date:
Jan 2010
Location:
Dorset, UK
Posts:
2
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

An update on this. A closer inspection of the live system revealed that an older installation of Slimbox (which had also failed to run on the live system for me) had not been removed cleanly. Re-installing lightbox improved the situation and with the main image excluded from the gallery, I don't see the duplication issue.

21 Apr 2010, 12:29 AM
#1939
walterk avatar

walterk

New Zenner

Join Date:
May 2008
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex Clarke:

Ok, this is my first contribution. It allows the main product images to be displayed in lightboxes.

Not sure what a lightbox is? Download and test it out for yourself! It's a 3 step installation procedure with no database edits. And yes, a screenshot has been included in the download.

Any feedback would be great!

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=273

Thanks,

Alex
Where can i see a working version of this lightbox?

21 Apr 2010, 1:28 PM
#1940
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Everything works fine but I cant see Zen Lightbox configuration in admin :( I used uninstall.sql and install.sql ....
Please help me