I have experienced problem with the lightbox, here is the situation:
http://imgfeed.com/images/6l3fnvqfq8gvtt4i3ppo.jpg
How to block the navigation bar from included in lightbox?
Printable View
I have experienced problem with the lightbox, here is the situation:
http://imgfeed.com/images/6l3fnvqfq8gvtt4i3ppo.jpg
How to block the navigation bar from included in lightbox?
I have implemented the change proposed by Taydu. It works fine except that :
1/ the "rabbit ears" effect described by Taydu occurs (to the best of my knowledge, this post of Taydu was never answered to)
2/ on all the pictures appear the PREV and NEXT buttons (without this mod, on the first picture only NEXT appears, and on the last one only PREV appears).
As the code of the stylesheet_lightbox.css has changed since Taydu's post, I insert hereunder the modification I have performed :
#prevLink, #nextLink{
/* bof Zen Lightbox v1.4 aclarke 2007-09-18 */
width: 63px;
/* eof Zen Lightbox v1.4 aclarke 2007-09-18 */
height: 32px !important;
/* bof : modif based on taydu's post of 22/06/2007 */
position:absolute;
top:-25px;
/* eof : modif based on taydu's post of 22/06/2007 */ background: transparent url(../images/zen_lightbox/blank.gif) no-repeat; /* Trick IE into showing hover */
display: block;
}
Any idea about what goes wrong?
I've installed Zen lightbox and it's not working. I have read through the posts here, and I've done what was suggested; checked each file, renamed the two specified folders to my active template, (which is cherry_zen.) I ran the SQL patch and that appears to have worked correctly. When I look at the source code on my generated pages I see the jscript for lightbox, but I am still getting a popup window.
I sure would like to make this work. :frusty:
Ideas? Thanks -
Jeff
jeffreydesign.com
OK Here's the answer to my question. Review this post:
It was a problem with my template - cherry zen. It's an easy fix. :yes:
Love the mod now that it works! :clap:
Jeff
Thank you for that post jeffreydesign . I had that problem myself.
I am having a problem... I purchased a template and installed lightbox perfectly but once I click on a product the product just opens up on a new full page. Here is the link: http://www.aokayofficial.com.previewdns.com.
Please advise!
I don't know which template you're using, but you should do a search for lightbox in your particular template support pages.
Often, there is a conflict with one or two template-specific files and lightbox.
Second, make SURE you downloaded ALL the files and they are all in the CORRECT folders.
After that, make sure the config files you edited (or think you've edited) you raised the permissions (755) in order for the edit to stick. Once you've confirmed that the files are correct, then re-restrict the permissions. (644)
Jeff
www.jeffreydesign.com
hmmm.... which ones would be the config files? were we suppose to change the permission levels? I am using the template called "12541" from templatemonster.com the free template. Let me know!
Find the support for your template. There are probably config files that lightbox and your template are conflicting over - these would be the files you would need to edit, that is if that's the problem. If you're having this problem likely someone else with your template has already been there and resolved it. Wish I could be more help, but you have a different template than I do. I had the same problem as you do, but I can't be sure it's the same solution.
Jeff
jeffreydesign.com
juzarraga you will have to compare yourwith the one in zen light box. Use WinMerge to make sure you don't have to add some code or take out code. Some template are that way. Don't just over ride it, you will have to merge zen light with your tpl_modules_main_product_image.php in your template. You do with the cherry template anyway. Hope this helps.Quote:
/includes/templates/your_template/templates/tpl_modules_main_product_image.php
Thanks guys... let me look into that. Alex got back to me and notified me that it might also have been a corrupt download. Lemme try it again.
Hi - I'm having some Lightbox issues. Here are my stats: Zen cart v. 1.3.8a - IH2 - Cherry Zen template - Most recent Zen Lightbox. I have seen posts concerning conflicts between the Cherry Zen template and lightbox and will utilize that info but my issues don't seem to be addressed by the posts I've seen.
Now, more often than not, after installing Lightbox and clicking to enlarge an image I am getting the following error on the product I click:
Impossible to open http://www.italianglassconnection.co...&products_id=6.
You can see the incomplete site here.
It may have to do with the includes/modules/pages/product_info/ file. If I remove that file the impossible to open error does not occur and I can navigate the site normally, although the images will not appear in the lightbox, but just on a full blank page.
Thanks for any help or hints
I know this doesn't help much, but with IE7 it seems to be working fine. I opened several images on your site, and every one opened in lightbox flawlessly. Are you waiting for the entire page to load before you click on it?
Jeff
www.jeffreydesign.com
Hi Jeff - Well I'm glad you wrote! This may indeed be an IE6 issue. I am still running IE6 (I believe - How does one know their version :huh: I know I haven't intentionally upgraded) and I can click on maybe 3 different images before the error kicks in. However, now that I checked, I can see that everything runs perfectly in FF.
First you can tell your version of IE by selecting Help | About in the menu bar.
Second, after looking around on your site, I got the same error you described but I don't think it's a lightbox problem - it seemed to me more like something else since it didn't always happen when I clicked on an image. Sometimes when I just clicked "Next" on the product page it would happen. Something isn't right in there - it might be your template or a conflict somewhere. Did you check on the Cherry Zen support pages to make sure you followed the instructions for lightbox/Cherry Zen installation? Just check back a few posts in this thread and I supplied a link to it.
Do you have other mods to your Cherry Zen template?
Hmmm... You are right in that it does happen at times other than just image enlargement. I assumed it was lightbox because I had just installed it and always have issues when I install it. Yesterday I installed both IH2 and this mod. Prior to that I was having zero issues. I know that the offending issue is here between these mods & Cherry Zen. I went through the paces turning off & on lightbox, un-installing - re-installing IH2 to the database and a few other things to see where & when the problem kicks in and without a doubt it somehow centers around includes/modules/pages/product_info/jscript_zen_lightbox.php.
If I remove that file everything runs cleanly. There is a noticable difference, in fact, in just how smoothly. Any idea what this all means...? :huh:
In the end of it, I uninstalled Zen Lightbox. Instantly my site ran better and the issues I was having with IH2 also disappeared. In it's place I've installed Fual Slimbox (Lightbox) and was very pleased with the ease of installation (NO issues!!!) and performance.
I just installed this, works like a charm! Kind of a pain to install but works very well.
I was having problem with ZL as well.... FS worked perfectly... I just love showing it off! Check it out! http://www.aoakyofficial.com (sorry, this is not an intentional plug)
my bad... http://www.aokayofficial.com
I have installed the modifications described in thread 33423 in order to be able to price products based on their dimensions (width & height). This works fine.
Afterwards, I have installed the Zen Lightbox mod and it also works fine.
Note however that installation of the Zen Lightbox seems to have side effects on the modifications performed based on thread 33423 :
the computation of the price based on width and height of the products still works fine , but the fact that the customer is obliged to enter a width and an height for the product before clicking on 'add to cart' is no longer honored.
(for info, the modification proposed by thread 33423 uses Pricing by Letter; through Admin, this attribute is defined as being mandatory, in order to force the customer to enter a width and a height).
I do not understand what goes wrong because this checking is done in /includes/functions/functions_lookups.php (line 438 in ZC 1.3.7) and this module is not affected by the Zen Lightbox mod.
Any ideas about what goes wrong?
Note that the same "side effects" occur if I use Fual Slimbox instead of Zen Lightbox
Fual isn't working with my Cherry Zen template. On the individual product pages, images are no longer showing. I'd love to know what steps you took, Melt!
I was concerned about hijacking this thread since the topic is Zen Lightbox. I've responded to your question in the Faul Slimbox thread.
When uninstalling Zen Lightbox, is it a necessity to remove the database information from SQL? :)
I could finally have the Fual Slimbox (and I also assume the Zen Lightbox) mod working after implementing the patch suggested by Ajeh on 26/7/2007 ("Attribute Required for Text" - what would make it stop working?).
Thanks Ajeh!
Hi Meltdown.
You will find the patch proposed by Ajeh in the thread http://www.zen-cart.com/forum/showthread.php?t=69217
The post of Ajeh was issued on 26/7/2007 at 03:33 AM.
It looks like some mods do suppress some rows in the configuration table. I experienced this with the Fual Slimbox and the Zen Lightbox mods, but other "culprit" mods are mentioned in the thread.
Regards,
Has anyone ever found the solution to the IE problem where the browser reports "Operation Aborted" upon the first opening of the page, but the refresh brigs you to it.
The current Lightbox has no SWFObject anywhere in it, so that's not the problem.
Help? Anyone?
Hi guys.
I am having a problem with the lightbox installation. Unfortunately, my development is on a testing server and so I can't provide links to show you the issue so will have to describe as best I can.
I have installed the lightbox according to the instructions and for the most part it works. I have uploaded a large image for a product in addition to the base image. The website displays the picture of the base image along with the description and then a thumbnail underneath of the larger image. Make sense so far? When you click on the thumbnail, lightbox kicks in and displays the larger image great. When I click the base image though it still comes up as a pop-up instead of lightbox and the link for this is still "javascript: popupWindow...." instead of a link to the image as the thumbnail does.
Any ideas what could be causing this?
Yo guyz!
How to add the imageNavContainter div before(!) the outer image conteiner?
I'd like to put it above the image.. Any guess?? I can find in the js..
thnx
dimmyr, what is the URL to the problem page(s) and have you done any code Validation?
Hi everyone,
I am just getting a fresh install of zen cart going and I wanted to use the light box image enhancement. I just copied the files over but I am confused as to where I write in that code that is in the install .txt file... it does not specify as where where it goes... Can some help me out with this please.
So I've seen other people with this problem and haven't found an answer that resolves my problem. I'm not getting any errors, but the lightbox doesn't come up in the lightbox, it just links directly to the image and opens it up in a whole new page.
i reuploaded my files just in case i missed something, it's activated in the admin section. I did have one question when I ran the script for SQL patches, i hit send and it just went to the next page where it had written out all the install.txt but never officially said it was done, although it did show up in the config section.
trying to give as much info as possible. any ideas? thanks in advance for your help.
I have the light box and it is working great on both images except for one thing... That first image comes up nice and centered in the middle of the screen.. The second image is coming out huge! you have to scroll down to the bottom right to close it... I have been trying to edit the additional images.php file but that did not work..
I then was researching and i noticed that the second image is not being cashed in the bmz_cache folder at all .. it is referencing the source file which is actually that size..
It is my understanding that the bmz_cache folder is for image handler2 .. which is resizing my files...
Is this a problem with the lightbox coding in additional images?
or
is this an issue with imagehandler2 not working with my additional images?
or
Is this an issue with lightbox not working with imagehandler2 on additional files?
Alex can you help me ???
I install da lightbox bu don't work i do everything you say but i don't have results
my site is www.editwww.com/loja
thanks
Okay, so swfobject and lightbox won't work together. It brings up 'operation aborted' when they're both on the same page. Has anyone got a solution? Apparently its fixable with some swfobject modifications...
I just have this pasted in my tpl_header.php
<div id="flashheader"> <img src="includes/templates/mytemplate/images/header-nonflash.jpg" width="900" height="220"></div>
<script type="text/javascript" src="includes/templates/mytemplate/swfobject.js"></script> <script type="text/javascript">var so = new SWFObject("includes/templates/mytemplate/images/header.swf", "flashheader", "900", "220", "8", "#FFFFFF");
so.write("flashheader");
allowScriptAccess="true"
</script>
ebookba-
had the same issue, am using apple_zen template this might help you,
http://www.zen-cart.com/forum/showpo...postcount=1998
where can i find version 1.3 i want to upgrade to 1.4 but it states that i should uninstall any previous versions
I am having a problem getting Zen Lightbox to work in IE7 - It works fine in FF2 and FF3.
Go here for an example: http://www.hydrangeahills.com/cart/i...roducts_id=185
When you click on the image, instead of appearing in the overlay, the image is thrown way down at the bottom of the page. It makes no sense to me. Any thoughts?
Gilthalas
Hello,
can someone reverse engineer the install.sql file, i need to uninstall lightbox but am unsure which tables etc to unistall through my admin. (deleting the appropiate files is the easy bit).
thanks
shoulders
i got this from the install.txt file
my sql patcher in the admin section is a bit wiered on my local webserver so i manually added my prefix 'zen_' and ran the code below in phpmyadmin ( with the shop database selected).Code:SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Zen Lightbox';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
This does appear to remove lightbox. can someone confirm this is correct before i use it on my live site.Code:SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Zen Lightbox';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
thanks
shoulders
followed the installation instructions and have lightbox installed. it is not functioning in my cart. The preview is coming up as normal... i cleared cache...
newbie needs some help
my lightbox also not come up.
my lightbox version is 1.4 update , zen cart is v. 1.38a
Rename the following folders to match your template folder name.
includes\modules\YOUR-TEMPLATE-FOLDER
includes\templates\YOUR-TEMPLATE-FOLDER
my zen cart is fresh install, then how can i know the actual template name i am using?
** i also installed image-handler 2, is it any conflick problem?***
please help
thank
This is a fantastic mod! Hats off to you!
I've got it working beautifully, and discovered one other thing that applied to my situation. It may have already been discussed in this thread, but just in case, anyone needs to know in the future...
For those who might have installed additional mods, to create new categories, such as the Products - Books modification... in order to get Lightbox to work with those category types... simply copy one of the "jscript_zen_lightbox.php" files into includes/modules/pages/product_custom.
In my case, this was includes/modules/pages/product_book_info
To the creator of the Lightbox mod... thank you so much, for your classy, sassy contribution. I was just thinking earlier that I would love to have a lightbox display, but figured it would take me forever to figure out how to pull it off myself! :clap:
Hey is there a jquery proof lightbox for zencart ??
wow love this, tried installing greybox first and it screwed things up. installed lightbox over and it`s working great.
I do have one problem though, you`ll notice that there is no `X`to close out the image, you can click the right bottom corner and it will close, but there isn`t anything there to say that.
www.weddingprintdesign.com
can someone help me with this
is there an image missing
Anyone know how I can move the box a little lower. It's a little too high.
Zen-Cart 1.3.8a Fresh Install
PHP 5
MySql 5
Cherry Zen 1.7
IH2 - Latest Version
http://www.bulklights.com/NATIVITYDISPLAYS/
This site in dev is in a sub-directory now, but will assume the domain name nativitydisplays.com as soon as I get these issues resolved and data populated.
I have installed version 1.3 on several 1.3.7 Carts with IH2 without a single problem. All files are uploaded and in their CORRECT folders (twice) including the template specific folders. I compared the page source on my product page to other working sites and see little if no difference in header and script info.
When I click on "Larger Image" I get the image view just like 1.3 when you don't wait long enough for the js to load.
Could someone take a look and see if they see any anomalies?
THANKS
JOhn ><>
Unlike many other posters Lightbox worked perfectly first time! IH2 with Lightbox even worked well after a couple of hours of effort. Both mods are great and much credit to the developers for such valuable contributions.
I've seen one thread that asked the following question or something similar but now can't find it again. I know its possible because I've seen it on some active Zen sites... I'd like to be able to remove additional product images from my product listing page but still have them display in Lightbox as image 2, 3, 4 etc. I've tried switching multiple images off but that kills them in Lightbox too. Same problem with editing out the alternate images bit of tpl_product_info_display.php.
What am I missing?
Excellent contrib, thank you!
I have both IH2 and ZLB 1.4 installed and working on Zen 1.3.8a!
Two observations:
One was brought up by Stuff4Toys regarding the js load delay issue causing larger images to open in a new window as opposed to the lightbox. I read that the Fual Slimbox contrib has addressed this issue. Any chance addressing it on ZLB?
Two, I noticed that quote marks in the product description are not escaped in the display of the lightbox so that the text is truncated after a quote mark!
What files should I look into to correct this?
Thanks!
I believe that is taken care of with 1.4, I read something about "pre-loading" that portion of the .js
I have not noticed with 1.4 yet, I know that was an issue with 1.3, I thought that was fixed too, maybe not.Quote:
Two, I noticed that quote marks in the product description are not escaped in the display of the lightbox so that the text is truncated after a quote mark!
What files should I look into to correct this?
Thanks!
JOhn ><> :thumbsup:
Am hoping someone might have some insight or suggestion - I have just installed the latest lightbox into 1.3.8a Zen cart (offline installtion). It works just fine for the larger images. What is not working is that there does not seem to be any Admin interface for Lightbox.
going to Admin > Configuration results in no "Zen Lightbox" menu item. I even checked the rest of the menu and it's not anywhere i can see.
Looking back at my database SQL patch, the results were:
9 statements processed. (and no errors noted)
However, when i check the database's configuration table, there are only 7 new rows added.
If i'm reading the sql patch file correctly, there should have been 9 new rows installed, right?
using the "sort_order" column to distinguish the new rows, it can be seen that 1,2,3,4,5,6, & 7 were insterted but not the last two.
I assume this is why my lightbox Admin is not visible? if so, how do i fix and why did the patch file not insert the last two rows? (I ran the patch file a second time - with the same results)
Thanks in advance for any assitance.
Never Mind - Working now just fine - the last two rows WERE added to the database - my viewer had not sorted them and I missed them when examining the resultset. Also, i had forgotten i needed to enable the permissions under Third- Party Mods for Zen Lightbox under Admin profiles in order to access the Admin for it. (sheepish grin goes here) All works fine now.
I really enjoy the image presentation using this contrib. Thank you!
I was hoping someone could tell me if I could us Zen Lightbox to pull-in other content (pages) such as the Shipping Estimator or something simple like the shopping cart Help page?
May be through an iframe? Any code or resource references would be helpful!
Thanks
Hello everyone,
First of all I'm a big fan of lightbox since the day I first laid my eyes on it.
I always make sure to implement it on my clients websites.
Anyways I was trying to implement this mod on one of my clients website and its a customization + zen cart.
After going through the instructions for installing this module, I thought well this seems very straight forward which I think all of you agree with.
Unfortunately, I'm that 1% who's not able to get it running right out of the box.
Now, I think this may be related to my other problem which is no popup windows work on the site that I'm working on. Just the normal popup for viewing larger images or even the shipping estimator doesn't work.
Could someone be kind enough to help me out here ?
Thanks
callingrohit
can someone please help me ???
Thank you.
This may have been covered elsewhere ( i seem to recall reading a headline to this effect - but cannot now refind it - if so, sorry to repost):
Is there a way to have a link to an image that has been html hard-coded into a product's description also open using the lightbox effect?
Okay, what am I doing wrong? I uploaded the Lightbox files and ran Install.txt. How do I call lightbox in an image now? I tried adding rel="lightbox" which is what I use in WordPress, but to no avail. Help please?
I see what the deal is now...it automatically does Lightbox on certain pages. Is there a way to add additional pages to this so that images on my mainpage are lightboxed?
Hi folks,
I've been trawling through this thread to try and sort this out but I'm struggling - apologies if I've missed something obvious -
I've got the lightbox installed and it's working ok for the large product images in product listings.
However, I can't get it to work with the extra images on a product - they're still using the standard popup.
I've got all the relevant images loaded to images/, images/large (with _LRG) suffix), and images/medium (with _MED suffix).
Thanks in advance.
I seem to have this problem as well. I have picture 1 as my category image then when I am on the product info page I have a different picture. When i click on the product info image to bring up the large image with lightbox it will bring up my category image instead of the product info image which I am clicking on. Did you ever get a fix for this? Does anyone know how to fix it?
I might have narrowed it down to this file attrib_prod_info.php for me at least. Since I have installed the mod to have attributes replace main images when selected. The code inside of this file looks like this...
And I am pretty sure this is the culprit. I deleted this partCode:
<?php
require('includes/application_top.php');
$products_options_values_id = $_REQUEST['products_options_values_id'];
$alt = $_REQUEST['alt'];
$width = $_REQUEST['width'];
$height = $_REQUEST['height'];
$products_id = $_REQUEST['products_id'];
$sql = "select pa.attributes_image
from " . TABLE_PRODUCTS_ATTRIBUTES . " pa
where pa.products_id = '" . (int)$products_id . "'
and pa.options_values_id = '" . (int)$products_options_values_id ."'";
$account_query = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
$products_color_image = $db->Execute($sql);
$attributes_image = $products_color_image->fields['attributes_image'];
if($attributes_image!=''){
$image = zen_image('images/'.$attributes_image, $alt, $width, $height);
?>
<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?>
<?php }?>
and everything still worked except when i clicked on the drop down menu and chose a product. Then it gave me an error. So is there a way to change the above code to work with lightbox instead of a generic java popup window?Code:
<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?>
<?php }?>
I am starting to see that this code is also what is causing the broken link smaller image to come up below the main image. You can see this in action here
http://www.wpc-consulting.com/~stxmi...products_id=18
The code is
[code]
<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?>
<?php }?>
[\code]
which as you can see has bigger_picture.jpg which is the path to the broken link or at least the file name if you look closely. I don't know how to fix this but I am sure it has to be this file. Anyone have any ideas? I am needing to get rid of the bigger_picture.jpg and would like lightbox to be used for the main image on attributes instead of the popup
Hello everyone,
I installed this mod on ZC 1.3.8a and nothing works. I had to revert back to my original tpl_modules_main_product_image.php.
Can someone please help me ?
thanks
callingrohit
I just installed Zen Lightbox on my 1.38a cart and it worked like a charm right away. I love it so much, I'm trying to figure out how to use it on the attributes thumbnails. I figure what will get me started is to install a popup attributes module to get it to the point of being accessable or is that wrong... has anyone been able to pull the attribute images into the lightbox?
Thanks
I can't believe it. I got lightbox to work on attribute images, and include them in the gallery. I still can't believe I did it, but it works!!!!
I located this file:
includes/modules/MY_TEMPLATE/attributes.php
I took a snippet of code from "Attribute Pop-Ups" add-on:
I pasted it into attributes.php around line 481 immediately following this line of code:Code://find large size attribute images. Location must be in /images/large and image name must be image_LRG.ext Mike Scott 070606
$array_filename = split("[/\\.]", $products_options->fields['attributes_image']) ;
$filename = $array_filename[count($array_filename)-2];
$extension = '.'.$array_filename[count($array_filename)-1];
$filename = $filename.'_LRG';
$path = DIR_WS_IMAGES . 'large/attributes/';
$attribute_image_lrg = $path . $filename. $extension;
$selected_attrname = $products_options_names->fields['products_options_name'] . ': '.$products_options->fields['products_options_values_name'];
I then modified the following line:Code:// if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
$tmp_attributes_image .= '<br class="clearBoth" />' . "\n";
$tmp_attributes_image_row = 1;
}
to look like this:Code:$tmp_attributes_image .= '<div class="attribImg">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</div>' . "\n";
Be sure to have your large attribute images in the "images/large/attributes/" folder, with _LRG as the extension like normal, and it works!Code:$tmp_attributes_image .= '<div class="attribImg"><a href="' . $attribute_image_lrg . '" rel="lightbox[gallery]">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</a></div>' . "\n";
I am just offering this for what it is, something that worked for me. I had installed the latest 138a cart, and the latest Zen Lightbox and the attributes pop-up code came from its latest version. You should work with the attributes.php file in the YOURTEMPLATE folder so that you can just delete it to uninstall this solution.
:clap:
Kristin
Sounds great congrats!!! I tried but I was unsuccessful. I have the latest zen cart and lightbox 1.4. I currently have my attribute images setup this way. I go to attribute controller and add a picture at the bottom. The images are in images/attributes/
This is to have the images change which works on all the products except for one actually. I followed your post and read over it again and again to make sure. Here is what my portion of attributes.php looks like.
Code:
if ($products_options->fields['attributes_image'] != '') {
$tmp_attributes_image_row++;
// if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
$tmp_attributes_image .= '<br class="clearBoth" />' . "\n";
$tmp_attributes_image_row = 1;
}
//find large size attribute images. Location must be in /images/large and image name must be image_LRG.ext Mike Scott 070606
$array_filename = split("[/\\.]", $products_options->fields['attributes_image']) ;
$filename = $array_filename[count($array_filename)-2];
$extension = '.'.$array_filename[count($array_filename)-1];
$filename = $filename.'_LRG';
$path = DIR_WS_IMAGES . 'large/attributes/';
$attribute_image_lrg = $path . $filename. $extension;
$selected_attrname = $products_options_names->fields['products_options_name'] . ': '.$products_options->fields['products_options_values_name'];
$tmp_attributes_image .= '<div class="attribImg"><a href="' . $attribute_image_lrg . '" rel="lightbox[gallery]">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</a></div>' . "\n";
}
}
I then added a picture into the images/large/attributes folder with the image_LRG.jpg format. I see now difference. I am hoping I am missing something because I would really love for this to work.
Can I see a link to your site. Do you have any ideas what I could have done wrong?
I have just installed zen light box, it works fine except a slight problem with my main product image drop shadow height, it seems to have included an extra <br /> under the image...
I have been trying various test, and still could not get rid of it, does anyone know where to look to resolve this bug? i am on cherry zen template, thanks.
Test site where you can see this bug:
http://kuholdings.com/estore/index.p...products_id=17
Any suggestion would be much appreciated!!
Maybe this will help you out with the drop shadow. I found the fix on the form somewhere I forgot where...lol
lightbox_fix for cherry template
With what you posted, it looks like what I did, but if you have something else affecting it like a module I do not have installed, then I don't know what to tell you... here is the staging area I am building the site on, and a product where you can see this in action, so you can see the effect of what I did (this link will only be good for another week or so while I finish building the site before I point the main domain to it):
http://test.phylliseig.com/index.php...roducts_id=175
Give me your URL where this is not working for you, and I can take a look at it and see if something jumps out at me. you can PM me if you want.
K
Also, welchyboy, I don't think this lightbox is compatible with your main-image-switch-on-pulldown-change module you have installed. I think you need to choose one or the other way to display your attributes. I think you'd have to write some custom code if you really find it necessary to try to use both. The lightbox needs a straight url in the a tag, it won't work if the url is written out using javascript, which is something the pop-up attributes module does (it's that last line of code I posted where all the link and image magic happens), and that is what I'm seeing on your cornmeal page:
<a href="javascript:popupWindow('http://www.wpc-consulting.com/~stxmill/index.php?main_page=popup_image_additional&products_image_large_additional=image s/attributes/Stone Ground Cornmeal 5lb 3005.JPG')">
OK I understand...I am not able to do the coding and I have come to terms with this and I am OK with having Lightbox for the main images then a pop up image for the attribute images. The majority of them do this however do you have any idea why this is happening...
http://www.wpc-consulting.com/~stxmi...products_id=15
If you go and click on an attribute and it switches which is good. Then you try and click to make it larger (the attribute image) some of them I have counted about 5 do not come up with anything. No popup of any kind. Any thoughts on this. If i can get this working then I will be happy.
I'm not using any pop-ups on my site, just Lightbox, so I don't know anything about mixing the popups and the switching attributes on pulldown change, sorry. There might be a thread that talks about doing this where other people have done it and can help.
I will look around. Thanks
OK I gave up on the lightbox function with my current mod to have the attribute images replace the main image. But I got to working on why 5 of my products weren't working. I figured out that is has to do with the name of the image. For some reason if is has an apostrophe "granny's" for example for some reason it will mess things up. Not sure why it only did it to a few of them. But with the problem products i renamed the image without the apostrophe and it fixed it. Also I had a few images named with the "&" symbol which also didn't fly so well. So now I am at least able to get all the pop ups to show up when clicked which is a GREAT thing. I am happy. Thanks for all the help. I didn't get everything I wanted but it is functional and I am happy. Again thanks for ALL the help.
:clap: Awsome Contribution! Thank you!
I was able to Install Lightbox successfully the first time :blink: . I then went ahead to install Image Handler 2. The uploading of the images with IH2 was a breeze, and the second images show up well on Lightbox. The problem that I am having, is that the IH2 rollover feature does not work. I notice that when I rollover an image I get an error ( on IE ) on the lower left browser window.
I tried Installing IH2 alone and the hover effect works fine, so it is when combining these 2 contributions when I get an issue.
Here is a link to one of my test sites. I will greatly apreciate any suggestions or links to find an appropriate solution.
http://store.fransxm.com/store/
I have a minor problem which I believe I have read before how to fix but not quite sure where. My lightbox overlay does not fill the entire screen in IE7?
You can view this problem here
http://wpc-consulting.com/~stxmill
Anyone know how to fix this issue?
THis has been discussed on the last couple of pages but wanted to revisit this to make sure I have it right...
FS as installed (worked perfectly the first time, yay) works only on hte product image, and NOT on the attribute images.
And from what I read, there was a little discussion about making it work for attribute images but it went no further.
Do I have those two statements right? Is there any thought towards making it work for attribute images??
Great addon. Worked right out of the archive...
I've had Light Box in and working for a few weeks now. I just found an odd issue though. When viewing a product page over SSL, I'm getting a security warning. In playing around with the code, I can trace it back to lightbox_lightningload.js
If I remove this line (<script type="text/javascript" src="includes/templates/ccu/jscript/lightbox_lightningload.js"></script>) the error goes away. Of course, Light Box doesn't function. The script is being called securely, why is it giving an error?
See https://customcreationsunltd.com/sho...ookie-659.html for an live example.
Excellent. I will give it a go.
What I've created is a Gallery2 repository that passes a single image down into ZenCart, hence the attribute images are far more important since there are more of them, to handle in this manner. Will make a run at it and letcha know.
I appreciate your response in this.
david
I am new to Zen-cart, I just installed it and installed the lightbox mod. I copy and pasted the 'install' text into the SQL area as instructed. It looks like everything installed fine, however when I go to configure->zen lightbox there's no options to be configured. Has anybody seen this?
Snowkrash... okie dokie. I followed your instructions in message #1077. Couple of quick questions. WHen going to my includes/modules/MYTEMPLATE/attributes.php and to the approximate line where you indicated the code alterations took place, my attributes.php did not look anything like what was suggested for line 481, or thereabouts.
I did find an /include/modules/attributes.php that did follow the locations and code changes as your #1077 stated. As I am new to ZC, am certain that I may have something installed that perhaps overwrote my includes/modules/MYTEMPLATE/attributes.php. So I will be plugging away at it.
The other aspect of this is... what selection do you use for your Name Option? Dropdown, checkbox, radio button? I can only get a clickable popup to work with attribute images when dropdown is selected. So I am rather curious to know what you, or anyone uses as a selection for their product attributes? It only seems to want to work with dropdown. But.... do you have it working with anything else?
tx for your responses. I am > < that close to having things tweaked up and working nicely.
Any advice or help would be mucho appreciated.
I had the same problem a while back. You can see hereQuote:
I am new to Zen-cart, I just installed it and installed the lightbox mod. I copy and pasted the 'install' text into the SQL area as instructed. It looks like everything installed fine, however when I go to configure->zen lightbox there's no options to be configured. Has anybody seen this?
what I did to fix it here
Hope this helps
I'm migrating over from oscommerce to zen cart, and just installed the zen lightbox. It seems to work fine on my original product image, however the additional images are hanging.
Do I need to create the _LRG on each additional image? I've got 2755 products, and if that's the case, I'm pretty screwed! Is there another way to get the lightbox working on additional images where it doesn't hang with the circle circling?
Thanks in advance!
Thank god about the _lrg
Here's the url, but you've got to be 18+ to view.
http://adarkdesire.com/zen/cuplessle...er-p-1138.html
They're not in large.
Try going here http://adarkdesire.com/zen/
then navigate to womens clothing, bustiers. Any item in that area will have additional images.
Let me know if there's a problem.
The additional images are. For this product, http://adarkdesire.com/zen/cuplessle...er-p-1138.html the first additional image is
http://adarkdesire.com/zen/images/la...-102_2_LRG.jpg
I never made any with _LRG in the title. How weird is that???