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

Zen Lightbox addon [Support Thread]

Views: 952,951

Results 621 to 640 of 3,722
21 Jul 2007, 4:07 AM
#621
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Zen Lightbox addon [Support Thread]

Below code fixes second part of problem.
in tpl_modules_main_product_image.php

Make like this:

<?php /** * Module Template * * @package templateSystem * @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: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <?php if (strrpos($products_name, '[')){$products_name=substr($products_name,0,strrpos($products_name, "[")-1);}?> <div id="productMainImage" class="centeredContent back"> <!-- 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 --> <noscript> <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?> </noscript> </div>
21 Jul 2007, 4:09 AM
#622
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Zen Lightbox addon [Support Thread]

Hope that last post is usable, I don't know how you guys escape your code for posting. Sorry.

If you want a copy of the patched file, please email me and I be happy to send.

21 Jul 2007, 12:39 PM
#623
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hi Alex, thanks for the heads up on that one, I tried it as follows

#productAdditionalImages, {display:none; ! important }
but that diddn't work either :( Tried a few variations in the punctuation as well with no luck. I'm very greatful for the trouble you are taking in helping me by the way, especially as it seems to be getting a little off topic now.

21 Jul 2007, 3:54 PM
#624
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

topbird:

Hi Alex, thanks for the heads up on that one, I tried it as follows

but that diddn't work either :( Tried a few variations in the punctuation as well with no luck. I'm very greatful for the trouble you are taking in helping me by the way, especially as it seems to be getting a little off topic now.

I don't think you're meant to have a space between the ! and important. Maybe that's the problem?

21 Jul 2007, 5:17 PM
#625
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hello again Alex, I'm afraid that isn't the problem as I originally put it in without the gap between ! and important, and in fact I just reverted to that to see if mabe I'd just been a little hasty when testing. Still no joy. I've tried every variation I could think of but that's not to say I've exhausted them all. I'll keep trying and let you know if I get the right one.

22 Jul 2007, 1:29 AM
#626
buster avatar

buster

New Zenner

Join Date:
Apr 2007
Location:
Charlotte NC
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

topbird:

Hello again Alex, I'm afraid that isn't the problem as I originally put it in without the gap between ! and important, and in fact I just reverted to that to see if mabe I'd just been a little hasty when testing. Still no joy. I've tried every variation I could think of but that's not to say I've exhausted them all. I'll keep trying and let you know if I get the right one.

I see you are having the same problem that I'm having. In internet explorer the additional picture is working fine and only shows one picture, but in firefox it shows all the pictures of that product. Is there a fix for this?

22 Jul 2007, 1:47 AM
#627
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

try.....```
.additionalImages a {display:none;}

22 Jul 2007, 12:44 PM
#628
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

barco57;

Thank you SO MUCH, that works like a charm in Firefox IE and Opera! I can't tell you how pleased I am. I hope it works for you as well Buster, let us know how you get on.

These forums are so great, I know nothing about coding at all and yet with all the help I've had here and careful reading of the forums I can build a site I like the look of. Thanks everyone! :hug:

22 Jul 2007, 10:06 PM
#629
buster avatar

buster

New Zenner

Join Date:
Apr 2007
Location:
Charlotte NC
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

barco57:

try.....```
.additionalImages a {display:none;}

 
 
Thanks, it works great:clap:
 
Thank you barco57
22 Jul 2007, 11:41 PM
#630
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Buster / Topbird,

What was the exact problem you were having? Thanks!

23 Jul 2007, 2:31 AM
#631
buster avatar

buster

New Zenner

Join Date:
Apr 2007
Location:
Charlotte NC
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

PastGenToys:

Buster / Topbird,

What was the exact problem you were having? Thanks!

My problem was, I had additional pictures with my product and it work fine with IE, but when I went to firefox it showed the words for the additional picture and not the picture.

The fix was what I needed.

23 Jul 2007, 4:12 AM
#632
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Buster:

My problem was, I had additional pictures with my product and it work fine with IE, but when I went to firefox it showed the words for the additional picture and not the picture.

The fix was what I needed.

...and that was with IH2 AND lightbox, correct?

Gerry

23 Jul 2007, 4:32 AM
#633
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

topbird:

barco57;

Thank you SO MUCH, that works like a charm in Firefox IE and Opera! I can't tell you how pleased I am. I hope it works for you as well Buster, let us know how you get on.

These forums are so great, I know nothing about coding at all and yet with all the help I've had here and careful reading of the forums I can build a site I like the look of. Thanks everyone! :hug:

TopBird,

Nice looking site. How did you get lightbox to close on click? I thought it didnt work that way.

Gerry

23 Jul 2007, 7:03 AM
#634
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

gcampos:

TopBird,

Nice looking site. How did you get lightbox to close on click? I thought it didnt work that way.

Gerry

It should work that way. Make sure you have version 1.3 of Zen Lightbox installed. :)

23 Jul 2007, 8:25 AM
#635
topbird avatar

topbird

New Zenner

Join Date:
Jul 2007
Posts:
20
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

PastGenToys:

Buster / Topbird,

What was the exact problem you were having? Thanks!
Hi PastGenToys, it was more of a layout issue than a real problem :) I wanted my additional images to be only viewable through lightbox and not appear in the product page. This acheived it! Have a read through the thread for more details, you pick up a lot of extra info that way :)

23 Jul 2007, 10:51 AM
#636
buster avatar

buster

New Zenner

Join Date:
Apr 2007
Location:
Charlotte NC
Posts:
28
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

gcampos:

...and that was with IH2 AND lightbox, correct?

Gerry

I'm only using lightbox

24 Jul 2007, 1:09 AM
#637
romy avatar

romy

New Zenner

Join Date:
May 2007
Location:
york, pa
Posts:
98
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Sorry it took so long to get back to you...
Add the div tag around it.....no luck
I uninstalled lightbox and installed
ZenCart-HoverBox2 insted
works just like the lightbox...
used the same div tag ...still no luck...

24 Jul 2007, 4:15 AM
#639
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Alex Clarke:

It should work that way. Make sure you have version 1.3 of Zen Lightbox installed. :)

Hey Alex,

I do have 1.3 installed, but when I click on open image except the "close exit" button, it does nothing, I have to click on "close exit".

Cant remember where I read it, maybe early in this thread, but stated as a no can do, maybe I was reading the post from an earlier version?

Here's a link to my page:
http://www.bullfightstore.com/cart/index.php?main_page=product_info&products_id=5

Thanks,

Gerry

24 Jul 2007, 4:23 AM
#640
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

romy:

Sorry it took so long to get back to you...
Add the div tag around it.....no luck
I uninstalled lightbox and installed
ZenCart-HoverBox2 insted
works just like the lightbox...
used the same div tag ...still no luck...

Romy,

Open your stylesheet_lightbox.css file, look in:

**includes/templates/YOUR_TEMPLATE/css/
**
for following:

#lightbox {
left:0;
line-height:0;
position:absolute;
text-align:center;
top:40px;
width:100%;
z-index:100; <- change to 1000
}

Then farther down, look for:

#overlay {
-moz-opacity:0.6px;
background-color:#000;
filter:alpha(opacity=60);
height:500px;
left:0;
opacity:0.6px;
position:absolute;
top:0;
width:100%;
z-index:90; <- change to 1000
}

save, upload, and should do the trick. I did the same after going thru what you are going thru.

Gerry