Do you have a link to your site, please?
Printable View
Do you have a link to your site, please?
Thanks Alan :) here's the link...
The Birds In The meadow
Only this product has the additional images if you want to see them.
...please be gentle, it isn't yet finished and I have a few nonsense products up at the moment :laugh:
Cheers, I appreciate the help.
I don't see any additional images for that product. :|
Now you mention it, they are visible in Firefox but not IE. Don't know about how it looks in other browsers. Hmmmm.
Alex,
You were doing some communicating in the IH2 help boards. I ended up adding the Zen Lightbox to my cart... I added all the file but I dont think its working. Have a look-see and let me know what you think I should try next. Thanks, Josh
www.pastgenerationtoys.com
:frusty:
Hello Josh, did you do something since you wrote because it shows up as working for me in Firefox and IE. It looks good!
I have no clue what changed between now and then but it is working! This a great addition!
Is there a way to apply it to the additional pics I sometimes need to add to an item - like the one below?
http://www.pastgenerationtoys.com/tr...00f557e58b4d34
Also, maybe someone here can help with this...
Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/p/i/p/pipsmker/html/includes/classes/bmz_image_handler.class.php on line 531
I have tried everything under the sun to make this stop... well everthing excpet the thing that stops it.
It shows up randlonly when IH 2 is running.
Hey PastGenToys,
Just wanna let you know that the GoDaddy seal is messing up your lightbox :)
Shirley
Alex,
That IH2 error is the bane of my Zen Cart existenance! I have given up on it and have turned it off. My thumbnails dont look nearly as good but the error is annoying and I have tried everthing I can think of...
It must be a rarer erroe beuase know one has been able to offer an insight over the past week and I usuall get feedbavk very quickly
------------
I add additional images in the description, as thumbnails, and that dont show in the Lightbox. On my end its in a new window.
http://www.pastgenerationtoys.com/tr...ade-p-250.html
Click one of the two at the bottom. Can those be lightboxed?
I turned off the GoDaddy box... gonna see if the helps... IH2 is back in action
I have inserted them into my description via html. Is their another way to add additional images?
Hey Alex, I'm still seeing my additional images in both Firefox and Opera despite using thetrick in my code. Sure it works in IE but it would be good to have the layout clean and uniform on all browsers. Any ideas what could be causing it, or any workarounds to this problem? Anyone else seeing the additional images here? Mabe it isn't anything to do with the lightbox effect and I should go pick some brains on another forum?HTML Code:display:none
It was easy to do using IH 2. Is their another way in case I cant continue to IH2 because of the errors?
Did you search the forums and/or tutorials?
The way I add additional images is as follows...
https://www.zen-cart.com/tutorials/index.php?article=58
Well, to get the lightbox working,
put a copy of jscript_lightbox.php into:
includes/modules/pages/product_reviews/
thanks for your contribution
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>
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.
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.Quote:
#productAdditionalImages, {display:none; ! important }
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.
try.....Code:.additionalImages a {display:none;}
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:
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 :)
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...
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/i...&products_id=5
Thanks,
Gerry
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
You're right, it doens't work in FF2!
I'll look into a fix for this and add it to the next release.
Thanks for pointing it out! :)
Thanks ......ooooo...much
that worked
changing the
z-index:100; <- change to 1000
it worked on ZenCart-HoverBox2...also
This is the mod I am using....
The pics in the lightbox are showing up larger than the original which is lessoning the quality. Is there a setting I can fine tune? Thanks
Hi All,
I have read the thread on how to correctly name the images and my lightbox still does not show additional images. Additional images are set to "on" in my admin and images are named the same in images/ and images/large folders and I have had no luck. Lighbox functions fine except for the multiple images part.
Is there a code change needed. I am using v1.3.7 and have the updated lightbox. My test product is:
http://bristalwatches.com/index.php?...gp33c47bjeraq7
Any help would be appreciated.
Thanks.
I set-up Image Handler 2 to handle my images and it works fine with my install of the lightbox on zen 1.3.7.
Could you try that out? its as simple as just browsing your local machine for the image files and uploading them.
I know its not a fix but it could make life easier.
Yes, I have tried Image Handler to no avail. Thanks Adam for the input though. It seems as though lightbox is working great, except is won't see my additional images.
Most likely, the names of your image files are incorrect.
They should be as follows...
Main Image = file.jpg
Additional Image 1 = file_001.jpg
Additional Image 2 = file_002.jpg
...and so on.
That's the format you need to use. I noticed from your site that the main images appear be be named as file_000.jpg.
If you rename the files to match the format as above that should sort it. :)
Well I tried renaming the files. The test product I have are
Main Image = tic_substl.jpg
Additional Image 1 = tic_substl_001.jpg
I also put those files in the large folder and that didn't help. So, I then renamed them adding a _LRG to the end of them and still no additional images are being read from lightbox.
I have also made sure yesterday, I had a good install of lightbox and all seems to be fine except for the additional images. I know addtional images are selected in admin.
I have also tried with and without image handler. I am at a loss as I have never had scripts not function. Any more help would be great. Thanks in advance.
Rob
Actually, it is the template I am using. I am so upset. This template has been nothing but trouble. I don't want this thread to get off topic so I won't comment on the maker as I am sure you can all guess who.
However, does anyone know of a way to fix the lightbox coding or template coding to work with a template that doesn't want to accept lightbox?
If I could get the additional pictures to work with this template, my week of struggle with this template will be finished and I can get some products up an selling. Thanks again.
Can you get additional images to display normally (ie - static on the product info pages) with your template?
Not with my template, only with templates such as silverfish and redpassion.
Lightbox works with my template for one image just fine, but when it comes to reading additional images, it doesn't look for them. The ligthbox with the other two templates sniff the additional images out with no problem. This makes me confident there should be no code manipulation in the lightbox script needed, however I might have to change code in my template script, but I don't know where or what code.
If you want, I could email you some files you might want to take a look at from my template to see what is miscoded. Just a thought.
I'll have you know, this templates' sideboxes were all miscoded...they were mapping to incorrect places. I have been on this template for days. I had to recode most of the sideboxes and I have never seen zen cart in my life. You'd think the coders would test this stuff. That is all I will say about this.
So if you could get my template to function with your lightbox script, my site would be looking much better. Right now, I am thinking of scrapping zencart and getting my old site up and running. However, I would rather just keep the one that is there now at bristalwatches.com. Thanks in advance if you can let me now what to change to get the lightbox to work with my template.
Thx
Rob
From what I understand your template does not function with the additional images module of Zen Cart. Have you tried contacting the person/company you purchased the template from and ask them to fix this problem?
I'll be away for a week or so. When I return I can look at your template files, but cannot promise anything (ie - I may not be able to fix the problem).
Ok, I have emailed TM and they are looking into the issue, but if they can't fix it, I will wait for you. In the meantime, I am going to install another ecommerce template so I can get the site going. Enjoy your time off.
im using the i chooze's blue atheme v2, does additional images work with this template because i can not get it to work
IH2 working. Adds additional images Gr8. Rollover works Gr8. Popupworks Gr8 (dangit).
Zen Lightbox working on main product images.
After reading here I see the two work together, but not for me. IH2 is displaying images in a popup window.
Reinstalled Zen Lightbox (in case I missed something), no change.
Can't find what I'm missing in order to get images uploaded via IH2 to display with Zen Lightbox instead of the popup.
http://tinyurl.com/3dkrx7
ZenCart 1.3.7
IH2 - image-handler_2.0-zc135
Zen Lightbox 1.3
Hey,
great mod!
Does this work for html pages to open in popup window?
just like this one
http://particletree.com/examples/lightbox/
what has to be modified in your files to acomplish this?
Thanks
This is great modules but can anyone tell me how to config big image when move mouse to?
Does Not Work With Lavender Template. Had O Uninsstall.l.
Fatal error: Call to undefined function: zen_image_lightbox_ih2_url() in /home/cubecase/public_html/includes/templates/nifty_zen/templates/tpl_modules_main_product_image.php on line 17
Line 17 reads:
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>'; ?>');
My Product Description shows blank, help.
wow, talk about painless install
works like a charm
Alex,
Have you checked into the non-closure of the lightbox when using FF yet?
Gerry
I am using theand have successfully installed Lightbox, however....when trying to locate the second image (it does indicate 2 images) the spinner just spins in a new window with the blank background behind it. Both images show on my product page and I have named them the same with the exception of _01 or _top. Please help!Quote:
Lavender Template
Hi Alex,
Thanks for this great mod!!
Are you still planning to put out the long awaited update or have you bagged it?
Thanks!!
Matt
Hi Matt,
I'm still planning to update Zen Lightbox. Not sure exactly when as I'm a little busy with clients work at the moment, but as soon as I have a release date I'll let everyone know. :)
Ok, I fixed some things, but I still am not getting images on the product description page.
Example:
http://cubecaseoutlet.com/index.php?...oducts_id=7454
I am using tabbed products. It was working just fine with tabbed products until after I installed IH2 and Lightbox.
So, my question is, "Since I use a different folder for all my product images located at:
cubecaseoutlet.com/images/asi_inventory/ (all of my product images).jpg
Do I need to make a change somewhere to represent that?"
I am assumin it has something to do with tpl_modules_main_product_image.php, but I'm not sure.
Also, how do I get the hover popup to work?
Or is this an IH2 issue?
I'm having an odd problem. Lightbox used to run perfectly; but now lightbox has decided not to work for 'some' products. All I get is the spinning wheel (well that's what I like to call it).
Working Example:
http://brasslinepro.com/index.php?ma...oducts_id=2611
Non-working Example:
http://brasslinepro.com/index.php?ma...oducts_id=2760
I was running Zencart 1.3.7 (w/ the IH2 plugin).
I upgraded to Zencart 1.3.7.1 (winmerge showed no obvious changes to related image handling files). I did not notice anything broken after the upgrade. But as I said... not all of the images are broken.
MySQL 5.0.27-standard
PHP Version: 4.4.7 (Zend: 1.3.0)
For the sake of completeness...
- I did recently ran a major 'Easy populate'. I only caught this new image problem as I was doing a 'quality control check' of the products.
- But I looked in the database and it checks out fine (I looked at the actual MySql contents).
- I also tried editting a product, deleted the image, and loaded a fresh image w/ no success.
- I also tried deleting the bmz_cache. Still no luck.
I'm sure the solution is obvious but I'm just missing it.:frusty:
Any ideas folks?
Thanks!
Hi, refriend ... I've found this problem before with lightbox, several times in fact, but I always discovered that it happened because there wasn't an image in the 'large' folder. Any chance this problem existed before your upgrade, and you just need to move an image in ?
I had the same thought. So I checked and both the large and medium folders are (and have been empty). I believe IH2 handles the resizing and then caches the images (with watermarks if appropriate) in the bmz_cache folder.
I then dove deeper and found that when zencart tries to display an image_large it does its own error checking. If image_large doesn't exist then the variable is assigned to point to the original image .
Please note that I am not using the actual variable names right now... just the concept.
I will test the idea (later... when I get home) by placing images in the 'large' folder and report back with the results.
In regards to my last post. Storing an image in the 'large' folder has no effect.
Well, I identified one part of the problem. ZenCart 1.3.7.1 made some good changes. Zen now catches when medium and large image versions don't exist and will use the standard image by default. The file adversely affecting lightbox (and IH2) is /includes/modules/main_product_image.php.
When the 1.3.7.1 code is removed lightbox operates correctly but the product image is missing.
When the 1.3.7.1 code is added the product image is correct but 'some' lightbox images won't pull up. Keep in mind that my /images/medium & /images/large
folders are empty. IH2 handles the resizing.
Hopefully this info will help someone.
Alright. Everything I wrote previously was correct... but moot.
Now how about a solution, huh? (for those having a problem.)
Replace /includes/templates/YOUR-TEMPLATE/templates/tpl_modules_main_product_image.php with the following:
Basically, the problem was with LARGE_IMAGE_WIDTH and LARGE_IMAGE_HEIGHT so I hard coded them with '800' and '600'.Code:<?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)); ?>
<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), '800', '600') . '" 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>
Bada Bing. Not an elegant solution... but it works!
Is there any way i can get this to open up in an absolute position? Like always 60px from the top of the page? Right now it opens up relative to how far you are scrolled down on the page.
/includes/templates/template_default/lightbox.js
Edit line 352
Code:var lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 15);
I discovered these on my own so the experts can offer a cleaner solution if they know of it.
- Replace the '/15' with a greater number to reduce the space above your images.
- Erase '+ (arrayPageSize[3] / 15)' to remove the top spacing altogether
- Erase 'arrayPageScroll[1] + ' to remove it's 'adjust to scroll' features (though I don't know why you would want to do that)
BTW. Edit Line 65 to adjust lightbox's resize speed.
I use Lightbox with Zen 1.3.7 + IH2 and have no problem with image not showing, no code needed to be modified.
Anyway, 1 tip for all: since lightbox is used only when the customers view the product in product_info page, there is no reason to load it on every page and slow down your site, you can rename stylesheet_lightbox.css to product_info.css
Does any one know a way to use lightbox in an ezpage?
I need to make a page of thumbnails that when clicked, open in to large images using lightbox.
I'm searching for it, but I don't find the answer.
Can I move the box a little more down?
Zen Lightbox v1.4 has just been released and will be available in the downloads section shortly.
A full list of changes can be found below.
I'll reply to this thread again when the download link is active.
- Renamed Zen Lightbox function, various files and folders
- Improved use of the overrides system for JavaScript and image files
- Added admin switch to enable/disable Zen Lightbox
- Added admin switch to adjust the overlay opacity
- Added admin switch to adjust the overlay fade duration
- Added admin switch to enable/disable resize animations
- Added admin switch to adjust the resize speed
- Added admin switch to adjust the border size
- Added admin switch to enable/disable the lightbox from closing when you click on the overlay
- Added admin switch to enable/disable Flash objects from being hidden when the lightbox is displayed
- Added admin switch to specify a DIV class to hide when the lightbox is displayed
- Added lightbox functionality to document_general_info, document_product_info, product_free_shipping_info, product_music_info, product_reviews, products_reviews_info and product_reviews_write pages.
- Updated Lightbox JS v2 code to version 2.03.3
- Reverted to original CSS code (with custom fixes)
- Fixed model number display error on product_reviews page
- Added code to load all lightbox resources before image loading is complete
- Updated support for Zen Cart 1.3.7.1 and Image Handler 2.0 v0916
- Removed close link from lightbox image
The download link for Zen Lightbox v1.4 is now active.
http://www.zen-cart.com/index.php?ma...roducts_id=273
Please report any bugs or post any comments or questions here.
Enjoy!
Thank you for the update, Alex. It's working great!
Tested on:
Firefox 2.x
IE 5.5
IE 6.0
IE 7.x
All working fine.
No, you have to click outside of the box to close it (if you don't want to click "close"), this is an option which can be set in admin page.
Everything I was hoping for is in this update. Thanks Alex, when will it become available for dl?
Hi Alex,
Thanks for all your hard work on this add-on. This will definitely enhance the look and feel of my photography site. I'm having a slight problem though with the popup box. The "previous" and "next" links don't show up--all I get is a white border. Neither does the "Close" link show up. The link still works, it's just that it seems as if it's blending in with the white border so you can't see it. Here's my site if you need to check out what I mean: Brad Steinagel Photography
Thanks,
Brad
Problem Solved...
I didn't realize I had to take the gif images out of the images/zen_lightbox folder before I installed them onto my server.
Brad
If someone still has problems with ZenCart 1.3.7.1, ImageHandler 2.0 and Zen Lightbox 1.4 here is what i did to fix it:
locate the file "additional_images.php" it should be in your includes\modules\"template_name_dir".
Go to line 23 and remove the ". '$'".
The line should look now like this:
$products_image_base = str_replace($products_image_extension , '', $products_image);
Thats it. Hope it helps others.
Cheers,
Climax