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

Zen Lightbox addon [Support Thread]

Views: 952,886

Results 1,881 to 1,900 of 3,722
3 Apr 2010, 3:44 AM
#1881
sweetjaime avatar

sweetjaime

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

DarkAngel:

make double sure you uploaded all the files...open both the zips folder and the server files and double check that each folder in the zip had its contents tossed into the exact same folder on the server

Yes, I have done that, but I am still having the problem. I had the problem with the image popups before I had lightbox installed.

3 Apr 2010, 6:38 AM
#1882
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

sweetjaime:

Yes, I have done that, but I am still having the problem. I had the problem with the image popups before I had lightbox installed.

trouble with popups...do you mean they do not show the little hover popup or that the main popup (the one that also is not working in lightbox) is the one giving you trouble.

what template are you using?

did you have any errors when installing either IH2 or lightbox?

3 Apr 2010, 4:06 PM
#1883
sweetjaime avatar

sweetjaime

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

trouble with popups...do you mean they do not show the little hover popup or that the main popup (the one that also is not working in lightbox) is the one giving you trouble.

what template are you using?

did you have any errors when installing either IH2 or lightbox?

No errors when installing either.
By popup I mean that when I click on an image, it opens large, so that the whole page is just white background, and the image, and you have to hit the back button on your browser to get back to the item description. This is rather than the larger view image popping up in a new window.
I am using the Modern Zen template.

3 Apr 2010, 6:29 PM
#1884
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

sweetjaime:

No errors when installing either.
By popup I mean that when I click on an image, it opens large, so that the whole page is just white background, and the image, and you have to hit the back button on your browser to get back to the item description. This is rather than the larger view image popping up in a new window.
I am using the Modern Zen template.

well shoot, and when you go to admin/tools/IH2 you see what you are supposed to see there...nothing missing or error messages....and can upload images right?

3 Apr 2010, 8:18 PM
#1885
sweetjaime avatar

sweetjaime

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

well shoot, and when you go to admin/tools/IH2 you see what you are supposed to see there...nothing missing or error messages....and can upload images right?

Yep - thats what has got me so confused! I have been using zen cart for years, had image handler working fine on my last site. Its been a year or so since then, and now when trying to build a new one - nada!
this is the site in question shop.bella-bijou.com

3 Apr 2010, 10:36 PM
#1886
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

sweetjaime:

Yep - thats what has got me so confused! I have been using zen cart for years, had image handler working fine on my last site. Its been a year or so since then, and now when trying to build a new one - nada!
this is the site in question shop.bella-bijou.com

The slimbox script is not loading into the header of your product page, thus no slimbox.

file in includes\modules\pages\document_product_info\jscript_zen_lightbox.php should call to includes\classes\zen_lightbox\autoload_default.php

The class file loads the slimbox script into the head of the product page... without the script, there is no slimbox.

That is I'm assuming you installed the newer version, older version does not have the class and loads the script from the first file.

4 Apr 2010, 3:50 PM
#1887
sweetjaime avatar

sweetjaime

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

well shoot, and when you go to admin/tools/IH2 you see what you are supposed to see there...nothing missing or error messages....and can upload images right?

davewest:

The slimbox script is not loading into the header of your product page, thus no slimbox.

file in includes\modules\pages\document_product_info\jscript_zen_lightbox.php should call to includes\classes\zen_lightbox\autoload_default.php

The class file loads the slimbox script into the head of the product page... without the script, there is no slimbox.

That is I'm assuming you installed the newer version, older version does not have the class and loads the script from the first file.

Forgive me, but I am not sure what you mean by slim box? I am not following what you mean when you say "should call too"

4 Apr 2010, 6:30 PM
#1888
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

sweetjaime:

Forgive me, but I am not sure what you mean by slim box? I am not following what you mean when you say "should call too"

The Slimbox code is what Zen Lightbox uses to create the lightbox effect. I don't use the IH2 code so don't know if it conflicts with MooTools core files or not....

In a nutshell, this code is not showing up in the header of your product page... ```

<script language="javascript" type="text/javascript"><!-- /* Slimbox v1.67 - The ultimate lightweight Lightbox clone (c) 2007-2008 Christophe Beyls <http://www.digitalia.be> MIT-style license. */ var Slimbox;(function(){var E=window,n=Browser.Engine.trident4,t,g,F=-1,v,D,u,x,L,r,m={},s=new Image(),J=new Image(),H,a,h,p,I,e,G,c,z,K,w,i,d,B;E.addEvent("domready",function(){$(document.body).adopt($$(H=new Element("div",{id:"lbOverlay"}).addEvent("click",C),a=new Element("div",{id:"lbCenter"}),G=new Element("div",{id:"lbBottomContainer"})).setStyle("display","none"));h=new Element("div",{id:"lbImage"}).injectInside(a).adopt(p=new Element("div"),I=new Element("a",{id:"lbPrevLink",href:"#",title:"Previous",styles:{"background":"transparent url(includes/templates/my_site/buttons/english/zen_lightbox/prevlabel.gif) no-repeat 0 top"}}).addEvent("click",A),e=new Element("a",{id:"lbNextLink",href:"#",title:"Next",styles:{"background":"transparent url(includes/templates/my_site/buttons/english/zen_lightbox/nextlabel.gif) no-repeat 100% top"}}).addEvent("click",f));c=new Element("div",{id:"lbBottom"}).injectInside(G).adopt(new Element("a",{id:"lbCloseLink",href:"#",title:"Close",styles:{"background":"transparent url(includes/templates/my_site/buttons/english/zen_lightbox/closelabel.gif) no-repeat center"}}).addEvent("click",C),z=new Element("div",{id:"lbCaption"}),K=new Element("div",{id:"lbNumber"}),new Element("div",{styles:{clear:"both"}}))});Slimbox={open:function(O,N,M){t=$extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M||{});w=new Fx.Tween(H,{property:"opacity",duration:t.overlayFadeDuration});i=new Fx.Morph(a,$extend({duration:t.resizeDuration,link:"chain"},t.resizeTransition?{transition:t.resizeTransition}:{}));d=new Fx.Tween(h,{property:"opacity",duration:t.imageFadeDuration,onComplete:j});B=new Fx.Tween(c,{property:"margin-top",duration:t.captionAnimationDuration});if(typeof O=="string"){O=[[O,N]];N=0}x=E.getScrollTop()+(E.getHeight()/2);L=t.initialWidth;r=t.initialHeight;a.setStyles({top:Math.max(0,x-(r/2)),width:L,height:r,marginLeft:-L/2,display:""});u=n||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(u){H.style.position="absolute"}w.set(0).start(t.overlayOpacity);y();l(1);g=O;t.loop=t.loop&&(g.length>1);return b(N)}};Element.implement({slimbox:function(M,N){$$(this).slimbox(M,N);return this}});Elements.implement({slimbox:function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;N.removeEvents("click").addEvent("click",function(){var Q=N.filter(O,this);return Slimbox.open(Q.map(P),Q.indexOf(this),M)});return N}});function y(){var M=E.getScroll(),N=E.getSize();$$(a,G).setStyle("left",M.x+(N.x/2));if(u){H.setStyles({left:M.x,top:M.y,width:N.x,height:N.y})}}function l(M){["object",n?"select":"embed"].forEach(function(O){Array.forEach(document.getElementsByTagName(O),function(P){if(M){P._slimbox=P.style.visibility}P.style.visibility=M?"hidden":P._slimbox})});H.style.display=M?"":"none";var N=M?"addEvent":"removeEvent";E[N]("scroll",y)[N]("resize",y);document[N]("keydown",o)}function o(N){var M=N.code;return t.closeKeys.contains(M)?C():t.nextKeys.contains(M)?f():t.previousKeys.contains(M)?A():false}function A(){return b(v)}function f(){return b(D)}function b(M){if(M>=0){F=M;v=(F||(t.loop?g.length:0))-1;D=((F+1)%g.length)||(t.loop?0:-1);q();a.className="lbLoading";m=new Image();m.onload=k;m.src=g[M][0]}return false}function k(){a.className="";d.set(0);h.setStyles({backgroundImage:"url("+m.src+")",display:""});p.setStyle("width",m.width);$$(p,I,e).setStyle("height",m.height);z.set("html",g[F][1]||"");K.set("html",(((g.length>1)&&t.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,g.length));if(v>=0){s.src=g[v][0]}if(D>=0){J.src=g[D][0]}L=h.offsetWidth;r=h.offsetHeight;var N=Math.max(0,x-(r/2)),M;if(a.clientHeight!=r){i.start({height:r,top:N})}if(a.clientWidth!=L){i.start({width:L,marginLeft:-L/2})}M=function(){G.setStyles({width:L,top:N+r,marginLeft:-L/2,visibility:"hidden",display:""});d.start(1)};if(i.check(M)){M()}}function j(){if(v>=0){I.style.display=""}if(D>=0){e.style.display=""}B.set(-c.offsetHeight).start(0);G.style.visibility=""}function q(){m.onload=$empty;m.src=s.src=J.src="";i.cancel();d.cancel();B.cancel();$$(I,e,h,G).setStyle("display","none")}function C(){if(F>=0){q();F=v=D=-1;a.style.display="none";w.cancel().chain(l).start(0)}return false}})(); /* Zen Lightbox v1.5 2008-12-18 */ Slimbox.scanPage = function() { $$(document.links).filter(function(el) { return el.rel && el.rel.test(/^lightbox/i); }).slimbox({overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }; window.addEvent("domready", Slimbox.scanPage); //--></script>

Until this code shows up on your product page, you wont get an lightbox effect.  I use Zen Lightbox on my site as will, MooTools can be used for other things.
4 Apr 2010, 11:52 PM
#1889
eggmedia avatar

eggmedia

New Zenner

Join Date:
Jun 2005
Posts:
11
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I am using Cherry Zen and the latest version of ZenCart for my store at http://williamsstore.com/market Lightbox works fine for second or later images, but the first one still displays as a regular pop-up box. Any suggestions are appreciated!

5 Apr 2010, 5:23 PM
#1890
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

eggmedia:

I am using Cherry Zen and the latest version of ZenCart for my store at http://williamsstore.com/market Lightbox works fine for second or later images, but the first one still displays as a regular pop-up box. Any suggestions are appreciated!

by the looks of it you have both IH2 and lightbox installed...yet I see no pop up image when viewing the small ones and each one i clicked on gave me NO lightbox effect at all.

are you sure you uploaded the files to the correct places?

5 Apr 2010, 10:11 PM
#1891
brimsjewelry avatar

brimsjewelry

Zen Follower

Join Date:
May 2006
Posts:
188
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi,

Using Zen Cart 1.3.8 and would like to install Zen Lightbox. When I run the install script by pasting the script in the box and clicking run I get the following error:

1146 Table 'selectge_znc1.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]

Consequently Lightbox does not work. Can anyone tell me what I need to to?

thanks,

Jason

6 Apr 2010, 3:12 AM
#1892
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

brimsjewelry:

Hi,

Using Zen Cart 1.3.8 and would like to install Zen Lightbox. When I run the install script by pasting the script in the box and clicking run I get the following error:

1146 Table 'selectge_znc1.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]

Consequently Lightbox does not work. Can anyone tell me what I need to to?

thanks,

Jason

please go to the database in myadminphp and look at the tables. make sure that the prefix is: selectge_znc1

NOT the databases name but the prefix just before each and every individual table there...send a screenshot of the database tables please.

6 Apr 2010, 8:08 AM
#1893
bimo_in_bali avatar

bimo_in_bali

New Zenner

Join Date:
Jan 2009
Location:
Earth
Posts:
36
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi, anyone can help me?
After installing Zen Light box, my image in 'product info' expanding down and creating a wider space between image and 'large image text'.

I don't know if it's normal?
or how to modify this, so that the 'larger image"text within a right spot and the shadow of image is around image without extra space.

Thanks in advance
Bimo

6 Apr 2010, 9:41 AM
#1894
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

albertwigs:

I agree with each and every conversation regarding Zen Cart techniques.Cool contribution. But one more question - I saw next and previous buttons in images folder. Will they be implemented in the next version to browse through all images of the product?I want to know some more consideration regarding product.

those are for the gallery mode of lightbox. when the larger image is viewed and if there are additional images then the person can click the next or prev buttons to see the others...mine has never worked, not even with image handler...lol

6 Apr 2010, 1:41 PM
#1895
technoswift avatar

technoswift

New Zenner

Join Date:
Mar 2010
Posts:
1
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

i installed the lightbox correctly, but on clicking the images the image open in a full window,
https://www.baanallc.com
:oops:

6 Apr 2010, 2:23 PM
#1896
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
460
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi All,

I have just installed Zen Lightbox on a Fresh install of Zen-Cart 1.3.8a.
I kept getting CGI Configuration Error Everyone seems to be having and No one seems to know how to fix it!!
When I go to configuration/zen lightbox, it's there but there is nothing showing up in it?

After a lot of Trials & Errors, I figured out the easy fix/solution, it worked for me so I'm sure it should work for most of you.

ALL I did was ADD (zen_) to the line below, I will make it Bold so you see where it went:

SELECT @cgi := configuration_group_id FROM **zen_**configuration_group WHERE configuration_group_title = 'Zen Lightbox';

That's it, Before you install Zen Lightbox, change that code in the SQL before installing and you won't get any errors!

Always backup your database through PHPMyAdmin as you should Always have the latest backup copy just incase, that's how I managed to solve this through Trial & Error without too much trouble!

I am not sure why it hasn't been added to the actual Contribution as it would save a LOT of people a lot of headaches!

If the above worked for you, give me a shout so I know :)

Best Regards,
(rlexyd)

6 Apr 2010, 6:34 PM
#1897
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

technoswift:

i installed the lightbox correctly, but on clicking the images the image open in a full window,
www.baanallc.com
:oops:

first off you need to go to your server files (c-panel) and set the configuration files permissions:

Warning: I am able to write to the configuration file: /home/pic13687/public_html/baanallc.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance. See this FAQ

2nd, double check to make sure you do have the files in the proper places...including the template folders you needed to create.

6 Apr 2010, 6:39 PM
#1898
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 is one of the places it needs to be added if you have a prefix for your tables. Back further in this thread is the actual places with the words in red and also if it will not install through the admin section then going to the actual database/sql tab will allow the installation.

Although it has been noted several times before this is good you did it again to keep it fresh for the noobs---the red part being the actual prefix of the database

This is the first part of the SQL installer:

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''), '),

rlexyd:

Hi All,

I have just installed Zen Lightbox on a Fresh install of Zen-Cart 1.3.8a.
I kept getting CGI Configuration Error Everyone seems to be having and No one seems to know how to fix it!!
When I go to configuration/zen lightbox, it's there but there is nothing showing up in it?

After a lot of Trials & Errors, I figured out the easy fix/solution, it worked for me so I'm sure it should work for most of you.

ALL I did was ADD (zen_) to the line below, I will make it Bold so you see where it went:

SELECT @cgi := configuration_group_id FROM **zen_**configuration_group WHERE configuration_group_title = 'Zen Lightbox';

That's it, Before you install Zen Lightbox, change that code in the SQL before installing and you won't get any errors!

Always backup your database through PHPMyAdmin as you should Always have the latest backup copy just incase, that's how I managed to solve this through Trial & Error without too much trouble!

I am not sure why it hasn't been added to the actual Contribution as it would save a LOT of people a lot of headaches!

If the above worked for you, give me a shout so I know :)

Best Regards,
(rlexyd)

6 Apr 2010, 11:51 PM
#1899
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
460
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi DarkAngel,

Thank you for your reply :)

I found the previous post which you made the (zen_) in Red colour to show what needs to be changed, However the problem is I did as you said and it didn't install properly!

The only way I could get it to Install FLAWLESSLY and Got it to WORK 100% is by only adding one (zen_) to only one line which is shown below...

SELECT @cgi := configuration_group_id FROM **zen_**configuration_group WHERE configuration_group_title = 'Zen Lightbox';

So if the above worked 100%, I think it is safe that nothing else is needed since it is working the way it should and I see all the required links in configuration/zen lightbox.

Am I correct or do you think otherwise?

Please advise.

Best Regards,

7 Apr 2010, 12:45 AM
#1900
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

rlexyd:

which is shown below...

SELECT @cgi := configuration_group_id FROM **zen_**configuration_group WHERE configuration_group_title = 'Zen Lightbox';

So if the above worked 100%, I think it is safe that nothing else is needed since it is working the way it should and I see all the required links in configuration/zen lightbox.

Am I correct or do you think otherwise?

Please advise.

Best Regards,

this is the weirdest add on i have seen and trust me i have installed severa shops with it and sometimes have a problem with it installing...

i would just keep an eye on it. you got no error messages and all the controls are there and allowing you to set it to your liking so that is what counts.