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

Zen Lightbox addon [Support Thread]

Views: 953,064

Results 2,681 to 2,700 of 3,722
16 Apr 2011, 7:40 PM
#2681
divavocals avatar

divavocals

Totally Zenned

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

Zen Lightbox addon [Support Thread]

niestudio:

Hi DivaVocals,
I know you have posted this advice before, but it seems many people who try to run it in ZC admin run into problems. Do you think there is something missing from this install.sql file that makes it not play nice with ZC admin?

daniel
Yes.. If you try to UPLOAD the file you may experience errors.. But if you open the file and copy and paste the contents instead it will run with no problems..

16 Apr 2011, 8:25 PM
#2682
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

willy12:

Yes I did....I didn't skip one step, in fact it took some time to remove all the old files.....

Please feel free to visit my website and check it out www.aquafinatic.com. Once you are on the main page scroll down to the bottom where it says "Finatic Tailnews" on the big tab and click on it. You will see that there is a Compatability Chart and when you try to view the larger image the lightbox does not jump into effect.

Any ideas?......Thank you.

question about the chart

is it located within the body of the description and not as the main image like any other product should be?

if so then you have to add the bit of code for it when you post it in the description:

<a href="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" rel="lightbox"><<img width="375" vspace="10" height="164" border="0" align="left" src="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" ></a>

you of course change the size shown and alignment to your liking but this will give it thelightbox when clicked. You will also have to add the line to click image to view larger but doing it this way you just need the full grouwn image, thecoding will resize it to view prior to clicking for larger view.

I would also get into the habit of NOT using caps and spaces in the image names...like conpatibility_chart.jpg would be just right too

16 Apr 2011, 8:39 PM
#2683
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

Yes.. If you try to UPLOAD the file you may experience errors.. But if you open the file and copy and paste the contents instead it will run with no problems..

I had problems with zen admin sql installations before these last 2 LB updates. I tried importing it and would get errors, I tried copy/pasting and if it installed it was without the tables prefix---so I would have to add the prefix (posted about it too for others) then add in myphpadmin sql section for it to behave itself.

but now I did it thru store admin and it worked like a charm...but there are some that do not still so kind of hit and miss.

16 Apr 2011, 8:42 PM
#2684
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

question about the chart

is it located within the body of the description and not as the main image like any other product should be?

if so then you have to add the bit of code for it when you post it in the description:

you of course change the size shown and alignment to your liking but this will give it thelightbox when clicked. You will also have to add the line to click image to view larger but doing it this way you just need the full grouwn image, thecoding will resize it to view prior to clicking for larger view.

I would also get into the habit of NOT using caps and spaces in the image names...like conpatibility_chart.jpg would be just right too

the code had too many << in it here is the right one and it is for within body and expages:

<a href="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" rel="lightbox"><img width="375" vspace="10" height="164" border="0" align="left" src="http://aquafinatic.com/images/Compatibility Chart Mini.jpg"></a>
16 Apr 2011, 9:51 PM
#2685
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:

I would also get into the habit of NOT using caps and spaces in the image names...like conpatibility_chart.jpg would be just right tooCaps are fine in filenames. I use caps as a way to help make my filenames more readable for example: redTennisShoes.jpg

Spaces are the real no no..:no: Names of files used on a website should AVOID spaces.

16 Apr 2011, 10:43 PM
#2686
willy12 avatar

willy12

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

question about the chart

is it located within the body of the description and not as the main image like any other product should be?

if so then you have to add the bit of code for it when you post it in the description:

<a href="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" rel="lightbox"><<img width="375" vspace="10" height="164" border="0" align="left" src="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" ></a>

> 
> you of course change the size shown and alignment to your liking but this will give it thelightbox when clicked. You will also have to add the line to click image to view larger but doing it this way you just need the full grouwn image, thecoding will resize it to view prior to clicking for larger view.
> 
> I would also get into the habit of NOT using caps and spaces in the image names...like conpatibility_chart.jpg would be just right too

Dark Angel,

Thank you, it works!

Thanks for your time.
16 Apr 2011, 10:58 PM
#2687
willy12 avatar

willy12

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

the code had too many << in it here is the right one and it is for within body and expages:

<a href="http://aquafinatic.com/images/Compatibility Chart Mini.jpg" rel="lightbox"><img width="375" vspace="10" height="164" border="0" align="left" src="http://aquafinatic.com/images/Compatibility Chart Mini.jpg"></a>



Thank you.

I do have one more question....What code would I need to have the lightbox go from one image to the other on that same page, without having to view one image, close lightbox and click on the next image.
Is that possible?

Thanks.
17 Apr 2011, 1:05 PM
#2688
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

I think its the same problem as chrome and FF4, your ZLB site is not working in those browsers either.
try backing up and update to ZLB 1.6

Hi Dark Angel and Niestudio.

Many thanks for your help and advice. I've done what you said. ran the uninstall sql file and uninstalled my old ZLB.
However, neither the ZLB 1.6 install or upgrade sgl will work.
I get the error messages:

SQL-forespørgsel:

/** * 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 configuration_group
VALUES (

NULL , 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1'
);

MySQL returnerede:

#1046 - No database selected

OR

1146 Table 'purechocolate_IC_XXXXXXXXXXXXX.configuration_group' doesn't exist
in:
[/** * Zen Lightbox * * @author Daniel Hopkins (daniel [dot] niestudio [at] gmail [dot] com) * @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: upgrade.sql 2011-01-21 aclarke $ */ 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.

I've looked into my zen_configuration and found that the error might be there. I just don't know how to correct it. Have a look at the attached file. Thanks in advance.

Kim

17 Apr 2011, 2:16 PM
#2689
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]

We were just talking about this a few posts back yesterday..

DON'T run this script using phpMyAdmin.. Here's what I posted yesterday about installing this script.

DivaVocals:

The best way to avoid this error is to NOT run the install script via phpMyAdmin, but to open the install.sql file and copy/paste it into the form on the** Tools > Install SQL Patches from the shop admin.. This will properly add the table pre-fixes to the script as it runs.**

PUREchocolatetruffle:

Hi Dark Angel and Niestudio.

Many thanks for your help and advice. I've done what you said. ran the uninstall sql file and uninstalled my old ZLB.
However, neither the ZLB 1.6 install or upgrade sgl will work.
I get the error messages:

SQL-forespørgsel:

/** * 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 configuration_group
VALUES (

NULL , 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1'
);

MySQL returnerede:

#1046 - No database selected

OR

1146 Table 'purechocolate_IC_XXXXXXXXXXXXX.configuration_group' doesn't exist
in:
[/** * Zen Lightbox * * @author Daniel Hopkins (daniel [dot] niestudio [at] gmail [dot] com) * @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: upgrade.sql 2011-01-21 aclarke $ */ 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.

I've looked into my zen_configuration and found that the error might be there. I just don't know how to correct it. Have a look at the attached file. Thanks in advance.

Kim

17 Apr 2011, 3:20 PM
#2690
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DivaVocals, I do listen and that's what I did first. Only when it didn't work I went to PhPMyAdmin.
The only sql patch that works at the moment is the uninstall. There I don't get any error messages.

Kim

17 Apr 2011, 4:13 PM
#2691
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]

PUREchocolatetruffle:

DivaVocals, I do listen and that's what I did first. Only when it didn't work I went to PhPMyAdmin.
The only sql patch that works at the moment is the uninstall. There I don't get any error messages.

KimWhat error messages do you get when you run the install.sql?? (unmodified as it comes with ZLB)

17 Apr 2011, 5:23 PM
#2692
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

What error messages do you get when you run the install.sql?? (unmodified as it comes with ZLB)

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

Does it give any sense to you ? Not me :-(

Kim

17 Apr 2011, 6:26 PM
#2693
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]

PUREchocolatetruffle:

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

Does it give any sense to you ? Not me :-(

KimIt actually does.. you are missing a table according to the error message

18 Apr 2011, 5:39 AM
#2694
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

It actually does.. you are missing a table according to the error message

Hi PUREchocolatetruffle,
following up on DivaVocals earlier suggestion.
If you still have the original ZLB zip file you downloaded (if not then re-download it) unzip again it so you know you have a totally fresh install.sql file.
open install.sql in a text editor:
mac - TextEdit
windows - notepad

highlight all of the text in the file and then copy it.
go to the zen cart admin > tools > install sql patches

paste the contents of the install.sql file you copied here.
click send and cross your fingers

hopefully this will work for you.

18 Apr 2011, 3:10 PM
#2695
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]

dw08gm:

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.

Having spent more than a week on this without joy, I would be satisfied if the prev/next buttons would sit clear above the image, as they are currently obscuring vital parts at the top of numerous images.

While I was hoping for a simple css fix, I suspect the problem lies with the nesting of #lbPrevLink and #lbNextLink within #lbImage, but the code in includes/classes/ files is way beyond my comprehension.

Does anyone else have this problem?

Help much appreciated.

18 Apr 2011, 3:36 PM
#2696
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

dw08gm:

Having spent more than a week on this without joy, I would be satisfied if the prev/next buttons would sit clear above the image, as they are currently obscuring vital parts at the top of numerous images.

While I was hoping for a simple css fix, I suspect the problem lies with the nesting of #lbPrevLink and #lbNextLink within #lbImage, but the code in includes/classes/ files is way beyond my comprehension.

Does anyone else have this problem?

Help much appreciated.

thats the default behavior of lightbox from the beginning, not sure of an easy way to change it.
There is another box here in the addons called faul slimbox. you could give that one a try and see if it has a better layout for you.

18 Apr 2011, 3:57 PM
#2697
willy12 avatar

willy12

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

willy12:

Thank you.

I do have one more question....What code would I need to have the lightbox go from one image to the other on that same page, without having to view one image, close lightbox and click on the next image.
Is that possible?

Thanks.

Reply to post #2692

Hi Dark Angel,

Just wanted to ask again if there is such a thing of having the new lightbox show pictures one after the other, without having to close it each time (the same page you looked at before).It used to work with the old version, that's why I'm asking.

Thanks for your time.

18 Apr 2011, 3:59 PM
#2698
willy12 avatar

willy12

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Hi Dark Angel,

Just wanted to ask again if there is such a thing of having the new lightbox show pictures one after the other, without having to close it each time (the same page you looked at before, (not a regular product page)).It used to work with the old version, that's why I'm asking.

Thanks for your time.

18 Apr 2011, 4:00 PM
#2699
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

willy12:

Hi Dark Angel,

Just wanted to ask again if there is such a thing of having the new lightbox show pictures one after the other, without having to close it each time (the same page you looked at before).It used to work with the old version, that's why I'm asking.

Thanks for your time.

in the code, tryrel="lightbox-g" instead of ```
rel="lightbox"

18 Apr 2011, 4:23 PM
#2700
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]

niestudio:

in the code, tryrel="lightbox-g" instead of ```
rel="lightbox"


Does the "-g" refer to some kind of switch or another stylesheet. 

If a switch, are there other switches we should be aware of?

I have not seen a lightbox-g stylesheet.

Thanks