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

Zen Lightbox addon [Support Thread]

Views: 952,671

Results 2,281 to 2,300 of 3,722
14 Jan 2011, 02:08
#2281
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Zen Lightbox addon [Support Thread]

jostar:

Hi zenners, Happy New Year!:clap:

Today I just found that the newer version (v1.6) of Zen Lightbox for 1.3.9 was uploaded last month. So I installed it to my 1.3.9h zencart where image handler2 was already installed.

But here I got a problem! In the product description page, the lightbox function works perfectly! However the gallery mode is not working at all.

Here is the product page where I have an item with multiple 'additional images' and 'attribute swatches': https://www.jostaronline.com/index.php?main_page=product_info&cPath=1_2&products_id=9

I have swatch images for the attributes and additional images(named according to the additional image rule) and they are listed below the main image and product description.

To troubleshoot,

1) I checked into 'Configuration - Zen Lightbox' and 'Gallery Mode' was on.

2) I tried uninstall IH2.

3) I also tried to merge two 'additional images.php' in 'includes/modules' from 'IH2' and 'Zen Lightbox' but they seem identical using 'Compare plug-in in Notepad++.

4) I deleted IH2 image cache.

5) Using keyword 'gallery' I look thoroughly into this thread and no answer related to my situation was found!

Nothing seems to work for me! :no:

I've currently turned on BOTH IH2 and Zen Lightbox 1.6.
My ultimate goal for the product description page in terms images is to have:

1) additional images inside the lightbox generated by clicking the main image

2) swatches to indicate which additional image corresponds to the particular color/print attribute.

Please, anybody, help me on this topic.
Many thanks in advance! :laugh:

Hi Jostar,
What method are you using to create the additional images?
When I checked your code for the page, your additional images code is creating javascript popup windows and there is no sign of the rel="lightbox-g" code which is how the lightbox works.

daniel

14 Jan 2011, 02:24
#2282
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Jostar,
What method are you using to create the additional images?
When I checked your code for the page, your additional images code is creating javascript popup windows and there is no sign of the rel="lightbox-g" code which is how the lightbox works.

daniel

Hi Daniel, i'm using IH2 to generate additional 'RESIZED' images. The method I use is this:

1) Assume that I have one style of clothing with five different colors(Red, Green, Brown, Pink, Navy).

2) Resize all images from 3MP to 600x800px to be used as the large images(This is only resize I execute myself).

3) Choose one of the five images to use as a main image(Red for example) and rename it as 'clothing_example.jpg'.

4) Rename the rest of the images: 'clothing_example_Green.jpg', 'clothing_example_Brown.jpg', 'clothing_example_Pink.jpg', and 'clothing_example_Navy.jpg' with respect to images' color.

5) Using FTP, upload all six images to a corresponding folder and add an item in Zen Cart Admin Page.

6) Finish adding item and there are small, medium, large images that are automatically resized by IH2.

This basically is the method I use to upload images for an item I want to add.

Please advise.
Thanks :smile:

14 Jan 2011, 06:23
#2283
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

jostar:

Hi Daniel, i'm using IH2 to generate additional 'RESIZED' images. The method I use is this:

1) Assume that I have one style of clothing with five different colors(Red, Green, Brown, Pink, Navy).

2) Resize all images from 3MP to 600x800px to be used as the large images(This is only resize I execute myself).

3) Choose one of the five images to use as a main image(Red for example) and rename it as 'clothing_example.jpg'.

4) Rename the rest of the images: 'clothing_example_Green.jpg', 'clothing_example_Brown.jpg', 'clothing_example_Pink.jpg', and 'clothing_example_Navy.jpg' with respect to images' color.

5) Using FTP, upload all six images to a corresponding folder and add an item in Zen Cart Admin Page.

6) Finish adding item and there are small, medium, large images that are automatically resized by IH2.

This basically is the method I use to upload images for an item I want to add.

Please advise.
Thanks :smile:

Hi Jostar,
I tried installing IH2 after zen lightbox 1.6 and I found the same issue as you describe. In your OP you said that you compared includes/modules/additional_images.php however thats not the one that gets overwritten with these addons, the one you want to compare is includes/modules/[your_theme]/additional_images.php.
If you overwrite this one with the one from zen_lightbox 1.6 you should find that you get your additional image functionality back.

Let me know if this doesnt work for you.

Cheers
Daniel

14 Jan 2011, 07:47
#2284
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

yeah, there has been some discussion recently on the IH main thread (DivaVocals) about the additional_images.php file. Lightbox seems to have the IH code built into that file pretty well. You could still merge the two files instead of total overwrite, but I always get complete functionality when overwriting the IH file w/ the Lightbox file.

14 Jan 2011, 15:11
#2285
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

finlander:

yeah, there has been some discussion recently on the IH main thread (DivaVocals) about the additional_images.php file. Lightbox seems to have the IH code built into that file pretty well. You could still merge the two files instead of total overwrite, but I always get complete functionality when overwriting the IH file w/ the Lightbox file.

Thanks finlander,

Thanks for the tip!
I'm not really familiar with IH2. I had never even heard of it before working on ZL 1.6b and someone asking if it worked with IH2.

Daniel

14 Jan 2011, 16:25
#2286
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Zen Lightbox addon [Support Thread]

finlander:

yeah, there has been some discussion recently on the IH main thread (DivaVocals) about the additional_images.php file. Lightbox seems to have the IH code built into that file pretty well. You could still merge the two files instead of total overwrite, but I always get complete functionality when overwriting the IH file w/ the Lightbox file.

niestudio:

Thanks finlander,

Thanks for the tip!
I'm not really familiar with IH2. I had never even heard of it before working on ZL 1.6b and someone asking if it worked with IH2.

Daniel

And I'll repost what I already posted here on THIS support thread a few pages back....:smile:

DivaVocals:

Good to know this as we weren't aware that the Zen Lightbox module even had been recently updated AND had specific code which supported IH2.. The Fual Slimbox module requires some minor file merging to work with IH2, and it was always understood that the same applied to Zen Lightbox..

Unless I am misunderstanding what I see looking at the Zen Lightbox code for the additional_images.php file, and what you posted here, CLEARLY Zen Lightbox does not require any of the IH2 files be merged.. (It looks as if all you have to do is simply overwrite the additional_images.php from IH2 with the one from Zen Lightbox and every thing works together)

Perhaps when time permits we will update the IH2 documentation accordingly to minimize any confusion going forward..

14 Jan 2011, 17:06
#2287
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Jostar,
I tried installing IH2 after zen lightbox 1.6 and I found the same issue as you describe. In your OP you said that you compared includes/modules/additional_images.php however thats not the one that gets overwritten with these addons, the one you want to compare is includes/modules/[your_theme]/additional_images.php.
If you overwrite this one with the one from zen_lightbox 1.6 you should find that you get your additional image functionality back.

Let me know if this doesnt work for you.

Cheers
Daniel

Thanks, Daniel! Replacing the current additional_images.php with the one that's in the Lightbox installation folder helped me get the gallery mode working! :clap: https://www.jostaronline.com/index.php?main_page=product_info&cPath=1_2&products_id=9

The problem was that when I was installing the Lightbox to the Zen Cart that already had IH2 installed using FileZilla, I renamed the additional_images.php from Lightbox installation to additional_images.PHPLTBX because I thought I was renaming the additional_images.php from IH2. So that was my mistake during the installation!

Here I have more questions regarding this gallery mode! :smartalec:

1) How can I change the image counter text? I'm seeing this: 'ZEN_LIGHTBOX_COUNTER_IMAGE_1 (next line)ZEN_LIGHTBOX_COUNTER_OF_14" in the gallery mode. Can I change it to something like: Image 1 of 14 or Image 1/14?

2) Is there a way to use the gallery mode only for additional images instead of listing those images below the item description and attribute swatches? I actually tried to turn off the 'Show Product Additional Images' in 'Catalog-Product Types-General-Edit Layout' and this also turned off the gallery mode as well!:no:

Please advice me Daniel and many other experienced Zenners! :flex:

Best regards,
Jostar

15 Jan 2011, 03:02
#2288
tachedout avatar

tachedout

New Zenner

Join Date:
Oct 2009
Posts:
3
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Works great my shared host auto installed and upgraded my install I had to edit the install.sql to reflect the table names so it could install in phpmyadmin

Example

INSERT INTO `[B]zen_[/B]configuration_group` VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');
UPDATE `[B]zen_[/B]configuration_group` SET `sort_order` = LAST_INSERT_ID() WHERE `configuration_group_id` = LAST_INSERT_ID();

SELECT @cgi := `configuration_group_id` FROM `[B]zen_[/B]configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';

INSERT INTO `[B]zen_[/B]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-P
15 Jan 2011, 15:33
#2289
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

jostar:

Here I have more questions regarding this gallery mode! :smartalec:

1) How can I change the image counter text? I'm seeing this: 'ZEN_LIGHTBOX_COUNTER_IMAGE_1 (next line)ZEN_LIGHTBOX_COUNTER_OF_14" in the gallery mode. Can I change it to something like: Image 1 of 14 or Image 1/14?

2) Is there a way to use the gallery mode only for additional images instead of listing those images below the item description and attribute swatches? I actually tried to turn off the 'Show Product Additional Images' in 'Catalog-Product Types-General-Edit Layout' and this also turned off the gallery mode as well!:no:

Please advice me Daniel and many other experienced Zenners! :flex:

Best regards,
Jostar

HI Jostar,

  1. look at 'includes/classes/zen_lightbox/options.php'
    it seems that your code on line 23 got changed to this:
echo '"' . 'ZEN_LIGHTBOX_COUNTER_IMAGE' . ' {x} ' . 'ZEN_LIGHTBOX_COUNTER_OF' . ' {y}"'; 

instead of this:

echo '"' . ZEN_LIGHTBOX_COUNTER_IMAGE . ' {x} ' . ZEN_LIGHTBOX_COUNTER_OF . ' {y}"';

note the quotes around ZEN_LIGHTBOX_COUNTER_IMAGE, this changes it from a variable name to a string.

  1. not sure about this one…

daniel

15 Jan 2011, 16:18
#2290
rebelman avatar

rebelman

New Zenner

Join Date:
Nov 2010
Posts:
53
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

HI Jostar,

  1. look at 'includes/classes/zen_lightbox/options.php'
    it seems that your code on line 23 got changed to this:

echo '"' . 'ZEN_LIGHTBOX_COUNTER_IMAGE' . ' {x} ' . 'ZEN_LIGHTBOX_COUNTER_OF' . ' {y}"';

> instead of this:
> ```php
echo '"' . ZEN_LIGHTBOX_COUNTER_IMAGE . ' {x} ' . ZEN_LIGHTBOX_COUNTER_OF . ' {y}"';

note the quotes around ZEN_LIGHTBOX_COUNTER_IMAGE, this changes it from a variable name to a string.

  1. not sure about this one…

daniel

Having same problem! I have checked the options.php file and it correct as shown above i.e.

echo '"' . ZEN_LIGHTBOX_COUNTER_IMAGE . ' {x} ' . ZEN_LIGHTBOX_COUNTER_OF . ' {y}"';

Ideally I would like this to read Image 1 of x etc. I have tried to change Display Image Counter in ADMIN>CONFIGURATION > ZEN LIGHTBOX to FALSE but the text still shows...Any ideas?

15 Jan 2011, 16:28
#2291
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

rebelman:

Having same problem! I have checked the options.php file and it correct as shown above i.e.

echo '"' . ZEN_LIGHTBOX_COUNTER_IMAGE . ' {x} ' . ZEN_LIGHTBOX_COUNTER_OF . ' {y}"';

> 
> Ideally I would like this to read Image 1 of x etc.  I have tried to change Display Image Counter in ADMIN>CONFIGURATION > ZEN LIGHTBOX to FALSE but the text still shows...Any ideas?

Hi Rebelman & Jostar,
I looked back at the files I uploaded to the addons page and for some reason one file got omitted.
There should be and extra file in:
includes/languages/english/extra_definitions/[your_theme]

Here is a link to download it:
[http://goo.gl/spdTL](http://goo.gl/spdTL)

Let me know if that fixes things for you.
I'm getting a ZL 1.6.1 ready, but I'd like to get as many things taken care of as possible.

Daniel
15 Jan 2011, 18:22
#2292
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Rebelman & Jostar,
I looked back at the files I uploaded to the addons page and for some reason one file got omitted.
There should be and extra file in:
includes/languages/english/extra_definitions/[your_theme]
Daniel

Daniel, now I'm confused, this file (zen_lightbox.php) was/is present in 1.6b2, and my install of 1.6b2 has always showed 'image 1 of 2" etc. just fine. Am I not understanding something about this most recent post of yours?

15 Jan 2011, 18:27
#2293
rebelman avatar

rebelman

New Zenner

Join Date:
Nov 2010
Posts:
53
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Rebelman & Jostar,
I looked back at the files I uploaded to the addons page and for some reason one file got omitted.
There should be and extra file in:
includes/languages/english/extra_definitions/[your_theme]

Here is a link to download it:
http://goo.gl/spdTL

Let me know if that fixes things for you.
I'm getting a ZL 1.6.1 ready, but I'd like to get as many things taken care of as possible.

Daniel

Cheers Daniel, its working perfectily now :smile:

15 Jan 2011, 18:28
#2294
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

ahhhh, it's missing from 1.6. You posted a link a few days ago in this thread for the download to 1.6b2. You should really at least get 1.6b2 to the ZC downloads page because everyone who is currently downloading and installing 1.6 from the downloads page is going to be needing this file, create lots of headaches for them, and you ..
:smile:

15 Jan 2011, 21:21
#2295
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

finlander:

ahhhh, it's missing from 1.6. You posted a link a few days ago in this thread for the download to 1.6b2. You should really at least get 1.6b2 to the ZC downloads page because everyone who is currently downloading and installing 1.6 from the downloads page is going to be needing this file, create lots of headaches for them, and you ..
:smile:

Its updated as 1.6.1 now.

daniel

17 Jan 2011, 12:37
#2296
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Daniel,

You may have realized this already, but it just dawned on me.

Close on Image Click may not be compatible with the new version of Zen LB, if you were thinking about working on it, because of the new Prev Next clicking style (half-page clicks when additional images exist).

17 Jan 2011, 14:58
#2297
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

finlander:

Daniel,

You may have realized this already, but it just dawned on me.

Close on Image Click may not be compatible with the new version of Zen LB, if you were thinking about working on it, because of the new Prev Next clicking style (half-page clicks when additional images exist).

I hadn't really though about it yet, but yeah that makes sense!

18 Jan 2011, 02:15
#2298
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

well i just installed a new zen cart 1.3.9h for a person and then did lightbox (1.1.5) and IH2 (also the previous version not the brand new one).

When testing hers works great, click image get pop up -- click product page topper image and it opens into lightbox>next/ prev buttons work flawless and when click image or overlay it closes the image

same set up on my store--fantasies realm.com but the overlay click closes the image NOT so with the click on image and both are set to true in admin

so will give this updated version a shot and hope it comes back...

It would be great---unless I don't see where it is--to have a spot to announce the updated add-ons when they get posted.

Thanks for mentioning it here though.

18 Jan 2011, 05:23
#2299
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

1.6.0 of LB that was released a couple weeks ago did not contain the code for closing LB when Click Overlay or Click Image. Daniel added the code for Click on Overlay close to another release which he called 1.6.1, and there was a link to it a page back or so in here, but Click on Image close is still up in the air because it may conflict with the new style of Prev Next buttons (half pages to click for Next or Prev).

Yes, admin controls are the same, so with 1.6.1 you will have functional Click Overlay close but Click Image close is dead for the time being.

We were actually just talking about this in the post before your post.. :smile:

18 Jan 2011, 07:29
#2300
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

@finlander:

ok, the one I downloaded from the mod area is 1.6.1 I have not had a chance to upload the file to see if it works or not...still no idea why my store stopped with the click on image close but it works on the brand new store i just installed...lol

well if weird is going to happen it will happen to my store.

fortunately this is a minor issue with my LB at the moment...as long as they click the close button or the overlay then all is fine.

I love this mod and IH2