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

Zen Lightbox addon [Support Thread]

Views: 953,153

Results 1,461 to 1,480 of 3,722
24 Jul 2009, 11:32 AM
#1461
deko avatar

deko

New Zenner

Join Date:
Sep 2004
Posts:
34
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

For anyone encountering the '1146 Table' error whilst installing this, then DarkAngel hit the nail on the head in post 1447 on page 145.

http://www.zen-cart.com/forum/showpost.php?p=750330&postcount=1447

The sql file provided in the original download assumes that your database table don't have a prefix. If your prefix is "zen_" then you need to change the four lines of code that refer to a TABLE.

If that doesn't work, then run the commands through phpmyadmin instead of the 'Install SQL patches' drop down in Zen Cart.

  • Open phpmyadmin
  • click on your database in left column
  • hit SQL tab at top
  • paste in the sql file you just updated

(WARNING: Backup before doing this)

Hope that helps :)

d.

25 Jul 2009, 9:45 AM
#1462
ojm avatar

ojm

New Zenner

Join Date:
Oct 2007
Posts:
68
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Just installed, but ran into an issue where it was trying to load large images within a /large folder, and with _LRG appended to them. It also didn't display _01, _02 images etc.

However, a simple fix...

Line 86 states ```
$flag_has_large = true;


Just change this to ```
$flag_has_large = false;

Works fine now. Not sure what the above is there for, without digging around.

Maybe a fix in the next version?

27 Jul 2009, 5:00 AM
#1463
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I need help to make this excellent add-on to work on my cart.

I have been trying for days to make it work, read many postings and still cannot figure out how to make it work.

As soon as I upload the intall script, it breaks. When I click the picture on the product details page, a new page loads with only the picture on it. If I uninstall the script, the cart goes back to the pop up menu for the product detail pic.

I should mentioned I am running a "store-bought" template (Afterwards I came to find out they are very difficult to modify)

I know I am installing it right, since I was able to make it work on a brand new db with a classic tempate that come with zencart. It looks beutiful! now I want that on my template.

I think a file is overwriting the javascript for lightbox. When this file is uploaded (tpl_modules_main_product_image.php) I get the image in a new page as describe above.

I have a slideshow running on the banner, I think it uses Javascript, could that be the suspect? if so how can I fix it.

I am sure now something is overwriting it. If I switch back to the classic template, lightbox works! without changing anything, I switch to the purchase template and it doesn't work (only regular pop-up window).

I need to finish this site asap, any help will be greatly appreciated!

Here is a link to the demo site:

http://www.studentwash.com/Mycart/index.php?main_page=index

Thanks!

29 Jul 2009, 4:34 AM
#1464
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Please guys throw me a bone..I have the site almost done, I will really love to add the lightbox to make it more presentable.

I appreciate the help!

JE

1 Aug 2009, 4:52 PM
#1465
essavant avatar

essavant

New Zenner

Join Date:
Jun 2009
Posts:
2
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Has anyone seen issues with the lightbox images displaying in Google Chrome browsers? Mine just pops up a white box, as it is rendering the picture, then stalls. I need to back out to continue...
You can test at:
https://soclicheboutique.com/store/

2 Aug 2009, 2:37 PM
#1466
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

A few things that I would like to ask before installing:

  1. Can it enable image thumbnails to be enlarged in a lightbox?

  2. Will it be able to do so for search results?

  3. Is it easy to adapt it to make the lightbox activate on hovering the cursor over?

_thanks for the contribution and response

2 Aug 2009, 5:15 PM
#1467
jvalent avatar

jvalent

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

I downloaded and set up Zen Light box but when I run the insta;sql I get the following error:

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

Can anyone help me with this?

Thanks

Jeff

2 Aug 2009, 7:48 PM
#1468
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

@jvalent

You'll have to tweak the sql statement for your mySQL tables prefix.

Look towards the bottom in your admin/includes/configure.php for this block of code:
(yours will have different values but the same defines)

 // define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'zen_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'root');
  define('DB_SERVER_PASSWORD', '');
  define('DB_DATABASE', 'zentest');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storag
```You'll see the define('DB_PREFIX', '**zen_**'); statement-
you'll have to add whatever prefix is in this statement (in this example it is **zen_**) to the sql statement you're trying to execute.
2 Aug 2009, 8:51 PM
#1469
jvalent avatar

jvalent

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

/**

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="http://en.wikipedia.org/wiki/ASCII" 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="http://en.wikipedia.org/wiki/ASCII" 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="http://en.wikipedia.org/wiki/ASCII" 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);

In my config.php it is zen_. Above is the install file I am trying to run. Not sure how or where to alter it.

Jeff

4 Aug 2009, 5:02 AM
#1470
malx avatar

malx

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

You need to change the table names to have zen_ in front of them...

i.e.

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

UPDATE `zen_configuration_group` SET `sort_order` = LAST_INSERT_ID() WHERE `configuration_group_id` = LAST_INSERT_ID();

SELECT @cgi := `configuration_group_id` FROM `zen_configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';

INSERT INTO `zen_configuration`... etc.

Anth.

8 Aug 2009, 11:34 AM
#1471
searcher83 avatar

searcher83

New Zenner

Join Date:
Aug 2009
Posts:
1
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

canihave:

Hi
I used this code
It got lightbox working for me but my site shifted to the left side and had an error at the top saying

Slimbox.scanPage = function() { $$(document.links).filter(function(el) { return el.rel && el.rel.test(/^lightbox/i); }).slimbox({]}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }; window.addEvent("domready", Slimbox.scanPage); //-->

I have uninstalled the sql for now but would really like lightbox to work.

Thanks

Hi im having the same problem, light box works great but this message apears, i would apreciate help on this, its the only thing im missing to finish the website.

I have searched and it seems to come from this file

C:/wamp/www/zencart/includes/modules/pages/featured_products/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

C:/wamp/www/zencart/includes/modules/pages/index/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

C:/wamp/www/zencart/includes/modules/pages/page/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

8 Aug 2009, 1:38 PM
#1472
gineta avatar

gineta

New Zenner

Join Date:
Mar 2009
Posts:
19
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

This script not like my database
I have prefix zen_
but I get > 4 statements processed.

ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
ERROR: Cannot execute because table zen_configuration_group does not exist. CHECK PREFIXES!
ERROR: Cannot execute because table zen_configuration does not exist. CHECK PREFIXES!
Note: 3 statements ignored. See "upgrade_exceptions" table for additional details.

Straing because zend_configuration_group is already in the database

And my script is Like this

INSERT INTO zen_configuration_group VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');
UPDATE zen_configuration_group SET sort_order = LAST_INSERT_ID() WHERE configuration_group_id = LAST_INSERT_ID();
SELECT @cgi := configuration_group_id FROM zen_configuration_group WHERE configuration_group_title = 'Zen Lightbox';
INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, zen_configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES

ANy Ideas
Thanks in advance

10 Aug 2009, 5:03 PM
#1473
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Is this still available for v1.3.8?? I can see that it is for the new v1.3.8a.

_thanks

11 Aug 2009, 5:27 PM
#1474
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex - are you registering~?

12 Aug 2009, 2:54 PM
#1475
silum avatar

silum

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Well I had quite a bit of trouble installing this script before I just gave up and began searching for exactly how things are worded in my database. I see a lot of people here are having the issue so just in case, I thought I would help a little...

If you are getting the 1146 table error, hopefully I can help. In my case, this is the script that worked (I ran the uninstall script first to make sure nothing was already there but I dont think that is nessasary). I did this from phpMyAdmin under SQL tab but there isn't any reason it shouldnt work from your Admin.

/**
 * Zen Lightbox
 *
 * @author Alex Clarke ([email protected])
 * @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 2008-12-17 aclarke $
 */

INSERT INTO `zen_configuration_group` VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');
UPDATE `zen_configuration_group` SET `sort_order` = LAST_INSERT_ID() WHERE `configuration_group_id` = LAST_INSERT_ID();

SELECT @cgi := `configuration_group_id` FROM `zen_configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';

INSERT INTO `zen_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="http://en.wikipedia.org/wiki/ASCII" 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="http://en.wikipedia.org/wiki/ASCII" 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="http://en.wikipedia.org/wiki/ASCII" 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);

The key things, are:

INSERT INTO zen_configuration_group
UPDATE zen_configuration_group
FROM zen_configuration_group

The things in red MUST match the wording in your database.

You dont want to rename:

SELECT @cgi := configuration_group_id

to:

SELECT @cgi := zen_configuration_group_id

because that is within zen_configuration group. Not a parent folder. You need to rename the FROM part. In my database, I have zen_configuration>configuration_group_id. If you indoubt, check your database and see which files have prefixes in front of them.

Hopefully this will make sense to all, obviously it will all depend on your database prefixes, in my case, everything has zen_ in front of it, but subdirectorys do not.

16 Aug 2009, 3:17 PM
#1476
breadfan avatar

breadfan

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

After editing the install.sql file I've got the Lightbox to run, but there are some problems in certain browsers.

Opera 9.63 - When there are multiple images per product and gallery is enabled, the Next button is invisible. The Prev button is ok. Keyboard navigation works.

Google Chrome 3.0.193.2 - The first image fails to load completely, only the white rectangle appears and fails to stretch to its full width. When I use keyboard to navigate to the next image, all works fine then.

Lightbox uses Slimbox v1.63 if I'm not mistaken.
I have tried the Slimbox v1.7 demo and it works great.

My question is: Is there a way to update the Slimbox from 1.63 to 1.7? It's not just a matter of copy/paste since it involves some code changing and I'm no good when it comes to JavaScript.

Help plz.

EDIT:

OK I did some clicking and found out that Chrome has problems with Slimbox, however it works fine with Slimbox 2. The difference is that the first uses MooTools and the second uses jQuery.

Is there a version of Zen Lightbox that uses Slimbox2 and jQuery API?

19 Aug 2009, 1:12 PM
#1477
bnamodel avatar

bnamodel

New Zenner

Join Date:
Jul 2009
Posts:
24
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I feel so frustrated in installing Zen Lightbox... I have finished all the installation steps successfully, but nothing appears or takes place when clicking on any image on the product info page -- no popup page, no lightbox... I've tried it on different browsers, but the results are the same. :wacko:

I really desire to use it on my website especially after I saw its fabulous effect from other people's sites~!! I appreciate any help and suggestion!! Thank you!

19 Aug 2009, 4:04 PM
#1478
gineta avatar

gineta

New Zenner

Join Date:
Mar 2009
Posts:
19
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

searcher83:

Hi im having the same problem, light box works great but this message apears, i would apreciate help on this, its the only thing im missing to finish the website.

I have searched and it seems to come from this file

C:/wamp/www/zencart/includes/modules/pages/featured_products/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

C:/wamp/www/zencart/includes/modules/pages/index/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

C:/wamp/www/zencart/includes/modules/pages/page/jscript_zen_lightbox.php

Line #15 : Slimbox.scanPage = function() {

I is lose your time with this module try the other is better and work perfect at the first time the module is Fual Slimbox
Visit : http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=830

:clap: Happy end

20 Aug 2009, 1:22 AM
#1479
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

after installing it you need to go to your admin section and activate it and set its preferences then it should work.

Of course mine has never worked on additional images but has only worked on the thumbnail images, which is fine with me since I make the thumbnail a fairly large size and the software resizes it down for the page. The lightbox opens hte larger size...lol

21 Aug 2009, 6:32 PM
#1480
nfm avatar

nfm

New Zenner

Join Date:
Jan 2008
Posts:
90
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Okay...thanks to Silum I've got the upgrade working!

Now...the only issue I have is that it seems to be missing the language file for the counter. I have the counter turned on and at the bottom of the page it reads something along the lines of:

ZEN_LIGHTBOX_COUNTER_IMAGE 1 ZEN_LIGHTBOX_COUNTER_OF 6

Any ideas what might be missing?

EDIT: Nevermind...I figured out that I didn't put the file in the right folder.

So....we'll just make this post a big thanks to Silum!