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

Zen Lightbox addon [Support Thread]

Views: 953,116

Results 1,261 to 1,280 of 3,722
7 Jan 2009, 3:46 AM
#1261
jp9999 avatar

jp9999

New Zenner

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

Zen Lightbox addon [Support Thread]

Wooo hooo! It was the z index! The original css file was set to 9999. I set it to a smaller number (in line with all my other z-indexed items) and the image was no longer greyscaled.

Thank you for your help Nick!

7 Jan 2009, 9:36 PM
#1262
daveed avatar

daveed

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

dni:

GOT IT!
made this slight change and ran it through again...

SELECT @cgi := configuration_group_id FROM [B]zen[/B]_configuration_group WHERE configuration_group_title = 'Zen Lightbox';


I made only this change and not the other changes mentioned here <http://www.zen-cart.com/forum/showpost.php?p=662273&postcount=1240> to make the sql.install file work.
13 Jan 2009, 12:09 PM
#1263
kite_force avatar

kite_force

New Zenner

Join Date:
Feb 2008
Posts:
15
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Perfect changed that one line and it worked a treat:clap:

13 Jan 2009, 11:00 PM
#1264
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

As promised, I've looked into the installation issues with the SQL code where database tables contained prefixes.

This issue has now been resolved and the new installation SQL code can be found below.

Please note, this code is to be used with Zen Lightbox v1.5 only.

/**
 * Zen Lightbox
 *
 * @author Alex Clarke (aclarke AT ansellandclarke DOT co DOT uk)
 * @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: install.sql 2009-01-13 aclarke $
 */
INSERT INTO `configuration_group` VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');
UPDATE `configuration_group` SET `sort_order` = LAST_INSERT_ID() WHERE `configuration_group_id` = LAST_INSERT_ID();
SELECT (@cgi := `configuration_group_id`) FROM `configuration_group` WHERE `configuration_group_title` = 'Zen 
Lightbox';
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, 
`configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, 
`set_function`) VALUES
(NULL, '<b>Zen Lightbox</b>', 'ZEN_LIGHTBOX_STATUS', 'true', '<br />If true, all product images on the following 
pages will be displayed within a lightbox:<br /><br />- document_general_info<br />- document_product_info<br />- 
page (EZ-Pages)<br />- product_free_shipping_info<br />- product_info<br />- product_music_info<br />- 
product_reviews<br />- product_reviews_info<br />- product_reviews_write<br /><br /><b>Default: true</b>', @cgi, 
100, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Overlay Opacity', 'ZEN_LIGHTBOX_OVERLAY_OPACITY', '0.8', '<br />Controls the transparency of the overlay.<br 
/><br /><b>Default: 0.8</b>', @cgi, 101, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''0.1'', ''0.2'', 
''0.3'', ''0.4'', ''0.5'', ''0.6'', ''0.7'', ''0.8'', ''0.9'', ''1''), '),
(NULL, 'Overlay Fade Duration', 'ZEN_LIGHTBOX_OVERLAY_FADE_DURATION', '400', '<br />Controls the fade duration of 
the overlay.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 
102, NOW(), NOW(), NULL, NULL),
(NULL, 'Resize Duration', 'ZEN_LIGHTBOX_RESIZE_DURATION', '400', '<br />Controls the speed of the image resizing.<br 
/><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 103, NOW(), 
NOW(), NULL, NULL),
(NULL, 'Resize Transition', 'ZEN_LIGHTBOX_RESIZE_TRANSITION', 'false', '<br />Allows for custom control over the 
transition effect used to animate the lightbox.<br /><br /><b>Default: false</b><br />', @cgi, 104, NOW(), NOW(), 
NULL, NULL),
(NULL, 'Initial Width', 'ZEN_LIGHTBOX_INITIAL_WIDTH', '250', '<br />If Enable Resize Animations is set to true, the 
lightbox will resize its width from this value to the current image width, when first displayed.<br /><br />Note: 
This value is measured in pixels.<br /><br /><b>Default: 250</b><br />', @cgi, 105, NOW(), NOW(), NULL, NULL),
(NULL, 'Initial Height', 'ZEN_LIGHTBOX_INITIAL_HEIGHT', '250', '<br />If Enable Resize Animations is set to true, 
the lightbox will resize its height from this value to the current image height, when first displayed.<br /><br 
/>Note: This value is measured in pixels.<br /><br /><b>Default: 250</b><br />', @cgi, 106, NOW(), NOW(), NULL, 
NULL),
(NULL, 'Image Fade Duration', 'ZEN_LIGHTBOX_IMAGE_FADE_DURATION', '400', '<br />Controls the fade duration of 
images.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br />', @cgi, 107, 
NOW(), NOW(), NULL, NULL),
(NULL, 'Caption Animation Duration', 'ZEN_LIGHTBOX_CAPTION_ANIMATION_DURATION', '400', '<br />Controls the animation 
duration of the caption.<br /><br />Note: This value is measured in milliseconds.<br /><br /><b>Default: 400</b><br 
/>', @cgi, 108, NOW(), NOW(), NULL, NULL),
(NULL, 'Display Image Counter', 'ZEN_LIGHTBOX_COUNTER', 'true', '<br />If true, the image counter will be displayed 
(below the caption of each image) within the lightbox.<br /><br /><b>Default: true</b>', @cgi, 109, NOW(), NOW(), 
NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'Close on Image Click', 'ZEN_LIGHTBOX_CLOSE_IMAGE', 'false', '<br />If true, the lightbox will close when the 
image being displaying is clicked.<br /><br /><b>Default: false</b>', @cgi, 110, NOW(), NOW(), NULL, 
'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Close on Overlay Click', 'ZEN_LIGHTBOX_CLOSE_OVERLAY', 'false', '<br />If true, the lightbox will close when 
the overlay is clicked.<br /><br /><b>Default: false</b>', @cgi, 111, NOW(), NOW(), NULL, 
'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, '<b>Keyboard Navigation</b>', 'ZEN_LIGHTBOX_KEYBOARD_NAVIGATION', 'true', '<br />If true, keyboard inputs 
will also be used to control the lightbox.<br /><br /><b>Default: true</b>', @cgi, 200, NOW(), NOW(), NULL, 
'zen_cfg_select_option(array(''true'', ''false''), '),
(NULL, 'Close Lightbox', 'ZEN_LIGHTBOX_ESCAPE_KEYS', '27,88,67', '<br />The lightbox will close when any of these 
keys are pressed.<br /><br />Note: Only <a href="[URL]http://en.wikipedia.org/wiki/ASCII[/URL]" target="_blank">ASCII</a> 
decimal values should be entered and separated with a comma (if listing multiple values).<br /><br /><b>Default: 
27,88,67</b><br />', @cgi, 201, NOW(), NOW(), NULL, NULL),
(NULL, 'Previous Image', 'ZEN_LIGHTBOX_PREVIOUS_KEYS', '37,80', '<br />The lightbox will display the previous image 
(if available) when any of these keys are pressed.<br /><br />Note: Only <a 
href="[URL]http://en.wikipedia.org/wiki/ASCII[/URL]" target="_blank">ASCII</a> decimal values should be entered and separated 
with a comma (if listing multiple values).<br /><br /><b>Default: 37,80</b><br />', @cgi, 202, NOW(), NOW(), NULL, 
NULL),
(NULL, 'Next Image', 'ZEN_LIGHTBOX_NEXT_KEYS', '39,78', '<br />The lightbox will display the next image (if 
available) when any of these keys are pressed.<br /><br />Note: Only <a href="[URL]http://en.wikipedia.org/wiki/ASCII[/URL]" 
target="_blank">ASCII</a> decimal values should be entered and separated with a comma (if listing multiple 
values).<br /><br /><b>Default: 39,78</b><br />', @cgi, 203, NOW(), NOW(), NULL, NULL),
(NULL, '<b>Gallery Mode</b>', 'ZEN_LIGHTBOX_GALLERY_MODE', 'true', '<br />If true, the lightbox will allow 
additional images to quickly be displayed using previous and next buttons.<br /><br /><b>Default: true</b>', @cgi, 
300, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'Include Main Image in Gallery', 'ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE', 'true', '<br />If true, the main product 
image will be included in the lightbox gallery.<br /><br /><b>Default: true</b>', @cgi, 301, NOW(), NOW(), NULL, 
'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, '<b>EZ-Pages Support</b>', 'ZEN_LIGHTBOX_EZPAGES', 'true', '<br />If true, the lightbox effect will be used 
for linked images on all EZ-Pages.<br /><br /><b>Default: true</b>', @cgi, 400, NOW(), NOW(), NULL, 
'zen_cfg_select_option(array(''true'', ''false''),'),
(NULL, 'File Types', 'ZEN_LIGHTBOX_FILE_TYPES', 'jpg,png,gif', '<br />On EZ-Pages, the lightbox effect will be 
applied to all images with one of the following file types.<br /><br /><b>Default: jpg,png,gif</b><br />', @cgi, 
401, NOW(), NOW(), NULL, NULL);

I would be grateful if everyone could report errors (or success stories) here.

Many thanks,

Alex

14 Jan 2009, 2:01 AM
#1265
kagen avatar

kagen

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

it works!!!
but now i have three lightbox tabs in my configuration??
Also my when the light box pops up there are 2 images of the same pic.
Heres the url: policyclothing.com

thanks

14 Jan 2009, 9:22 AM
#1266
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

You can run the uninstall.sql code to remove all the Zen Lightbox database entries.

Then simply run the install.sql code again and it should all install fine. :smile:

I'll look into your double image issue later on this evening.

16 Jan 2009, 3:20 PM
#1267
maxreefer avatar

maxreefer

New Zenner

Join Date:
Apr 2008
Posts:
22
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Quick question:
I would like to implement this great feature ONLY on my EZ pages.
Is this possible?

If it is which files to copy and which ones not.

Thanks for your help
Michael

16 Jan 2009, 5:08 PM
#1268
games4gamers avatar

games4gamers

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

I've uploaded all the files and ran the SQL patch and now I get no display for a product listing. Example here:

http://games4gamersonline.com/zencart/index.php?main_page=product_info&cPath=174_177_213_231&products_id=790

If I replace tpl_modules_main_product_image.php with the pre-Lightbox version, it works fine (albeit w/o LB support). Any help? Thanks...

16 Jan 2009, 5:59 PM
#1269
visexp avatar

visexp

Zen Follower

Join Date:
Jul 2008
Posts:
106
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I was running Lightbox 1.4 and wanted to upgrade to version 1.5. I am running Zen Cart v1.3.8a

As per the installation instructions I ran the uninstall sql, then uploaded the files after changing the folder names. Then I ran the install sql

Lightbox options are showing when I go to Admin > Configuration > Zen Lightbox. Everything seems fine there.

However it is not working on my site at http://www.syzygypens.com When I click on the image the larger image is just opened in the same window, no pop up or overlay, and I have to click the back button on my browser to go back to my site.

I have tried it in both IE and Firefox and get the same results.

Any help would be greatly appreciated. Thanks.

16 Jan 2009, 7:47 PM
#1270
games4gamers avatar

games4gamers

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

games4gamers:

I've uploaded all the files and ran the SQL patch and now I get no display for a product listing. Example here:

http://games4gamersonline.com/zencart/index.php?main_page=product_info&cPath=174_177_213_231&products_id=790

If I replace tpl_modules_main_product_image.php with the pre-Lightbox version, it works fine (albeit w/o LB support). Any help? Thanks...

I am replacing it with the pre-LB version, but here is a screenshot to illustrate the issue:

http://games4gamersonline.com/zencart/lightbox_error.jpg

18 Jan 2009, 2:33 PM
#1271
shoniqua avatar

shoniqua

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi, I think this is a wonderful mod and wished it would work on my site but it's not.

Initially I got the same SQL errors as others before me, but an uninstall/reinstall with updated SQL code fixed it, and now I see the Zen Lightbox in Admin-Config.

My URL is http://dees-deelights.com/store
I have ZC 1.3.8a
Image Handler 2
MySQL 5.0.67-community-log
PHP Version: 5.2.8 (Zend: 2.2.0)
Browser Firefox
My last add on was the Specials side box Dec 9. No problems since then until now.

Any help appreciated, thank you.

19 Jan 2009, 10:30 AM
#1272
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

shoniqua,

I've just checked your website and can't see any of the Zen Lightbox code in the HTML output.

Are you sure it's installed and you haven't recently changed your template?

Regards,

Alex

19 Jan 2009, 11:21 AM
#1273
visexp avatar

visexp

Zen Follower

Join Date:
Jul 2008
Posts:
106
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

VisExp:

I was running Lightbox 1.4 and wanted to upgrade to version 1.5. I am running Zen Cart v1.3.8a

As per the installation instructions I ran the uninstall sql, then uploaded the files after changing the folder names. Then I ran the install sql

Lightbox options are showing when I go to Admin > Configuration > Zen Lightbox. Everything seems fine there.

However it is not working on my site at http://www.syzygypens.com When I click on the image the larger image is just opened in the same window, no pop up or overlay, and I have to click the back button on my browser to go back to my site.

I have tried it in both IE and Firefox and get the same results.

Any help would be greatly appreciated. Thanks.

Can anybody help? Thank you.

19 Jan 2009, 12:53 PM
#1274
shoniqua avatar

shoniqua

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex Clarke:

shoniqua,

I've just checked your website and can't see any of the Zen Lightbox code in the HTML output.

Are you sure it's installed and you haven't recently changed your template?

Regards,

Alex

Hi Alex, I'm sorry I feel like a dope, when I FTP'd I uploaded the entire folder structure to public_html/store/includes instead of public_html/store :blush:

It's working! :clap::clap:: thank you so much!

21 Jan 2009, 11:28 AM
#1275
grace38 avatar

grace38

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Just a quick question.

I am running Lightbox 1.4 and it works just fine.

What would be the benefits of upgrading to 1.5 ?

Sorry if thats a dumb question but i'm wondering if it's worth waiting for 1.6 instead of updating a module that already works great at the moment.

21 Jan 2009, 12:09 PM
#1276
visexp avatar

visexp

Zen Follower

Join Date:
Jul 2008
Posts:
106
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Grace38, from what I can see the upgrade is significant. The control panel in the Admin section offers a lot more options. Also one of the bigger advantages is the ability of Lightbox to work on other pages aside from just the product detail page. For example it would work on pictures on the EZ pages.

Having said that, I am not having much success installing it on my site at http://www.syzygypens.com

I uninstalled 1.4 and installed 1.5. It shows up in my Admin panel, I can see and change all the options, however it is not working on the site. When I click on an image, the larger image is opened up in the same window and I have to click on the browser back button to get back to the product detail page.

I've been trying to figure out what I'm doing wrong for a couple of days now. I'd really like to get it sorted as I like the extra features of 1.5.

22 Jan 2009, 12:31 AM
#1277
visexp avatar

visexp

Zen Follower

Join Date:
Jul 2008
Posts:
106
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Well I figured out why Lightbox 1.5 was not working for me, which is pretty amazing considering how clueless I am :D

I am running Slideshow 2! on my main page and I had the code for that embedded in includes/templates/template_default/common/tpl_footer.php

Well it seems like Lightbox 1.5 and Slideshow 2! don't play nice together. So I moved the code for Slideshow 2! into includes/languages/english/html_includes/MY TEMPLATE NAME/define_main_page.php and voila everyone's getting along fabulously :D

Just thought I would post this in case it helps anyone.

22 Jan 2009, 5:47 PM
#1278
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi - I'm getting the following error when trying to run the sql file:

1146 Table 'bellabel_zc1.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.

I'm doing it via Admin > Tools > Install SQL Patches.

I'm using ZC 1.3.8a

23 Jan 2009, 9:32 PM
#1279
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Still can't get this to work, and on a clean vanilla install of zc.

I have no idea what to do :(

I just tried it from phpMyAdmin and got this error, which I guess is the same thing...

Error

SQL query:

INSERT INTO configuration_group
VALUES (
NULL , 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1'
);

MySQL said: Documentation
#1146 - Table 'bellabel_zc1.configuration_group' doesn't exist

23 Jan 2009, 11:49 PM
#1280
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

kagen:

it works!!!
but now i have three lightbox tabs in my configuration??
Also my when the light box pops up there are 2 images of the same pic.
Heres the url: policyclothing.com

thanks

I've just checked your website and noticed this in the HTML output.

<!-- bof Zen Lightbox v1.4 aclarke 2007-09-15 -->

It looks like the old version of Zen Lightbox wasn't completely uninstalled.

Make sure you uninstall v1.4 (as per the documentation) and then check that v1.5 was installed correctly.

Thank should solve your double image issue. :smile: