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

Zen Lightbox addon [Support Thread]

Views: 953,086

Results 2,621 to 2,640 of 3,722
5 Apr 2011, 9:07 PM
#2621
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Zen Lightbox addon [Support Thread]

I am also at a loss here. I have installed this mod on thousands of sites and never had this issue. The min file is great for compressing files & in the same manner it is easily disabled via admin. It is enabled an test site and all works fine. was enabled now disabled on client site and still no lightbox. I don't know.

6 Apr 2011, 5:55 AM
#2622
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

willy12:

I don't know if anyone noticed but the error "Fixed model number display error on product_reviews page" in Version 1.6 has not been fixed. does anyone know a fix on this, the help would be greatly appreciated.
That error on the review page looks pretty bad. I would look into it myself but I'm not very good with all the coding :(.
Thanks.

Hi Willy12,
I played around tonight and found a bit of code that you can remove to fix this error.
open [includes/templates/your-template/templates/tpl_modules_main_product_image.php]
scroll down to line 24 that starts:

document.write('<?php echo '

and about half way down the line of code remove this

title="' . addslashes($products_name) . '"

once you remove it, that section should look like this:

…LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" >' . zen_image…

this line pulls the product name from ZCs core files and there is some extra css in there that throwing it off.

let me know if that helps you.

daniel

7 Apr 2011, 7:31 AM
#2623
thec0wboy avatar

thec0wboy

New Zenner

Join Date:
Mar 2011
Posts:
34
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hello Everyone.

I'm a very new user to Zencart, but after reading what lightbox can do, I thought it sounded great and decided to download the file.

I fear I may have completely installed both lightbox & imagehandler incorrectly.

First problem. The readme instructions ask me to rename some files. Problem is I don't know what my "template" is anymore! I have both cherry_zen and Cherry Zen 1.8 showing up in my files. Is there any way to determine which I'm actually using?

  1. When I upload the includes & image folder to my server, do the files need to go directly into the zencart folder on my server? I initially had dropped them into the zencart folder itself, but wasn't sure if that was wrong.

  2. Although I can see that lightbox is somewhat working on my website, there are glitches?

Lastly, If someone could please explain how I can use lightbox to create some sort of an image gallery it would be greatly appreciated.

Please forgive me for so many seemingly 'silly' questions, but I'm really that new to all of this! I did backup my site before starting, so hopefully I haven't gone and screwed anything up.

Thanks again!

:smile:

7 Apr 2011, 8:32 AM
#2624
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

thec0wboy:

Hello Everyone.

I'm a very new user to Zencart, but after reading what lightbox can do, I thought it sounded great and decided to download the file.

I fear I may have completely installed both lightbox & imagehandler incorrectly.

First problem. The readme instructions ask me to rename some files. Problem is I don't know what my "template" is anymore! I have both cherry_zen and Cherry Zen 1.8 showing up in my files. Is there any way to determine which I'm actually using?

in admin go to the tools tab and choose template manager?? something like that, it will show you the template you are currently using

goint to the link I saw nothing using image handler at all neither when i clicked on one of the category links there...after uploading did you go to admin and install it---tools/image handler 2?

  1. When I upload the includes & image folder to my server, do the files need to go directly into the zencart folder on my server?now anytime you upload files from any mod you are uploading the entire folder---that will overwrite your original folder. You open up the folder on your desktop and grab the files in it...upload those to the exact same path as your computer folder has them

like the includes may have a classes folder inside, then you grab the contents of that classes fodler and put them on your server in the exact same folder includes/classes/put your files in there

hope that did not confuse you more---I am best at confusion

I initially had dropped them into the zencart folder itself, but wasn't sure if that was wrong.you probably want to put them into the images folder---if you have your store files loose then yes but if you hae your store file iin another fodler then they will go into it like store/images you will se it right above the includes folder

  1. Although I can see that lightbox is somewhat working on my website, there are glitches?

There is a code in the readme tht you can add to your ez-pages where you add the image so you can get the lightbox effect there, I think.
Lastly, If someone could please explain how I can use lightbox to create some sort of an image gallery it would be greatly appreciated.

Please forgive me for so many seemingly 'silly' questions, but I'm really that new to all of this! I did backup my site before starting, so hopefully I haven't gone and screwed anything up.

Thanks again!

:smile:the best thing you did was backup the store before doing anything...yay you. Keep that up and anytime you get worse problems you will be able to revert back should there not be a fix.

7 Apr 2011, 2:23 PM
#2625
thec0wboy avatar

thec0wboy

New Zenner

Join Date:
Mar 2011
Posts:
34
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks for the reply :)

I have figured out which template I'm using now which is great.

As for the ez pages. The read-me file mentions that it should work as soon as it's installed?

"EZ-Pages

By default the lightbox effect will be applied to all links that point to images on your EZ-Pages. This functionality can easily be modified via the admin."

So I simply pasted the link to an image on my website in the ez pages area;

<img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg">

I was hoping that the image in the ez page would magically get the lightbox qualities, but no such luck.

What am I missing?

Although the images on the product page do have the lightobox attributes, the box size has gone wacky on me. The words "larger image" has shifted down, and it isn't centered anymore either?

Help :D

7 Apr 2011, 3:37 PM
#2626
scriptjunkie avatar

scriptjunkie

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

thec0wboy:

Thanks for the reply :)

I have figured out which template I'm using now which is great.

As for the ez pages. The read-me file mentions that it should work as soon as it's installed?

"EZ-Pages

By default the lightbox effect will be applied to all links that point to images on your EZ-Pages. This functionality can easily be modified via the admin."

So I simply pasted the link to an image on my website in the ez pages area;

<img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg">

I was hoping that the image in the ez page would magically get the lightbox qualities, but no such luck.

What am I missing?

Although the images on the product page do have the lightobox attributes, the box size has gone wacky on me. The words "larger image" has shifted down, and it isn't centered anymore either?

Help :D

EZ page functionality doesn't work immediately on install, Daniel is working on fixing that in the next release. In the meantime, here's a work-around:

instead of

<img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg">
```try this

<a href="images/161520.jpg" rel="lightbox"><img src="images/161520.jpg"></a>


instead of 
<img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg"> ```try this: ``` <a href="http://www.beautifulexpressions.hwyman.com/images/161520.jpg" rel="lightbox"><img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg"></a> ``` Regarding your issue with the product image and the "larger image" text being wacky, I'm not sure I can help you with that. Sounds like the template/display is being thrown off by a conflict between the actual image size vs. the image size set in your image settings....
7 Apr 2011, 3:46 PM
#2627
thec0wboy avatar

thec0wboy

New Zenner

Join Date:
Mar 2011
Posts:
34
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thank you ScriptJunkie,

You're a scholar and a saint :)

The last method you described appears to have worked. I kind of thought that when I clicked on the image, it would expand to a larger one though. It seems like when I click on the pictures now they show up smaller? Any clue where I can change this setting, or does it simply have to do with the original size of the uploaded picture?

Essentially I'd like to have small previews that they can click on and then see the larger image.

I'd also love to make a gallery where they can scroll thru the pictures. Can anyone point me in the right direction on this?

Thanks again :) Zencart forums are fantastic! :clap:

7 Apr 2011, 5:15 PM
#2628
scriptjunkie avatar

scriptjunkie

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

thec0wboy:

Thank you ScriptJunkie,

You're a scholar and a saint :)

The last method you described appears to have worked. I kind of thought that when I clicked on the image, it would expand to a larger one though. It seems like when I click on the pictures now they show up smaller? Any clue where I can change this setting, or does it simply have to do with the original size of the uploaded picture?

Essentially I'd like to have small previews that they can click on and then see the larger image.

I'd also love to make a gallery where they can scroll thru the pictures. Can anyone point me in the right direction on this?

Thanks again :) Zencart forums are fantastic!

Thank you, but I can't take credit :) I just recall having read somewhere on the thread another person had that issue, so I searched for it until I found the solution is all :)

Re: Gallery....check Admin>Configuration>Zen Lightbox> Include Main Image in Gallery - should be set to "true"

Also, you need to follow the image file naming protocol for zen cart. For example:

Main Image: flower.jpg
Additional product images: flower_01.jpg, flower_02.jpg, etc

Re: Lightbox making images smaller instead of larger - you're absolutely right - it should make them larger than the main product image.

Assuming you're not also using any other image modifying addons, There are a few ways to accomplish this.

**Method 1: **

Change

<a  href="http://www.beautifulexpressions.hwyman.com/images/161520.jpg"  rel="lightbox"><img  src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg"></a>
```to

<a href="http://www.beautifulexpressions.hwyman.com/images/161520.jpg" rel="lightbox"><img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg" width="125" height="125"></a>


Naturally, you'll adjust the width and height size to whatever size you want your thumbnails to be...I just put in 125 and 125 as an example.
**

Method 2**

Another way to accomplish this is to use the zen cart image size folders and suffixes. [Tutorial](https://www.zen-cart.com/tutorials/index.php?article=58)

For example, let's say you want thumbnails on the ez page to be 125z125...you take your image (already sized to 125z125) and name it myImage_MED.jpg and put it in the images/medium folder.  Then let's say you want the larger image for the lightbox to be 600x600. You take your image (already sized to 600x600) and name it myImage_LRG.jpg and put it in your images/large folder.

Then, you would write your URL for the ez page like this:

<a href="http://www.beautifulexpressions.hwyman.com/images/large/myImage (or in your case161520).jpg" rel="lightbox"><img src="http://www.beautifulexpressions.hwyman.com/images/medium/myImage (or in your case161520).jpg"></a>

**Method 3**

Lastly, IMHO, the **best** way to accomplish this is to also install ImageHandler2, because this allows you to use one size image per product (plus any additional images like image_01, image_02, etc). You take the largest image you have for a product (the one you want in the lightbox), and simply upload it to the main images folder. Then use the settings in the IH2 mod to resize the images for you. This way, you don't have to manually create three different sized images per product (large for the light box, medium for your thumbnails and main product image, and small for sideboxes, etc).

If you install IH2, then the first method I gave you (the one that now incorrectly returns smaller images in the light box rather than larger images) will work correctly. 

Hope this helps :)
8 Apr 2011, 1:29 AM
#2629
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

thec0wboy:

Thanks for the reply :)

I have figured out which template I'm using now which is great.

As for the ez pages. The read-me file mentions that it should work as soon as it's installed?

"EZ-Pages

By default the lightbox effect will be applied to all links that point to images on your EZ-Pages. This functionality can easily be modified via the admin."

So I simply pasted the link to an image on my website in the ez pages area;

<img src="http://www.beautifulexpressions.hwyman.com/images/161520.jpg">

I was hoping that the image in the ez page would magically get the lightbox qualities, but no such luck.

What am I missing?

Although the images on the product page do have the lightobox attributes, the box size has gone wacky on me. The words "larger image" has shifted down, and it isn't centered anymore either?

Help :D

ok, I don't think that would make a difference of how the image was added---either html or by the html editor you have in the store...I usually add the images to other pages with the editor and just click the button

but i thought somewhere on that read me it said to use this...cause it is supposed to be built in but it does not seem to work:

<a rel="lightbox" href=http://www.beautifulexpressions.hwyman.com/images/161520.jpg><image width="375" vspace="10" height="164" border="0" align="left" src=http://www.beautifulexpressions.hwyman.com/images/161520.jpg"></a>

that should get you the image--sized and where you want it to be--left, right, center and the lightbox. Just remember to adjust the width, height and align to suit your needs

10 Apr 2011, 1:54 AM
#2630
rugersmum avatar

rugersmum

New Zenner

Join Date:
Mar 2011
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi Just installed this on my test site and when I have secondary images should it show next and prev buttons ??

It shows that the main image is 1of2 but no way to see next image is there some other process I need to do to activate this>>
test site link
http://happy-cutters.com/catalog/index.php?main_page=product_info&cPath=1_7&products_id=3
thanks

10 Apr 2011, 1:58 AM
#2631
rugersmum avatar

rugersmum

New Zenner

Join Date:
Mar 2011
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

rugersmum:

Hi Just installed this on my test site and when I have secondary images should it show next and prev buttons ??

It shows that the main image is 1of2 but no way to see next image is there some other process I need to do to activate this>>
test site link
http://happy-cutters.com/catalog/index.php?main_page=product_info&cPath=1_7&products_id=3
thanks

DOH worked it out the next button only appears when you hover on image and is not visible on load

10 Apr 2011, 4:07 AM
#2632
rugersmum avatar

rugersmum

New Zenner

Join Date:
Mar 2011
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

mmm re my above post i gave had a few comments on this and mainly that it would be better if the next buttons were fixed and not on hover cant this be achieved???
thanks

11 Apr 2011, 12:01 AM
#2633
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rugersmum:

mmm re my above post i gave had a few comments on this and mainly that it would be better if the next buttons were fixed and not on hover cant this be achieved???
thanks

Admin > Configuration > Zen Lightbox > Always show Prev / Next > True

11 Apr 2011, 12:40 PM
#2634
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

I have installed zen lightbox 1.6.2 on 139h localhost without problem except for the layout of the lightbox.

As it stands, the issue is:
the Next and Prev buttons are located at the top of the lightbox but partly overlay/obscure the image;
multi-worded image titles and the "image x of y" both wrap without extending across the full width of the image, especially with relatively narrow images;
the Close X button is located immediately below right of the image and seems to be the cause of the wrap.

The prefered layout, from top to bottom, is:
image
image title
"image x of y"
Next, Prev, Close X.

where
multi-worded image titles and "image x of y" both extend across the full width of the image before wrapping;
the Next and Prev and Close X buttons all lie on one line at the bottom of the lightbox.

After spending many hours trying to achieve this layout, mostly toying with the css, I would appreciate some help, if not a solution.

Thanks in advance.

11 Apr 2011, 12:47 PM
#2635
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Zen Lightbox addon [Support Thread]

ignore this post

11 Apr 2011, 7:14 PM
#2636
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I'm seeing this in the source code on the success page after submitting a review.

It is in the link to the larger image, or the zen_lightbox and to the left of the image but part of the whole link.

[product_number]">

It is obviously written wrong, (see code after blank line space below) but where would I edit this and should I? All my files match the stock files, according to winmerge

<script language="javascript" type="text/javascript"><!--
document.write('<a href="images/large/STS-CKC001_LRG.jpg" rel="lightbox-g" title="Deluxe Cart<br /><span class=\"smallText\">[STS-CKC001]

</span>">

<img src="images/medium/STS-CKC001_MED.jpg" alt="Deluxe Cart [STS-CKC001]" title=" Deluxe Cart [STS-CKC001] " width="240" height="240" /><br /><span class="imgLink">larger image</span></a>');
//--></script>
11 Apr 2011, 7:35 PM
#2637
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I'm sorry...i dont' mean that it is obviously written wrong...but the "> looks out of place to me.

i took zen lightbox off a test sight and the problem went away.

the only changes I did to the lightbox were to remove two letters from a bracket of code, can't recall why from a post here, from slimbox.php ```
;w([I,d,g,G]).hide()}function

11 Apr 2011, 8:05 PM
#2638
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

OK...just re downloaded new files and re installed everything and it is still happening:

here is a screen shot.

11 Apr 2011, 9:06 PM
#2639
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

athena:

I'm seeing this in the source code on the success page after submitting a review.

It is in the link to the larger image, or the zen_lightbox and to the left of the image but part of the whole link.

[product_number]">

> 
> It is obviously written wrong, (see code after blank line space below) but where would I edit this and should I? All my files match the stock files, according to winmerge
> 
> ```
<script language="javascript" type="text/javascript"><!--
document.write('<a href="images/large/STS-CKC001_LRG.jpg" rel="lightbox-g" title="Deluxe Cart<br /><span class=\"smallText\">[STS-CKC001]

</span>">

<img src="images/medium/STS-CKC001_MED.jpg" alt="Deluxe Cart [STS-CKC001]" title=" Deluxe Cart [STS-CKC001] " width="240" height="240" /><br /><span class="imgLink">larger image</span></a>');
//--></script>

Hi Athena,
Willy12 mentioned this same problem just a few days ago. looking at the forum after he mentioned it, its been a problem since the beginning.

the solution I came up with is found here:
http://www.zen-cart.com/forum/showpost.php?p=1014722&postcount=2630

daniel

11 Apr 2011, 9:13 PM
#2640
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

thank you so much...i just implemented your post while you were posting and it WORKS!

hours and hours....i don't mean to sound ungrateful but that is a lot of time on some known error. installing this mod and un installing it on two sites all day...what a wast of time....

just did not know what to search for...tried different things with snippets of the code...and I'm reading through so many mod threads it is hard to keep track of what i know or don't know....

thanks again...

I do stand in awe that any of you take these mod designs on.....i've been at zencart for many years and have learned a lot...but still have to be on my guard about versions of pages used to make them vs my current version etc....lots to consider for a novice coder.