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

Zen Lightbox addon [Support Thread]

Views: 953,086

Results 2,601 to 2,620 of 3,722
3 Apr 2011, 3:12 PM
#2601
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

as suspected, dodgy html.... should have been:

<a href="http://www.silkblooms.co.uk/map%20coverage.jpg" rel="lightbox"> <img border="2" src="http://www.silkblooms.co.uk/map%20coverage.jpg" width="300" height="301"></a>
4 Apr 2011, 1:07 PM
#2602
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi folk,

I'm redoing my retail site. I've installed both Fast & Easy Checkout and Zen Lightbox. Both install the file jquery-1.4.4.min.js

Zen Lightbox puts it into includes/templates/MyTemplate/jscript/

FEC puts it into includes/templates/MyTemplate/jscript/jquery/

My editor says the files are identical. Can I remove one of them? If so, which one?

Thanks,

Rob

4 Apr 2011, 2:39 PM
#2603
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rstevenson:

Hi folk,

I'm redoing my retail site. I've installed both Fast & Easy Checkout and Zen Lightbox. Both install the file jquery-1.4.4.min.js

Zen Lightbox puts it into includes/templates/MyTemplate/jscript/

FEC puts it into includes/templates/MyTemplate/jscript/jquery/

My editor says the files are identical. Can I remove one of them? If so, which one?

Thanks,

Rob

I wouldn't remove either, because the code will still be looking for it.
Instead tell the code not to look for it anymore. see the discussion here http://www.zen-cart.com/forum/showpost.php?p=1003195&postcount=2476

note: there was a follow up. the code should have been

//echo'<script type ……  

the // before the echo

daniel

4 Apr 2011, 3:06 PM
#2604
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks for the reply.

Unfortunately, making that edit simply prevents Zen Lightbox from doing its thing. The larger image opens in a new page -- no lightbox effect and not even the standard pop-up.

I was just trying to be tidy. I'll leave both files where they are.

Rob

4 Apr 2011, 7:03 PM
#2605
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Back in this post, I made note of potential problems when jQuery is loaded more than once, such as with ZLB. Although I wasn't aware that other modules also load jQuery when the module is used, the problem is still easily solved.

Setup jQuery to be loaded all the time.

includes/templates/YOUR_TEMPLATE/jscript/jscript_1jQuery.js

jQuery must load before any scripts to be used with it. As Linux will list alphabetically and thus, Zen Cart will load alphabetically, I've had to use a naming schema like: jscript_1jquery.js in order to have a correct a load sequence.

Now that jQuery is loaded globally, it does not does not need to be loaded again. I've already described, in this post, how to disable ZLB from loading jQuery and the same applies to any other module. Unfortunately, I don't know what file FEC uses to load jQuery so you will have to find it. Odds are though, it uses an 'echo' or 'require' in one of its PHP files and using // will comment out that line.

Also, once you've commented out other modules from loading jQuery, you do not have to upload their jQuery file. This also allows you to determine what version of jQuery you want to use. Some of the newer jQuery stuff requires the newer version but usually, older jQuery scripts will still work with the newer version.

4 Apr 2011, 10:32 PM
#2606
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

What would cause the image to open the image location when clicked and not open the image with the lightbox effect?

I have double checked the download - all files are correctly placed, I did this on a test site and it works fine but getting the above on a clients live site.

Any Ideas?

5 Apr 2011, 7:28 AM
#2607
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Would need a URL to see what you see.

5 Apr 2011, 8:59 AM
#2608
psvialli avatar

psvialli

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

niestudio:

Generally you just need gallery mode enabled in the ZLB admin area.
can you post a link to your site?

I have it turned on in Admin , dso they have to be named the same but with the _1, _2 etc..

Test tite ATM

https://www.moon-dream.co.uk

5 Apr 2011, 1:23 PM
#2609
scriptjunkie avatar

scriptjunkie

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

psvialli:

do they have to be named the same but with the _1, _2 etc..

Yes, they do. Zen Lightbox follows the same file naming/file structure protocol that Zen Cart does. Here's a tutorial on the subject.

5 Apr 2011, 4:45 PM
#2610
willy12 avatar

willy12

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

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.

5 Apr 2011, 5:16 PM
#2611
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

Website Rob:

Would need a URL to see what you see.

Link to site

Any help would be great - Thanks

5 Apr 2011, 5:44 PM
#2612
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rbarbour:

Link to site

Any help would be great - Thanks

Did you run install.sql? Looking at the source for your site, I dont see any parts of ZLB being loaded.

If you did run install.sql, do you have it enabled in your admin?

5 Apr 2011, 5:45 PM
#2613
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.

Can you post a link to the page with error? I've never heard of this before, but I can look into it for you.

5 Apr 2011, 5:50 PM
#2614
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

Zen Lightbox

Zen Lightbox true
Overlay Opacity 0.8
Overlay Fade Duration 400
Resize Duration 400
Resize Transition false
Initial Width 250
Initial Height 250
Image Fade Duration 400
Caption Animation Duration 400
Display Image Counter true
Close on Image Click false
Close on Overlay Click false
Always show Prev / Next false
Keyboard Navigation true
Close Lightbox 27,88,67
Previous Image 37,80
Next Image 39,78
Gallery Mode true
Include Main Image in Gallery true
EZ-Pages Support true
File Types jpg,png,gif

ran the install.sql file, above shows it enabled in admin.

5 Apr 2011, 6:11 PM
#2615
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rbarbour:

Zen Lightbox

Zen Lightbox true

ran the install.sql file, above shows it enabled in admin.

On your server take a look at [includes/modules/pages/product_info] and make sure jscript_zen_lightbox.php is in there.

5 Apr 2011, 6:26 PM
#2616
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

niestudio:

On your server take a look at [includes/modules/pages/product_info] and make sure jscript_zen_lightbox.php is in there.

Is there. Looking at the source code it doesn't seem to be loading the jquery-1.4.4.min.js file. But not sure how to trouble shoot that any further than I already have.

or the jscript_textarea_counter.js file

5 Apr 2011, 6:41 PM
#2617
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rbarbour:

Is there. Looking at the source code it doesn't seem to be loading the jquery-1.4.4.min.js file. But not sure how to trouble shoot that any further than I already have.

or the jscript_textarea_counter.js file

Are you running any other add-ons?
I see something strange in your source code where the css is loading with a url called min where it is concatenating all of your css files into one url.
I wonder if this could be causing issues because from what I can tell ZC autoloads the contents of certain directories based on their file names (I'm not sure exactly how it works) so maybe this is getting in the way of that.

just a thought…

5 Apr 2011, 6:47 PM
#2618
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

It is the same on my test site, maybe looking at the test site you will see something different. Test site

5 Apr 2011, 8:35 PM
#2619
rbarbour avatar

rbarbour

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

O.K. so I disabled the Minify so that it does not combine and compress the css/js files as suggested but still no change.

5 Apr 2011, 8:44 PM
#2620
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

rbarbour:

O.K. so I disabled the Minify so that it does not combine and compress the css/js files as suggested but still no change.

I'm really at a loss. I deleted that one file we talked about earlier on one of my test sites and I ended up with the same scenario you have.
Maybe someone else will chime in with another suggestion.
If you want to PM me some FTP info I'll be happy to take a look, but I dont know what else to suggest at this point.

daniel