The lightbox not working on item additional images. Is that normal? If not, how it can be fixed? (I'm 1.3.9h)
Thanks!
Printable View
The lightbox not working on item additional images. Is that normal? If not, how it can be fixed? (I'm 1.3.9h)
Thanks!
Experimenting with Lightbox on my test site. Definitely looks better than stock pop-up.
Couple questions:
1. I notice alot of script code on product page in view source. Any adverse effect with SEO?
2. I ran a product page through several online checkers that "view page as spider sees it." All produce this link at front, going to 404 not found error:
http://www.prom-mart.com/+
Is this normal with Lightbox?
HI
Working on clients site with ZEn Lightbox installed which does not display the larger images in the lightbox window (just white box) Where Can I see the Version they have as I want to upgrade and see that depending on which version they have different ways to upgrade apply (or maybe even un install first and the install new) Zen 1.3.9f Zen Light Box V?
My Lightbox v 1.5 has glitched out on me ;o(
Double checked files and don't see anything diff from original install.
Working with IH2d. Tested Lightbox after that upgrade and it was fine. Using tpl_modules_main_product_image.php from Lightbox 1.5
Recent changes: Added js for imagehover for IE9 compliance. Added Featured Categories mod. Doublechecked and don't see any files in common with Lightbox. Updated Canada Post mod.
Tried installing backup files of my test store to point before changes above - Lightbox still not working.
When I click on an image Lightbox begins to open - ie the opaque background happens and then the white box begins to form and then stalls before pic arrives.
Tried searching this forum but admit I'm at a lot as to what search words to use.
Livebox is active for now on live site so you can see what's happening.... www dot meafordwool dot com
zc1.3.9h; many mods
Thanks
Never mind problem above. Upgraded to Lightbox 1.6.2 and problem no longer exists.
Hi,
I've the same problem with this issue and installed v1.6.2 version on it.
can someone to help? :frusty: :oops:
My website is: http://www.n1stores.com
Thanks!
Jacky
Dear Alex,
Thank you for your contribution of this addon. I've installed the v1.6.2 to my webstore. The lightbox not working on item additional images. Is that normal? If not, how it can be fixed? (I'm 1.3.9h)
Thanks!
Jacky
zc 1.3.9h zen lightbox 1.6.2
With v 1.5 lightbox I had separate set of close, prev, next French buttons with same filenames as English buttons, and I put those in my_template/buttons/french/zen_lightbox.
When viewing my site with French language selected, my french buttons would appear on the lightbox if multiple images present.
I updated to v 1.6.2 and everything else appears to be working, except the English buttons show up regardless of language selected.
The new image counter does plug in the 'de' in place of 'of' as per my edit of the extra_definitions file - which I copied into languages/french/extra_def/my_custom/zen_lightbox
Sample product page with mulitple images:
http://www.meafordwool.com/Jazzy-Soc...ose-Autumn-XXL
Can anyone point me to where I should look to make my french buttons appear when french selected?
Thanks.
Hi,
If you want to manage multiple language support for Zen Lightbox I made some changes in code.
Feel free to use the following attachment. You have to install zen lightbox 1.6.2 and after make changes with this zip attachment.
Files changes:
includes\classes\zen_lightbox\autoload_default.php
includes\templates\YOUR-TEMPLATE-FOLDER\common\html_header.php
***********
* WARNING *
***********
html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version)
If you still use a previous zen-cart version, do not use html_header.php included in the attachment, but you can just add the folowing code in the file includes\templates\template_default\common\html_header.php like you can see in the attachment:
/**
* load all template-specific stylesheets, named like "style*.php", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.php');
while(list ($key, $value) = each($directory_array)) {
$tmpcssdyn = '<script language="javascript" type="text/javascript"><!--'."\n";
$tmpcssdyn .= 'document.writeln(\'<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '?charset=' . CHARSET . '&language=' . $_SESSION['language'] . '" />\');'."\n";
$tmpcssdyn .= '//--></script>'."\n";
echo $tmpcssdyn;
}
File deleted:
includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.css
File added:
includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.php
Enjoy ;)
Jacques from France
when you upgraded the lightbox to 1.6.2 did you remove all old files from the server?
there are 2 places to add your buttons to :
main stores images folder and the templates images folder and both must be in their own little lightbox folder not loose in the ending folders.
Yes old files removed, sql update installed, new files put in or merged.
Images are in main store and my_temp/images; also in my_template/buttons/english/ and my_template/buttons/french which is how I got it to work within lightbox 1.5. The french buttons have the same filenames as the english buttons, but are located in the french folder and the actual graphics of the buttons are in french. I can't do this in the main store/images or my_template/images since english and french filenames are identical.
In the Lightbox 1.6.2 install, I AM getting the 'quantity of images' showing up in french with my minor substitution of 'de' for 'of' - so I know the copy of includes/languages/french/extra_definitions/my_template/zen_lightbox.php is indeed being accessed when a visitor has selected french language but the 'next' 'previous' and 'close' buttons being called up are from the english folder (or the main or my_template folders).
So I guess I'm trying to figure out how to call the graphic files from buttons/french/ when extra_denfinitions/french is in play.
I'm groping in the dark here, and wondering why this worked in 1.5 simply by adding the buttons/french ;o)
I finally install a 1.3.9h test environment to test this code. Actually, there is a security conflict issue from \includes\.htaccess which prevents the ability of any scripts to run and my new file includes\templates\classic\css\stylesheet_zen_lightbox.php which generate css rules.
When I change .htaccess with the following code it works :
<FilesMatch ".*\.(js|JS|php|PHP|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">
I am not an expert in security management. So I don't have a good solution to propose.
Hi Soxophoneplayer,
can you attach your french graphics for me.
I'll play around with it and see where they need to be added.
In ZLB 1.6.2 there are 2 places where the prev/next images live.
[images/zen_lightbox] & [includes/templates/your-template-folder/images/zen_lightbox]
I had to add this for the "Always show prev/next" feature that some users requested.
daniel
Here are the French buttons I was using for Lightbox 1.5
Thanks for your help.
ummm anyone know how to hide additional image at product info page?
so they only can be seen when they click for large image and click next and prev at the lightbox only
Hi Soxophoneplayer,
Here are the mods you'll need.
1.
As stated earlier you must load your french images to [images/zen_lightbox] & [includes/templates/your-template-folder/images/zen_lightbox]
Now, since your images are NOT the same size as the originals, you need to make some minor tweaks to the css.
2.
edit [includes/classes/zen_lightbox/autoload_default.php]
replace the echo statement at the bottom with this:
3.PHP Code:
echo '<style> #lbPrevLink, #lbNextLink {display: block; position: absolute; top: 0; height:33px!important; outline: none;} #lbNextLink {right: 0; width: 87px; background: transparent url(images/zen_lightbox/nextlabel.gif) no-repeat 100% 15%;} #lbPrevLink {left: 0; width: 106px; background: transparent url(images/zen_lightbox/prevlabel.gif) no-repeat 0 15%; } </style>';
next edit [includes/templates/your-template/css/stylesheet_zen_lightbox.css]
modify the #lbCloseLink tag width and height to
These three mods should load french buttons for you.Code:width: 89px; height: 33px;
daniel
Hi Soxophoneplayer,
I was looking back at your OP and realized that you are not trying to use french as the default, but rather be able to use that switch on your site.
The fix I just gave you want to switch to french all the time.
I'll try to look into what happened with the switch from 1.5 to 1.6
daniel
Hi,
After installing zen_lightbox-v1.6.2 onto my store ( 1.3.9h ) and running the installSQL script - I am getting the error message below ( see gif ) ...
http://i.imgur.com/GC8ag.gif
I have restored the backup of the original files and DB but still I get the error. Can anyone help please?
Thank you for your time :)
dome
the file listed in your warning is not a file that ZLB modifies.
I googled that warning and there are several forum posts related, maybe one of them will help
daniel
Thanks Daniel.
I managed to track the issue down to missing some files from my admin/includes folder.
For some reason application_bottom.php, application_top.php, autoload_func.php and my .htaccess files were missing ...
Attempting an other install of ZLB now ...
Just wondering does Attribute image replaces main product image on selecting attribute mod http://www.zen-cart.com/index.php?ma...roducts_id=994 work with zen light box?
Thanks!
Everything was working just fine, then, really not sure what happened (no changes to the code or theme). Now, none of the Lightbox images work. They start to open, then the page hangs with a white box.
Running through Chrome's Developer Tools, I get:
In Firebug I get:Code:zen_lightbox_mootools_custom.js:235Uncaught TypeError: undefined is not a function
Running 1.3.9g (no time to update to the latest codebase)Code:can't convert undefined to object
Any thoughts on what's wrong?
Thanks! Worked like a charm!
zen_lightbox-v1.6.2_20110220
Zencart v1.3.8a
IH2 installed
Links Manager Installed
Ceon's URI Manager Installed.
Easy Populate Advanced 3.0.3 installed.
I got following error message after I sent the sql install via admin/tools/install sql patches.
1146 Table 'giftsfor_gifts.configuration_group' doesn't exist
in:
[SELECT @cgi := configuration_group_id FROM configuration_group WHERE configuration_group_title = 'Zen Lightbox';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Here is my website
Any help will be highly appreciated.
That's exactly what I did my friend.
I got the error message immediately after I hit the "send" button.
Thanks for trying though.
sorry, clearly I didn't read your post fully, usually that message only comes in phpmyadmin.
see if this post helps you
I am quite sure that's the issue.
I will try the suggestion as soon as I am done with my daily errands here.
Thank you so much niestudio
Hello Alex,
Its a nice contribution. I have used it with IH3. But there is one issue. I can see only the main image of the product in the lightbox. But additional images cannot be found. And also the Prev and Next buttons are not showing in the lightbox. Please help me to cope up the situation.
Thanks a lot in advance.
Regards.
I don't understand the question. What has getting or not getting site feedback have to do with Zen Lightbox?
Fair warning: support threads are for posting requests for help and solutions for issues you have resolved. They are not the appropriate place to put site links in order to drive traffic to your site.
A review of your posts suggests this may be what you are doing. Be aware that this could get you suspended or banned from the forums for spamming/abuse.
If you have a question about Zen Lightbox, please post it in this thread. If not, please do not continue to post links to your site in the various support threads.
By the way the following information may needed.
My environment is as below.
Zencart version: 1.3.9h
Lightbox version: 1.6.2_20110220
Hopefully these 2 are compatible. Please suggest.
Hi All,
Sorry for the lack of communication from me recently... been snowed under with work.
I'm working on a new release of ZLB that should be out in the next few days.
As soon as it's been uploaded to the add-ons area I'll let you all know.
All the best,
Alex
Hi Alex,
Will your new version contain all the fixes and modifications that have been shared and discussed in this thread?
I ask because I don't want to replace the version I'm using (which includes the fixes and modifications) with the new version unless it is the same or better than what I have - which works fine for me.
Also, will you be working on an update for the new version of ZC?
The new version will be based on FancyBox, using jQuery.
Before each release I read any outstanding posts on this thread and try to resolve any issues mentioned.
Some of the new functionality to look forward to (when compared to my last release of ZLB, which was 1.5) is...
- the ability to automatically load the lightbox when the page loads
- inline content and flash objects can now be displayed within the lightbox
- more admin controls to easily customise the lightbox
- highly optimised code to reduce server load and page load times
- compatability with IH3 and CSS Loader
- login, newsletter signup and EZ-Pages can be displayed within a lightbox
I'll post a full change log here once I've finished testing.
Talking of testing, if anyone would like to trial the beta of this then please let me know and I'll send a copy over before public release.
As for future updates, I'll make sure these are available. Once I've release this version of ZLB I'll get to work on a new version to ensure compatibility with ZC 1.5. :)
If you have any further questions then please ask.
All the best,
Alex
Just so I'm clear.. When you say you "read any outstanding posts on this thread" do you also take into account any versions of ZLB which may have also been submitted in your absence??
I ask because like ScriptJunkie and many others, we have been using for some time now version 1.6.x of ZLB (submitted by Daniel's AKA niestudio). Will the improvements made in the currently available version of ZLB (v1.6.2) be taken into consideration when you submit the next revision???
What I'll do is read this entire thread from when I posted about the release of ZLB 1.5. I'll then check all the issues that people have reported against my latest release.
This will ensure that I include any improvements/updates that may have been introduced in my absence.
Hello. I have a simple question. How can I move the close/exit link to the UPPER right corner of the lightbox? I am using the latest version + zen 1.39h + IH2.
I have searched and read well over half of the threads here and did find anything.
Thanks
Drunkguy
Hi Drunkguy,
You would need to edit the JavaScript used by ZLB. Unfortunately, the code is compressed, which would make it a little tricky to edit.
The good news is that I'm just finishing work on the next release of ZLB, which by default includes the close button at the top right of the lightbox. :smile:
I'll be releasing this new version within a few days.
All the best,
Alex
Thanks Alex. I'll be waiting
Cheers
Hi, Can you tell me why Zen Lightbox is working on IE but not on Firefox? I ugraded to your latest version but it just displays the image on it own in Firefox and works just fine in IE. Website is www.corset.ie.
niestudio,
When I upgraded to the latest the entire zen cart crashed. So I removed the files and went back to 1.5.
Andrew
DarkAngel,
Thank you, did exactly as you said and this time it worked fine. Cheers!:D
I am running ZC 1.38a. It is noted on the Zen Lightbox d/l page that v1.6 will work with ZC 1.38a. Will Zen Lightbox 1.62 or 1.61 also work with ZC 1.38a? Thanks.
I was never successful with zen light box on 1.3.8a. It works flawlessly on 1.3.9h though. You should upgrade. That's the best solution. Good luck.
me either but I highly suggest that you upgrade t 1.3.9h to really deter hackers from rendering your store useless with their linkage and your host suspending your account.
have had to clean up and fix several stores due to this and have updated others for same reason.
I appreciate the quick replies. I guess since I am early into the modification of my store, I will just start over with 1.39h and chock this up as an "experience". The whole reason I chose 1.3.8a was because it seemed to have the most compatible addons available, plus I already went ahead and edited some of my core files before I found out about the overides...oh well I need the practice. :smile:
Dunno where you got that idea since MANY of the most popular add-ons were updated to be compatible with 1.3.9, and many of those mods didn't bother with being backwards compatible. Your reasons to stick with 1.3.8 are not logical. Version 1.3.9 is SAFER than v1.3.8 and THAT is the reason to upgrade.
I would just like to say thank you. Installed in 5 mins works like a charm.
P.S. if 5 mins was a long install it's only cause I read everything twice.
Cheers Billy :cool:
I finally got my lightbox working but now my Image Handler doesn't work along with it. Do they not work together or can you only have one or the other? I have Version 1.3.8a and image hander 2 if that makes a difference.
yup it do
first I would upgrade to 1.3.9h and then uninstall IH2 and install IH3
in the version you have the store is high risk and easy pickings for hackers
you can get the two to work together but it requires you to manually edit a file to do so.
with IH3/1.3.9h/lightbox newst version you just need to install all 3 then use the file that is exactly the same for ih3 and LB for both to play nicely together.
I have been adding products all day with additional images and just noticed that when you click on the main image it doesn't give you the option to go to the next image (usually it says next)
Here is an example where it's not working. http://frompropertorocker.com/index....oducts_id=1079
It was working earlier today and the only I did to my site was fixed the featured products I had trouble with earlier. Other than that I have just been adding products.
I do see this error in my error log just recently. [Sat Sep 10 22:57:32 2011] [error] [client 67.4.66.137] client denied by server configuration: /home/fromprop/public_html/secretadmin/includes/images, referer: https://frompropertorocker.com/secre...stylesheet.css Not sure if it has something to do with that also or what but thought I post it just in case.
Thanks!
Nvm I got it. I just re added the additional_images.php file.
http://www.live4hope.org/index.php?m...&products_id=2 Picture isn't loading in the lightbox...please help :)
is it working now?
I just went to the link with my old 10.3.9 macintosh with a ridiculously old Firefox and it shows up for me...in lightbox
a little more info on your part is great to get better help cause we are not mind readers.
store version:
Lightbox version:
your browser and version:
getting error messages?
anything else you see that is not working?
the more you tell us the better you equip us for answers...thank you sweety
A great piece of advice there. I have a tendancey to ramble (just like now) as if everyone was in the room with me and could ask the sensable questions back at me.
I would also had though to remember to select email updates on the post "daily updates" if you need the answer to solve an imediate issue.
Hi everyone,
Great feature Alex, I think this really helps to make sites look more professional.
I have a question and I'm sorry if it's already been asked elsewhere. I tried to find an answer already in the forum but no luck.
I have a form I've created on one of my pages and I'd really like to just have a link and then the form open up in a lightbox window. Is that possible to arrange with this plugin? If so do you know what code to use?
Thanks for your help and for the great plugin!
Will
Hi i am using Zen Lightbox 1-6-2 i have this installed on Zen Cart v1.3.9h.
The lightbox works fine on my product pages but i have created a gallery as an EZ page on my site and this is not working. I have put the "jscript_zen_lightbox.php" into the "modules/pages/page_x" folders looked through the config in the admin section and still cannot get this to work.
Here is a link to the page i am talking about:
http://picnicboxco.co.uk/index.php?main_page=page&id=5
if anyone has come across this before or knows how to fix this i would be very happy.
Thanks
see this post:
http://www.zen-cart.com/forum/showpo...postcount=2715
Hi,
First of all I'd like to thank you for the module, I've installed it and it works fine on my local pc but doesn't work on my server and I wonder if anyone can shed a light on it.
I'm running 1.3.9h and using zen lightbox 1.6.2. On the server I get the impress it's not working at all if you need to see check http://www.amazingworlds.co.uk. I've checked all the permissions on the files associated with lightbox and they seem fine. I'm kind of frustrated as it's such a cool app I would really like to get it too work.
The local copy is running through wamp 2.1d-x64 and works like a dream.
Any help would be appreciated. I have searched for a solution but with no luck.
Jeff
Thanks for the reply, double checked all the permissions and all are 755 with the images 644.
Didn't think there were any associated files in admin, again all images are set to 644. I don't have a configuration folder under admin though.
Have to admit I'm baffled :wacko:
Jeff
in your store....go to the admin link you set up for it...where you can see the IH3 controls too
under the configuration column go to images and make sure you have the settings set per the read me.
bmz_cache and images folder should be chmodded to 755 or 777 depending on your host
that is what I meant by the above statement
Sorry if it's obvious I didn't read all 289 pages of this thread, but...
I DID do a search on this site
and I DID do a search on google for the zen-cart threads.
Still I could not get my answer.
I want to add "This image has been watermarked with MY TEXT OF CHOICE" to my large image pop-ups in the lbBottomContainer above the lbCaption but I cannot see how to do this.
I went into slimbox.php and tried adding the code just before/after the div tags, but it's not working. I can see the code in the html when I check the page source, so I know it's applied, but I don't know enough about javascript to get this to work.
How do I do this?
an image of where you would like to have the wording would help the brain a lot...as well as an actual product link.
sorry brain went bye-bye for a bit and won't picture what ----where you want it
ok edit here---told ya I was lost
the lightbox doesn't seem to be working ---i use firefox and when I click your promo images there is no lightbox
Here's the new site I'm setting up and a sample product:
http://www.largoartgallery.com/galle...&products_id=2
When you click the image I'd like wording right above the title "Information Explosion" to say "This image has been watermarked with 'The Largo Art Gallery'".
Or, even better, if it says "This image has been watermarked with this image <show image>."
in includes/templates/your_template/templates/tpl_modules_main_product_image.php
find:
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '<br>logo added">' . 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>
replace the red wording ---which I added--- with what you want and it will appear just below the image name --leaving the <br> in place so it will drop it below the name
hope that is what you wanted but just in case use a duplicate of the file to edit and place a ~ at the end of the original file (after the php) tpl_modules_main_product_image.php~ to deactivate it.
That'll work.
I was hoping more of a centered text and a different font (style and weight) than the title, but this I can live with.
Thanks!
Any "installation guide" available? I downloaded it and it seems to be the whole zencart installation package, I only want to add this to an existing zencart installation.
Where did you download it from?
If you downloaded the latest version of Zen Lightbox from the Zen Cart Addons area of the forum, then the "Installation Guide" is the Read_Me file contained in the download package.
Unzip the package and take a look at each of the files located in each of the folders. One of the folders is named "readme" - it contains the Read_Me file ...which explains how to install this addon.
If you downloaded from anywhere other than mentioned above, get rid of it and download from the official downloads area.
yes they have a mind of their own...just think they must be "alive" since they learn...lol
I have a test store and live store--same server even and what works in test may not work totally on live and they have the exact same setup and files...lol
what version of IH are you using
what version of LB are you using
did you upgrade LB from an older version?