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

Zen Lightbox addon [Support Thread]

Views: 953,102

Results 1,241 to 1,260 of 3,722
2 Jan 2009, 9:34 AM
#1241
dbb1 avatar

dbb1

Zen Follower

Join Date:
Jan 2008
Posts:
139
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

Alex Clarke:

That's the stuff. :)

I'll be testing the install.sql code soon to find out it works for some people, but not others.

In the meantime, anyone having trouble running the install.sql code should review the following post.

http://www.zen-cart.com/forum/showpost.php?p=662273&postcount=1240

It may prove helpful.

Thanks for your feedback.

In my opinion, the button overlay behaviour isn't really an issue. Most people display larger images in the lightbox, not ones of the same size.

However, the caption behaviour isn't really ideal. I'll see if this can be improved in a later release.

As for the blank lightbox issue, do you have link to this test site? If so, please PM it to me and I'll take a closer look.

Regards,

Alex

Alex,

This mysteriously started working after my last post. I didn't change anything. I did upload a test image rather than use the ZenCart default DVD image, and Lightbox seemed to work fine when the new image was viewed with Firefox. Later, I attempted using IE again, and low and behold, IE worked, too!

I thought my issues may have been due to some local caching of pages or something, but the IE that I used was on a different PC. Maybe it had something to do with IH2, which was installed to my site prior to lightbox.

At any rate, both Lightbox and IH2 seem to be working perfectly.

The only Lightbox issue I now have is that "NEXT" is displayed when only one product image is available. Clicking on it gives the "PREV" link, as if a second image has been displayed, but it's the same, single product image.

Thanks for a nice looking mod!

3 Jan 2009, 6:51 PM
#1242
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

royver04:

Hello,

First off, this is a great addon!

I'm trying to find out if there is a way to not show the next / prev buttons on the image, until you mouse over that particular area.

I've tried overriding the CSS and created a #lbPrevLink:hover to change the background image, but that doesn't work. Been searching all over the forums and haven't found anything.

I am on ZenCart 1.3.8 and using Zen Lightbox 1.5.

Thanks!

This should be possible to implement (as it only invloves a simply CSS alteration). I can hopefully add this to the list of features for v1.6.

Wouldn't it be nice to have an admin switch to control this? I think so! :P

getsome:

I'm having a problem. I have 1.3.8a and IH2, I installed 1.5 light box and my hover over image disappeared. IH2 pop up box is now a new window. No light box pop up. Sql installed. Anyone else have this problem?

Do you have a link to your website please?

If so, post it here and I'll take a look.

dni:

GOT IT!
made this slight change and ran it through again...

SELECT @cgi := configuration_group_id FROM [B]zen[/B]_configuration_group WHERE configuration_group_title = 'Zen Lightbox';

 
Glad you've got this sorted.
 
You may have noticed that quite a few people are running into problems with the install.sql code at the moment.
 
Don't worry, I'm working on a fix.
 
Thanks for posting your solution. :smile:
 
> **DBB1:**
>
> Alex,
>  
> This mysteriously started working after my last post. I didn't change anything. I did upload a test image rather than use the ZenCart default DVD image, and Lightbox seemed to work fine when the new image was viewed with Firefox. Later, I attempted using IE again, and low and behold, IE worked, too!
>  
> I thought my issues may have been due to some local caching of pages or something, but the IE that I used was on a different PC. Maybe it had something to do with IH2, which was installed to my site prior to lightbox.
>  
> At any rate, both Lightbox and IH2 seem to be working perfectly.
>  
> The only Lightbox issue I now have is that "NEXT" is displayed when only one product image is available. Clicking on it gives the "PREV" link, as if a second image has been displayed, but it's the same, single product image.
>  
> Thanks for a nice looking mod!
 
Good to hear things are working.
 
Do you have a link to your site?
3 Jan 2009, 8:36 PM
#1243
axzion avatar

axzion

New Zenner

Join Date:
Jul 2008
Location:
Klippan, Sweden
Posts:
7
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex Clarke:

Thanks for the update. The next release will probably be out before Zen Cart 2.0.0.

You should be running the install.sql code via your Zen Cart Admin (as per the installation instructions).

Running the code via phpMyAdmin is fine, but only if you manually update your table names (if you use prefixes).

Try running the code via your Zen Cart Admin and see what happens.

Hi Ameet,

You've got a few errors on your site. I recommend that you fix these. Try installing Firefox and using the FireBug addon to locate the problems.

An existing contribution that's installed may be causing a conflict with Zen Lightbox here.

Can you list all the contributions you have installed please?

Thanks,

Alex

How did you run this SQL code? Via your Zen Cart Admin or phpMyAdmin?

The jscript_zen_lightbox.php file should not be placed on the root. It is required only if you need to use the lightbox effect on extra pages. Please check the readme.html file for more information.

Yes, this should be possible.

Try setting up an EZ-Page with a link to an external image.

It should work... but I've not tried it yet! :P

Axzion asks:
In the readme file it says:
Upload the entire contents of the includes folder to your server, again keeping the file structure intact. (Note: All files make use of the overrides system.) -
There is no mention, what I can see, about the jscript-file, what to do with it and in which case.
So I assumed that "jscript_zen_lightbox.php" should be installed in the root.

Is the "jscript_zen_lightbox.php", unneccessary perhaps, unless EZ-pages are installed?

As to the install.sql, I used the Admin panel, tried both uploading the install.sql and pasting it into the window. (3-4 attempts)

Installed (copied) all other files to appropriate places.

Is it possible that my Aglozone templates on my site (https://www.finasmycken.se) cause this? (https://www.algozone.com)

Cool to know where I failed, for the sake of curiosity.

4 Jan 2009, 2:26 PM
#1244
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Hi Axzion,

The jscript_zen_lightbox.php file is not to be installed in the root. It is intended to be used on additional pages (i.e. contact_us, shippinginfo, etc) where you require the lightbox functionality. Please check the readme.html file for more information regarding this.

A few other people have also asked me about the required location and/or use of this file. As a result, this file will be moved to a different location for the v1.6 release. Just to avoid confusion! :cool:

If you PM my you Zen Cart Admin details I can logon and attempt to fix this issue with being unable to run the install.sql code.

Your template could be causing problems. It's best to check that the template and Zen Lightbox do not have any file conflicts. If they do you will need to merge both files together.

It should be fairly simple to copy the Zen Lightbox code into your template files as it's all been comented, like below.

// bof Zen Lightbox 2008-12-11 aclarke

Obviously the date may be different. However, you should still be able to easily find the relevant bits of code.

Regards,

Alex

5 Jan 2009, 7:17 AM
#1245
gezuvor avatar

gezuvor

New Zenner

Join Date:
Apr 2007
Location:
Orange County, CA
Posts:
88
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

First off, amazing mod! Just finished the install and it works like a dream. However, I'm also having this problem:

DBB1:

The only Lightbox issue I now have is that "NEXT" is displayed when only one product image is available. Clicking on it gives the "PREV" link, as if a second image has been displayed, but it's the same, single product image.

Also, I hope this isn't a repeat question but I was wanting to add a site graphic to the top of the lightbox. I searched the thread, but didn't feel like reading every page.

Is this controlled via the CSS file or ??

5 Jan 2009, 8:55 AM
#1246
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Do you have a link to your website?

If so, post it here (or PM it to me) and I'll take a look.

Also, what type of graphic are you trying to add? It may be possible to do this via CSS, but I'm not 100% sure.

5 Jan 2009, 5:53 PM
#1247
gezuvor avatar

gezuvor

New Zenner

Join Date:
Apr 2007
Location:
Orange County, CA
Posts:
88
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

PM sent. Just trying to add a background .gif at the top..

5 Jan 2009, 5:57 PM
#1248
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

First off, thanks for a great mod! It has come a long was since I started using it :smile:

I recently updated Lightbox to 1.5, which went great. However, I am having problems with my 1.38a/1.5 shop as Woody was below:

Woodymon:

Gems14k:

I'm think we are in agreement. I will use your site as an example of the issue...

The review page which customers will have access to and see (after the review has been approved) does not display the malformed text in the link.

See here:
http://www.nokoria.com/genuine/index.php?main_page=product_reviews_info&products_id=358&reviews_id=2

But the page the review author will observe immediately after submitting the review and the page the customer will see if review has not been approved does indeed show the malformed text for the link.

See here:
http://www.nokoria.com/genuine/index.php?main_page=product_reviews&products_id=358

So what I was trying to say is the error impacts product_reviews but does not impact product_reviews_info.

I observe everything behaves/degrades correctly when JavaScript is disabled.

Looking at tpl_modules_main_product_image.php updated for Lightbox/ImageHandler 2:

<!-- begin zen lightbox v1.3 aclarke 2006-10-20 --> <script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="' . zen_image_lightbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); //--></script> <!-- end zen lightbox v1.3 aclarke 2006-10-20 -->
> 
> Which generates the following HTML on product_reviews page:
> ```
  <!-- begin zen lightbox v1.3 aclarke 2006-10-20 -->

  <script language="javascript" type="text/javascript"><!--
document.write('<a href="images/rings/1940RY-RB.jpg" rel="lightbox[gallery]" title="Genuine Ruby Band Ring 14K Yellow Gold<br /><span class=\"smallText\">[1940RY-RB]</span>"><img src="images/rings/1940RY-RB.jpg" alt="Genuine Ruby Band Ring 14K Yellow Gold [1940RY-RB]" title=" Genuine Ruby Band Ring 14K Yellow Gold [1940RY-RB] " width="267" height="225" /><br /><span class="imgLink">zoom</span></a>');

//--></script>
  <!-- end zen lightbox v1.3 aclarke 2006-10-20 -->

Note:

<br /><span class="smallText">[1940RY-RB]</span>">

> 
> Hopefully this leads you in the right direction.
> 
> Woody

On the main product page, the main image displays properly but  on the list of reviews page, I get some of the product's model displayed as HTML just before the image. On the individual review page, it is fine again.

By getting the shop to output the $products_name, I am seeing that the main product page just shows the name, but the review list page adds the model to the end of the name. This seems to choke the Lightbox code and results in the erroneous text being displayed...

Any ideas on how I can fix this?

ta,

Nick :cool:
5 Jan 2009, 9:56 PM
#1249
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Hi Nick,

Do you have a link to your website (or even the page in question) please?

If so, post it here (or PM me) and I'll take a look.

Many thanks,

Alex

5 Jan 2009, 11:17 PM
#1250
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi Alex, thanks for your reply!

I have been banging my head against this all night, and have finally nailed it I think!

The problem page was http://www.knightkit.co.uk/index.php?main_page=product_reviews&cPath=146_148&products_id=3027
as that is the only product with a review.

What I reckon was causing it was "includes/modules/page/product_reviews/header_php.php". In that file around line 42, the code adds the product's model number to the product's name. The brackets added during this process then broke the HTML, leading to the ouputted model before the product image!

All sorted now, and I need to rummage back through the thread and let the other couple of folks know how I fixed it :)

Nick

5 Jan 2009, 11:45 PM
#1251
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Hi Nick,

Thanks for the update.

This issue was fixed in a previous version. However, I think v1.5 may have broken the fix! :blink:

If you don't mind, could you post your solution (fix) here as it will help others and I may also include it in v1.6.

Cheers,

Alex

6 Jan 2009, 10:36 AM
#1252
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi Alex, no probs :)

I changed line 42 of "includes/modules/page/product_reviews/header_php.php" from:

if (zen_not_null($review->fields['products_model'])) {
    $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
  } else {
    $products_name = $review->fields['products_name'];
  }

to:

{
    $products_name = $review->fields['products_name'];
}

Just thought - should I have used an override for this instead?

ta,

Nick

6 Jan 2009, 2:05 PM
#1253
jp9999 avatar

jp9999

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Great contribution thanks!

This is my first time using the lightbox addon and I have noticed that on some computers it does not work with Firefox. I checked the browser version and all of them were updated to the current firefox.

Has anyone else noticed this?

6 Jan 2009, 2:15 PM
#1254
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Works fine on my Mac and PC Firefoxes - when you say "it doesn't work", could you be a bit more specific? :smile:

Nick

6 Jan 2009, 2:25 PM
#1255
jp9999 avatar

jp9999

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Sorry for being so vague.

By not working, I mean that the image is greyscaled as well as the background, making it hard to view.

Thanks!

6 Jan 2009, 2:40 PM
#1256
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Have you got a screencap we can have a look at please?

Nick

6 Jan 2009, 2:53 PM
#1257
jp9999 avatar

jp9999

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

The bottom information bar is cut off, but it shows up in white. Only the image is covered.
Attachment #5124

6 Jan 2009, 3:10 PM
#1258
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Could it be the z-index setting in your CSS file? Do you have a live demo we can have a look at and play around with?

thanks,

Nick

6 Jan 2009, 3:20 PM
#1259
jp9999 avatar

jp9999

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

No live demo up yet - soon though.

I'll check the z-index and get back to you.

Thanks

6 Jan 2009, 9:05 PM
#1260
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Nick_H:

Hi Alex, no probs :)

I changed line 42 of "includes/modules/page/product_reviews/header_php.php" from:

if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}

>  
> to:
>  
> ```
{
    $products_name = $review->fields['products_name'];
}

Just thought - should I have used an override for this instead?

ta,

Nick

Thanks for the update Nick. I'll test the v1.5 release to see if this error occurs and patch it in v1.6.

Also, the file you changed cannot be overridden.

jp9999:

No live demo up yet - soon though.

I'll check the z-index and get back to you.

Thanks

Yep, that sounds like a z-index issue. Let us know how you get on with this. :smile: