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

Zen Lightbox addon [Support Thread]

Views: 952,886

Results 1,701 to 1,720 of 3,722
14 Jan 2010, 7:04 PM
#1701
daisy avatar

daisy

New Zenner

Join Date:
Nov 2006
Posts:
28
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

Thanks Dark Angel, have all the image files in the correct folders but the 'close' button is still not showing in fact none of the images/buttons are for example the next previous or page loading one, have uninstalled the wole thing incase I missed something reinstalled and still no luck

14 Jan 2010, 7:17 PM
#1702
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

Daisy:

Thanks Dark Angel, have all the image files in the correct folders but the 'close' button is still not showing in fact none of the images/buttons are for example the next previous or page loading one, have uninstalled the wole thing incase I missed something reinstalled and still no luck

sorry if I missed it but did you post a link to your store so I can take a peek, if you want to send me a pm and I can take a look at it from within

14 Jan 2010, 7:33 PM
#1703
daisy avatar

daisy

New Zenner

Join Date:
Nov 2006
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Just tried it in IE and can see the close button to close the image but in Firefox cant see it at all

15 Jan 2010, 5:56 PM
#1704
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Would anyone be able to tell me how to use Lightbox on the product listing page? ie instead of linking to the product info page, clicking on the thumbnail just displays the full-sized image.

I've been searching the forum for a couple of hours now, and can't see the answer, though I know the question has been asked a few times... apologies if it's obvious and I'm just stupid... :dontgetit

Thanks...!

15 Jan 2010, 7:25 PM
#1705
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Ok thanks. I will be checking as soon as I get a chance and i will let you know

15 Jan 2010, 11:58 PM
#1706
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

Takoda:

Would anyone be able to tell me how to use Lightbox on the product listing page? ie instead of linking to the product info page, clicking on the thumbnail just displays the full-sized image.

I've been searching the forum for a couple of hours now, and can't see the answer, though I know the question has been asked a few times... apologies if it's obvious and I'm just stupid... :dontgetit

Thanks...!

When you open the zip to see the files that you uploaded...remember the ones that go into the includes/modules folders?

The file that you put into those folders you should be able to grab it and place it into any other folder in there that you would like to have the box work in.

**jscript_zen_lightbox.php **to the relevant modules/pages folder.

16 Jan 2010, 7:26 PM
#1707
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks for your help DA.

I've been playing around for a while, sticking jscript_zen_lightbox.php in various folders, but without much luck; it works fine on the ez pages, and on the product_info page, but I can't get it to work on product listings.

Does this page have an entry under modules/pages - I can't see anything obvious?

I tried on the products_all page, and that didn't work either...

Does the image link need editing? For the product_listing.php I've currently got the code like this, to disable the product details page, which I don't need.

$lc_text = '<h3 class="itemTitle">' . $listing->fields['products_name'] . '</h3><div class="listingDescription">' . zen_trunc_string(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id'])), PRODUCT_LIST_DESCRIPTION) . '</div>';

Any further help will be appreciated!

16 Jan 2010, 7:51 PM
#1708
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

Takoda:

Thanks for your help DA.

I've been playing around for a while, sticking jscript_zen_lightbox.php in various folders, but without much luck; it works fine on the ez pages, and on the product_info page, but I can't get it to work on product listings.

what page exactly do you mean by the product listing...is it the link to the left in the sidebox "All Products"?

when i go to mine it shows the promo images but they lead to the product description page where the lightbox works on the images.

If that is what you mean then that may be the problem, your disabling that page may be what is hampering the function.

Does this page have an entry under modules/pages - I can't see anything obvious?

I tried on the products_all page, and that didn't work either...

Does the image link need editing? For the product_listing.php I've currently got the code like this, to disable the product details page, which I don't need.

$lc_text = '<h3 class="itemTitle">' . $listing->fields['products_name'] . '</h3><div class="listingDescription">' . zen_trunc_string(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id'])), PRODUCT_LIST_DESCRIPTION) . '</div>';



not sure about this part at all --- sorry. Links are always helpful to get better help.
18 Jan 2010, 7:09 PM
#1709
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

@megetweh

Is this: sac2126_zc1 the prefix to your tables?

when you look at the tables in myphpadmin...is that what is seen before the table name? like some is zen_ or zc1_

and don't worry, new at this or not we all sometimes have trouble and errors while following the steps....lol

Now if this is your prefix to the tables then installing the SQL through myphpadmin's sql section

comartdw@ cableone.net

without the space feel free to email me if you need further hands on help

Actually yes. The prefix to the table is sac2126_zc1
Should I change it to something else?

18 Jan 2010, 8:25 PM
#1710
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

could you take a screenshot of the tables in your phpadmin and plst it here ?

sac2126_zc1

the one in red is usually theaccount with zc1_ as the prefix is why i would like to see the screenshot

18 Jan 2010, 8:41 PM
#1711
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

could you take a screenshot of the tables in your phpadmin and plst it here ?

sac2126_zc1

the one in red is usually theaccount with zc1_ as the prefix is why i would like to see the screenshot

Ok When I go to PHPadmin this is the page that comes up.
Attachment #6900
The first two databases on the left aare linked to another site I have and the third is for the site I want to use with lightbox

Then, after clicking on databases, this is the second page:
Attachment #6901

18 Jan 2010, 11:17 PM
#1712
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

that picture is tiny but that is ok I was right. the first image is the first thing you see there and the second image is YES the list of databases.

you will see to the left that there are others with the zc1

so _zc1 is the table name.

click on that one in the list and it will cough up the list of tables where you will see them listed as either address_book or with zen_address_book or something before the actual table name in red here...

the letters or numbers --if any will be the prefix in blue above

19 Jan 2010, 12:14 AM
#1713
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Sorry about the small size before. You are right. So the tables all have zen_(name of table)

Attachment #6907

Im sorry I cant seem to get a clear picture no matter what file type I save it as. Is there a better way to do it?
Anyway it looked like this:

Table Ascending 	Action 	Records 1 	Type 
zen_address_book 	
zen_address_format 	

So im guessing i will have to change the name for one of those tables or add a new table?

19 Jan 2010, 3:23 AM
#1714
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

megetweh:

Sorry about the small size before. You are right. So the tables all have zen_(name of table)

So im guessing i will have to change the name for one of those tables or add a new table?

actually if you look maybe 2-3 pages back you can see exactly where to add the zen_ to the lightbox sql then after you add it to the file just copy/paste the info into the admin section>tools>sql installer

once the tables are created in a database tis hard to change it and not muck up the table

19 Jan 2010, 10:43 PM
#1715
daisy avatar

daisy

New Zenner

Join Date:
Nov 2006
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Ive now got the problem of the 'close' button not appearing in Firefox sorted out, now when I have tried to install this module on another site instead of the image opening in the lightbox it is opening in a completely new page, any ideas what can be causing that?

19 Jan 2010, 10:45 PM
#1716
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Link to your site?

20 Jan 2010, 4:44 AM
#1717
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

daisy, you will get more help if you give a link to the naughty store or stores.

now that said...if you are using a paid for theme --- I have found that there are a few I have come up personally with that the zen lightbox or the slim one will not work becasue of the templates own jscipt folder and editing the creators have used and you need to have a different one (one from their own site which is free) to install.

so please list the site link and the template you are using

20 Jan 2010, 7:50 PM
#1718
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

abs007:

Hi Thanks alot Dark Angel

Well I checked the prefix from my phpmyadmin area - I should have copied you - the prefix is zen_

Anyway I changed the code to match your initial one and I got a different error. The screenshots of both phpmyadmin and the error are below. It processed a few statements but not others.


DarkAngel:

ok next question...does it show in the admin/configuration section allowing you to change the settings--or is it listed but empty page?

and you are using the default classic theme right?

abs007:

yup
checked all the files and they all look sound - the template is set to MYTEMPLATE and I have added all the files as they were meant to be added

DarkAngel:

ok bear with me here.

when the folders are called your_template,, they need to be renamed to the name of the template you are using for your shop...the template you are using in your store at this moment...

is is the classic one or is it really a template called MYTEMPLATE

Hi Darkangel
Sorry for using the same large images again - I thought it would help start from where we left off.

Yes the zen lightbox is showing in admin>configurations - kind of strange actually as its showing 2 - When I click on either one of them then there are no options available.

I tried to install the zenlight box on another website but again got exactly the same problems as above. I added the zen_ prefix and the 2nd error come up whereby it processed some and ignored others.

The new database has the same prefixes.

I am using a custom template on this site and uploaded the MY_TEMPLATE files to my custom template which is actually called mytemplate -

The last time I done the upload on another site which gave the same issues - the zenlightbox showed in the admin>configuration twice in the same way it is on this site - however when I logged out and then logged in again they where not there anymore.

Kind of strange I know.

Just wondering if you know what could be causing the issues. I know its to do with the instal.sql and the prefixes that im using and this is why its not installing properly - But as far as I can see taking the image of my database above as reference the prefix looks fine.

Your help will be appreciated - thanks

21 Jan 2010, 1:17 AM
#1719
megetweh avatar

megetweh

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

actually if you look maybe 2-3 pages back you can see exactly where to add the zen_ to the lightbox sql then after you add it to the file just copy/paste the info into the admin section>tools>sql installer

once the tables are created in a database tis hard to change it and not muck up the table

Dark angel thanks so much for your help. I think I finally got it. Appreciate it.

21 Jan 2010, 3:23 AM
#1720
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

@megetweh: yippeee, glad it decided to play nicely

@abs007: well try running the uninstaller from admin section to undo the installation..for each instance of it showing in the configuration part. make sure it no longer shows there.

then make sure you have the items installed into the right folders again.

copy/paste this into a document called install.php

/**
 * Zen Lightbox
 *
 * @author Alex Clarke ([email protected])
 * @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: 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);

but instead of installing it thru admin go to the myphpadmin and use the SQL tab to install it.

sometimes it will not install thru admin--mine did not and so did some others

hopefully this will take care of it. but if not a link would be grand --pm me if it is a private link