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

Zen Lightbox addon [Support Thread]

Views: 952,667

Results 3,361 to 3,380 of 3,722
19 Apr 2013, 11:17
#3361
ropey avatar

ropey

New Zenner

Join Date:
Oct 2006
Posts:
87
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

Sorry - that last post should say 'I've tried running the version 1.5 one'....

RoPey

19 Apr 2013, 12:39
#3362
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

I came into the project later than 1.4, so I'm not really familiar with it, but I looked at the install.txt file and it has some delete functionality built in, BUT it reinstalls itself right away.

Try running just this top part:

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Zen Lightbox';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;

19 Apr 2013, 13:15
#3363
ropey avatar

ropey

New Zenner

Join Date:
Oct 2006
Posts:
87
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

That seems to have done something - I have to confess I'm unsure what. However, it came back with:

Query Results:
SET @t4=0; SELECT (@t4:=configuration_group_id) as t4 FROM zen_configuration_group WHERE configuration_group_title= 'Zen Lightbox'; DELETE FROM zen_configuration WHERE configuration_group_id = @t4; DELETE FROM zen_configuration_group WHERE configuration_group_id = @t4; Can you help me understand what that has done? ​Thank you so much for the reply!
19 Apr 2013, 14:06
#3364
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]

RoPey:

That seems to have done something - I have to confess I'm unsure what. However, it came back with:

Query Results: |

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 FROM zen_configuration_group WHERE configuration_group_title= 'Zen Lightbox';
DELETE FROM zen_configuration WHERE configuration_group_id = @t4;
DELETE FROM zen_configuration_group WHERE configuration_group_id = @t4;

Can you help me understand what that has done?

​Thank you so much for the reply! |

It removes the lightbox configuration group table and configuration table entries. (the ones that drive the Zen Lightbox admin menu)

16 May 2013, 12:03
#3365
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]

FYI

Revisiting how to move the Prev/Next buttons clear above image and then restore truncated bottom of image within the popup, as first raised for v1.6.2 in http://www.zen-cart.com/forum/showpost.php?p=1038194&postcount=2791, I made the following changes in stylesheet_zen_lightbox.css for v1.6.4:

#lbImage {
	position: absolute;
	left: 0;
	top: 22px; /* was 0, may need to be increased to 32px to clear border thickness, if coloured differently. */
	border: 10px solid #fff; /* if desired */
	background-repeat: no-repeat;
	padding-bottom:12px; /* added to restore bottom of image */
	}

#lbPrevLink, #lbNextLink {
	display: block;
	position: absolute;
	top: -32px; /* 0 */ /* Note the minus sign */
	width: 50%;
	height:auto;
	outline: none;
	}


#lbCaption, #lbNumber {
	clear:both; /* added */
	text-align:center; /* added */
	}

Cheers

23 May 2013, 14:58
#3366
mrsdusty avatar

mrsdusty

New Zenner

Join Date:
Feb 2011
Posts:
12
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I have a installed of Zen Cart 1.5.1 and upgraded my database from v1.3.9d.

My old Zen Cart had several mod installed including Lightbox.

I installed the classic template and reset the layout boxes then installed IH4. Everything is fine at this point and I get no error logs.

I then transferred the zen_lightbox-v1.6.4_1.5 after remaining the appropriate folders and install the Sql patch using the facility on the Tools menu. At this point I get this error WARNING: An Error occurred, please refresh the page and try again.

I checked the DEBUG file and it starts with: PHP Fatal error: 1062uplicate entry 'ZEN_LIGHTBOX_STATUS' (I have attached the full file) Attachment #12538

The line it mentions 120 says this:
trigger_error($this->error_number . ':' . $this->error_text . ' :: ' . $this->zf_sql, E_USER_ERROR);

As far as I can see the result of this error is that the configuration menu is not showing the controls.

Does anyone know how I can fix this?

Sorry If this has already been answered but I haven't been able to find it and sorry if I have posted in the wrong forum most of the reply's to my post direct me to a different thread. :(

Thanks
Dawn

23 May 2013, 16:11
#3367
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]

MrsDusty:

I have a installed of Zen Cart 1.5.1 and upgraded my database from v1.3.9d.

My old Zen Cart had several mod installed including Lightbox.

I installed the classic template and reset the layout boxes then installed IH4. Everything is fine at this point and I get no error logs.

I then transferred the zen_lightbox-v1.6.4_1.5 after remaining the appropriate folders and install the Sql patch using the facility on the Tools menu. At this point I get this error WARNING: An Error occurred, please refresh the page and try again.

I checked the DEBUG file and it starts with: PHP Fatal error: 1062uplicate entry 'ZEN_LIGHTBOX_STATUS' (I have attached the full file) Attachment #12538

The line it mentions 120 says this:
trigger_error($this->error_number . ':' . $this->error_text . ' :: ' . $this->zf_sql, E_USER_ERROR);

As far as I can see the result of this error is that the configuration menu is not showing the controls.

Does anyone know how I can fix this?

Sorry If this has already been answered but I haven't been able to find it and sorry if I have posted in the wrong forum most of the reply's to my post direct me to a different thread. :(

Thanks
Dawn
Run the uninstall SQL and then try running the install SQL again..

13 Jul 2013, 08:08
#3368
beadingmad avatar

beadingmad

New Zenner

Join Date:
Jun 2013
Location:
United Kingdom
Posts:
8
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi All

Just installed zen lightbox 1.6xx and i am having an issue, where I have put images into different folders, it seems that zencart is not seeing the / to the correct directory for some of my products.

Example
http://www.beadingmadnow.com/index.php?main_page=product_info&cPath=49_22&products_id=183

Can someone point me to which piece of code that needs editing.

Many THanks

David

13 Jul 2013, 10:21
#3369
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

beadingmad:

Hi All

Just installed zen lightbox 1.6xx and i am having an issue, where I have put images into different folders, it seems that zencart is not seeing the / to the correct directory for some of my products.
What version of ZC are sing?

beadingmad:

Example
http://www.beadingmadnow.com/index.php?main_page=product_info&cPath=49_22&products_id=183
Server gives a 404 File not found error.

beadingmad:

Can someone point me to which piece of code that needs editing.

Many THanks

David
My guess is that there is something else going on with your base code. Lightbox pretty much just steps in during the picture presentation to put the identified picture on the screen, not to rename/recreate the path to it. May need to roll back to previous install, try reinstalling or checking those values again at the page(s).
May have had a bad upload (of a good download), so try to place the files on your server again taking note of the many discussions in the ZenCart forums about using a "good" ftp program. (At least one. That doesn't drop files as it uploads.)

13 Jul 2013, 18:53
#3370
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

beadingmad:

Hi All

Just installed zen lightbox 1.6xx and i am having an issue, where I have put images into different folders, it seems that zencart is not seeing the / to the correct directory for some of my products.

Example
http://www.beadingmadnow.com/index.php?main_page=product_info&cPath=49_22&products_id=183

Can someone point me to which piece of code that needs editing.

Many THanks

David

Your site is pretty but I think what is going on is this, the actual link to your images

yours: images/beads\D06478.jpg

should be: images/beads/D06478.jpg

If you change your link --- possibley when you added them to the individual product page description in admin --- the images may appear. When you entered the information, did you see them in the preview prior to finalizing?

13 Jul 2013, 19:01
#3371
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]

DarkAngel:

Your site is pretty but I think what is going on is this, the actual link to your images

yours: images/beads\D06478.jpg

should be: images/beads/D06478.jpg

If you change your link --- possibley when you added them to the individual product page description in admin --- the images may appear. When you entered the information, did you see them in the preview prior to finalizing?

This sounds like an issue with the configure.php file.. that's where the incorrect slash is probably coming from..

14 Jul 2013, 20:38
#3372
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

Your site is pretty but I think what is going on is this, the actual link to your images

yours: images/beads\D06478.jpg

should be: images/beads/D06478.jpg

If you change your link --- possibley when you added them to the individual product page description in admin --- the images may appear. When you entered the information, did you see them in the preview prior to finalizing?

Now there is no slash between the subdirectory beads and the filename. Unless there is some odd listing in the configure.php file it would seem that the issue is in the code (modified I'm sure) that builds the link for the user. I looked through other areas of the site, some have images not in the beads directory and those display properly; however, those in the beads directory do not have a properly created file path. It is because not all images are in the beads directory that I don't think the configure.php file is the problem.

As DarkAngel pointed out, a forwards slash that goes from lower left corner to upper right may be what is needed. (This is the key typically (on US keyboard) next to the lower right shift key and NOT the one above the enter/return key). My guess is if you switch back to the classic view, these links will probably be correctly shown (although some of the template dependent addons will not be), and you can compare template code to determine the error in your current template. That said, it seems like the errant location was found as I do not see the backwards slash as pointed out by the previous two reviewers. So whatever was done to remove the backslash, go back there and put in a forwards slash as described above.

20 Aug 2013, 12:02
#3373
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi there,

Im trying to get the lightbox to appear on the product listing pages.

I think I need to simply include the source of the image on the template files.

Can anyone help?

20 Aug 2013, 12:03
#3374
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I am wanting to show the lightbox on the product listing pages.

I think I only need to show the source on the product listing pages,

Anyone help me?

20 Aug 2013, 14:59
#3375
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

DannyVarley:

I am wanting to show the lightbox on the product listing pages.

I think I only need to show the source on the product listing pages,

Anyone help me?
Be glad to help, but I think if you provided more information then I or someone else could help you.

Looking at how Zen Lightbox operates on a site I manage (and without looking at the code changes of the addin), the only time the lightbox operation is activated is from the product page, so if you were to install the application per the authors instructions you would have what you need. If I am wrong and it is installed to activate under other areas of the site and that was not desired, then I would think that by not updating the applicable template areas then it would be limited down to just those modified.

20 Aug 2013, 17:57
#3376
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

in the zip includes/modules/pages/

there is the file that you put into the product info folder ( jscript_zen_lightbox.php ) ... just put that sme file into any other one you want the lightbox to work in like these:

popup_image
popup_image_additional
products_all
products_new

then you will have the lightbox working in there too.

I hope that is what you were asking about.

AND PLEASE try not to post so close together, to give us time in our REAL llife time to get in here to answer

20 Aug 2013, 21:56
#3377
ehsi avatar

ehsi

New Zenner

Join Date:
Aug 2013
Posts:
49
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Good day, Everybody,

I just installed Fual Slim Box and over it installed Zen Lightbox . The issue I have is that when I upload more than one image for a product I:

(a) do not have a gallery of images through which I can go in Zen Lightbox popup window (I suppose there must be arrows to the left and right to move left and right through my gallery); and
(b) have the same old default popup windows popping up when I click on those additional images for my product that are located below the main image of my product (I suppose they override the Zen Lightbox code somehow);

This issue only occurs when a product has more than one image since if there only one image for a product Zen Lightbox is triggered.

Thank you for you thoughts on how to fix this.

21 Aug 2013, 10:37
#3378
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

First of all im sorry about posting twice, something went a little strange and I couldn't find where to delete one of them! Ooops.

Okay so I better explain my problem a little better, basically I have already put the jscript in the folder for the product listing page and it does work on the main image of the product listing as you see here:

http://kitchenwarehouseltd.com/complete-kitchen-units/high-gloss/cream

the image of the door and unit you can click and open the lightbox. This is perfect.

The rest of the images dont, I think this is due to the way its coded, normally these images link to the product but I think for the lightbox to work they need to link to the image source?

So in /includes/modules/template/product_listing.php

I think

$lc_text ='<div class="product_image">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"');

Will need changing to incorporate the image source, But I dont know how :(

Danny

21 Aug 2013, 11:48
#3379
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

did you put the script in these folders also? I have mine in there and the additional images at the bottom go through the lightbox too.

popup_image
popup_image_additional
products_all
products_new

Well I am sorry but I thought those other images were additional ones, they don't seem to even open to a larger view.

Are they written into the product description?

DannyVarley:

First of all im sorry about posting twice, something went a little strange and I couldn't find where to delete one of them! Ooops.

Okay so I better explain my problem a little better, basically I have already put the jscript in the folder for the product listing page and it does work on the main image of the product listing as you see here:

http://kitchenwarehouseltd.com/complete-kitchen-units/high-gloss/cream

the image of the door and unit you can click and open the lightbox. This is perfect.

The rest of the images dont, I think this is due to the way its coded, normally these images link to the product but I think for the lightbox to work they need to link to the image source?

So in /includes/modules/template/product_listing.php

I think

$lc_text ='<div class="product_image">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"');

> 
> Will need changing to incorporate the image source, But I dont know how :(
> 
> Danny
21 Aug 2013, 12:28
#3380
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Nope, That isnt the product info page, that is the product listing page I have linked to. They are all products.

Normally they would go to an individual product page like normal zencart functionality. I am making the customers buy straight from the product listing page by removing the links,

The rest of the lightbox works fine on a normal product page like:
http://kitchenwarehouseltd.com/replacement-kitchen-doors/high-gloss/high-gloss-cream

You see the main image and additional images work on this page. Thats the product_info page.

I am trying to get the images to work on the product_listing page.

What im trying to say is that they are not additional images, they are actually products.
I hope Im making some sense :P

Daniel