i installed the lightbox correctly, but on clicking the images the image open in a full window,
www.baanallc.com
:oops:
Printable View
i installed the lightbox correctly, but on clicking the images the image open in a full window,
www.baanallc.com
:oops:
Hi All,
I have just installed Zen Lightbox on a Fresh install of Zen-Cart 1.3.8a.
I kept getting CGI Configuration Error Everyone seems to be having and No one seems to know how to fix it!!
When I go to configuration/zen lightbox, it's there but there is nothing showing up in it?
After a lot of Trials & Errors, I figured out the easy fix/solution, it worked for me so I'm sure it should work for most of you.
ALL I did was ADD (zen_) to the line below, I will make it Bold so you see where it went:
SELECT @cgi := `configuration_group_id` FROM `zen_configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';
That's it, Before you install Zen Lightbox, change that code in the SQL before installing and you won't get any errors!
Always backup your database through PHPMyAdmin as you should Always have the latest backup copy just incase, that's how I managed to solve this through Trial & Error without too much trouble!
I am not sure why it hasn't been added to the actual Contribution as it would save a LOT of people a lot of headaches!
If the above worked for you, give me a shout so I know :)
Best Regards,
(rlexyd)
first off you need to go to your server files (c-panel) and set the configuration files permissions:
Warning: I am able to write to the configuration file: /home/pic13687/public_html/baanallc.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance. See this FAQ
2nd, double check to make sure you do have the files in the proper places...including the template folders you needed to create.
that is one of the places it needs to be added if you have a prefix for your tables. Back further in this thread is the actual places with the words in red and also if it will not install through the admin section then going to the actual database/sql tab will allow the installation.
Although it has been noted several times before this is good you did it again to keep it fresh for the noobs---the red part being the actual prefix of the database
This is the first part of the SQL installer:
INSERT INTO `zen_configuration_group` VALUES (NULL, 'Zen Lightbox', 'Configure Zen Lightbox settings', '0', '1');
UPDATE `zen_configuration_group` SET `sort_order` = LAST_INSERT_ID() WHERE `configuration_group_id` = LAST_INSERT_ID();
SELECT @cgi := `configuration_group_id` FROM `zen_configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';
INSERT INTO `zen_configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
(NULL, '<b>Zen Lightbox</b>', 'ZEN_LIGHTBOX_STATUS', 'true', '<br />If true, all product images on the following pages will be displayed within a lightbox:<br /><br />- document_general_info<br />- document_product_info<br />- page (EZ-Pages)<br />- product_free_shipping_info<br />- product_info<br />- product_music_info<br />- product_reviews<br />- product_reviews_info<br />- product_reviews_write<br /><br /><b>Default: true</b>', @cgi, 100, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '),
Hi DarkAngel,
Thank you for your reply :)
I found the previous post which you made the (zen_) in Red colour to show what needs to be changed, However the problem is I did as you said and it didn't install properly!
The only way I could get it to Install FLAWLESSLY and Got it to WORK 100% is by only adding one (zen_) to only one line which is shown below...
SELECT @cgi := `configuration_group_id` FROM `zen_configuration_group` WHERE `configuration_group_title` = 'Zen Lightbox';
So if the above worked 100%, I think it is safe that nothing else is needed since it is working the way it should and I see all the required links in configuration/zen lightbox.
Am I correct or do you think otherwise?
Please advise.
Best Regards,
this is the weirdest add on i have seen and trust me i have installed severa shops with it and sometimes have a problem with it installing...
i would just keep an eye on it. you got no error messages and all the controls are there and allowing you to set it to your liking so that is what counts.
Hi, I have just installed Zen Lightbox on a test server. My site is both in English and Bulgarian. All is working fine except this close buton missing only in Bulgarian version. I uploaded the same files in Bulgarian folder as in English. Where am I wrong?
got a problem here.. not sure is it repeated problem as the pages is too large for me to go through 1 by 1..
my lightbox doesnt work.. when I click on the pictures.. it doesnt have any lightbox effect. can someone advised where my problem at?
my site
thanks
Quote:
Originally Posted by Terrier http://www.zen-cart.com/forum/images...s/viewpost.gif
got a problem here.. not sure is it repeated problem as the pages is too large for me to go through 1 by 1..
my lightbox doesnt work.. when I click on the pictures.. it doesnt have any lightbox effect. can someone advised where my problem at?
my site
thanks
to both of you, please verify that you have uploaded the files to the right places and make sure it is the right files too, sometimes accidently uploading a file to the wrong folder will mess things up.
do you see the controls in the configuration section of admin?
any errors when you installed it
what template are you using
did you create a folder with your templates name in the area indicated in the files from the zip?
Hi DarkAngel
Not sure if it was u that answered this question b4 but I've looked up and down this thread and IH2 thread and can't find it now :no:
There was 1 file that had to be uploaded again to overwrite another to make this work properly again but I can't remember which 1 it was.. this is my problem when you click on main picture light box hangs as in continually loading... do u remember which file it was please..??
what i do when i find that a file is to get overwritten is to place a ~ right after the .php so it looks like .php~ that way the original one is still handy ...lol
oops those were for the IH2
try this one: includes/templates/your_template/templates/tpl_modules_main_product_image.php
Hi DA
No wasn't that 1 only file I got in there close to that 1 is:-
tpl_modules_main_product_jquery_image.php
I'm stumped spent 2 evening looking for it so far thought I had bookmark it lol..
Hi DA
Yeah I rechecked the files and for some reason that 1 was missing so have loaded the whole zen zip file again just to make sure everything is in place also did the same with IH2 did the nessesary with the SQL uninstall and reinstall still the same :(
The only 2 changes I've made resently is that I've added
Cross Sell - Just Another Cross Sell Mod and module manger and that works fine but has far as I can tell neither of the 2 modules over write any of the zen files so I'm scratching my head with this 1.
:cry:
another thing, in the cross sell mod you did not upload the sample.php files did you,
if so then remove them.
you did create your template named folders in the areas indicated right?
did you do this step too?
4. Open includes/languages/english/product_info.php
or includes/languages/english/YOUR_TEMPLATE/product_info.php
and add:
define('TEXT_XSELL_PRODUCTS', 'We Also Recommend :');
just above the final ?> and save it into includes/languages/english/YOUR_TEMPLATE/product_info.php
4.b. - Repeat step 4 for each of the other product types you intend to use (ie: product_music_info, document_general_info, etc).
5. Now edit your product-info template file (tpl_product_info_display.php) and insert the following code
at the point where you wish the Cross-Sell box to appear. Usually best at the end of the file:
---------------------------------
<?php
require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
?>
5.b. Repeat step 5 for any other product types for which you wish to enable cross-sell display.
(ie: tpl_product_music_info_display.php, etc)
Hi DA
Yeah did everything right for the cross sell no probs there.
just the lightbox hanging I have the problem with, everything else is working fine.
B
Hi DA
Solved the problem now thankyou... I decided to uninstall the lightbox in the end and went with the jqzoom instead, now everything works perfect thx again for your help.
Rgds
B
you are very welcome...sorry i wasn't much help though...but that would have been my last suggestion to do for I have found that on some ---especially paid for java templates--that the lightbox from zen will not behave.
that is mainly due to the coders of the template changeing the coding about or adding/deleting much that zen lightbox gets lost.
Hello there,
I'm having an issue with something and was hoping someone might know the solution:
Basically, i've installed zen lightbox within my site and everything has worked wonderfully.
Recently i added a feature to my product image page allowing the product information to be displayed in a four tabbed AJAX menu box. Since the addition of this, lightbox no longer works and the large images just load in a popup window like default.
I have narrowed the problem down to three lines of code that work in conjuction to cause the proplem with light box, but are necessary for the AJAX menu to function.
The file i have modified is includes/templates/template_default/templates/tpl_product_info_display.php
And the three lines of code causing the problem are:
<script type="text/javascript" src="scripts/prototype.lite.js"></script>
<script type="text/javascript" src="scripts/moo.fx.js"></script>
<script type="text/javascript" src="scripts/moo.fx.pack.js"></script>
Does anyone notice anything about these lines that would cause lightbox to stop functioning and if so any suggestions on how to remedy the problem...?
I apologize for the poor explanation and will try my best to clarify if asked... :)
Any help is welcomed!! Thank You!!
In short... no! jquery and mootools are two different libraries. and don't play will with each other.
Loading the code within the body tag vs the head could be one problem.... and if the name means it's using the mootool core, then its loading in the wrong spot and over writing as DA stated.. you may be able to run the script just by using the 'prototype.lite.js' file and leaving the others out... ZenLightbox is using both modified and default mootool core files version 1.2.1..
Any ideas if ZenLightbox well be ported over to 1.2.4 version of mootools anytime??
I want to convert my tree menu over to mootools, it be nice to have both running on version1.2.4... Already tried a quick switch out of the core and it didn't work out.
it is located here:
http://eazyecommerce.com/platforms/z...query-lightbox
it is free
Not sure if this is of any use to you, Slimbox... http://www.zen-cart.com/index.php?ma...roducts_id=830 - I prefer it over the full Lightbox add-on as it is a stand alone mod, easy to install, easy to uninstall - I only had problem after problem with the full Lightbox mod and gave up on it after a short while
You can see the slimbox version in action here - http://www.bwe-invest.cz/index.php?m...&products_id=1
Actually, Fuel and Zen are both using Christophe Beyls Slimbox version... Fuel, version 1.3, Zen version 1.67 which is why I went with Zen.....
The latest Slimbox version of his is 1.71 which uses mootools 1.2.4... and wasn't that hard to upgrade ZenLightbox to after all.
Thanks for all your previous advice DarkAngel!
I attempted to install jquery lightbox instead of Zen Light box and the installation went well.
Although, I am still having the same issue with jquery as i did with zen. Perhaps the way i have the tab menu installed is not the best way to do it... (which is probably the case :|)
Overall, what i'm trying to acheive is this:
I obviously want the lightbox effects for larger image previews, but in addition I want to be able to have the tab menu functional on all product info pages.
So, what i have done is just inserted the code for the tab menu into:
includes/templates/template_default/templates/tpl_product_info_display.php
thereby causing the conflict with the three lines of code i've mentioned in a previous post...
The code for the tab menu i'm using can be found here: http://www.nyokiglitter.com/tutorials/tabs.html
If anyone is able to shed some additional light on the best way to acheive what im looking for, i'm all ears...
I may just have to go an alternative route and use a different tab menu...
according to that site the coding is a bit old so maybe that is hampering things a bit.
this is what my veiw source says about the lightbos stuff in the same section you have your code:
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_header_menu.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_reward.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/as-Gold/css/stylesheet_zen_lightbox.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/as-Gold/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/as-Gold/jscript/jscript_imagehover.js"></script>
<script type="text/javascript" src="includes/templates/as-Gold/jscript/zen_lightbox_mootools_custom.js">
maybe substituting the js for lightbox where the one for the other one is might help...I really don't know since I try to recode and sometimes butcher instead...but other times it actually works.
Do you have a folder in /includes/templates/YOUR_TEMPLATE/buttons/Bulgarian
with a full set of buttons?
The Accordion effect is something Mootools can do, look to their web site to see a demo of it.,,, but you need to have the full set of core files and same version of code to get everything to work. That's why I upgraded mine and now working on a tree menu, and I'll more then likely use the accordion tabs for something as well.
The install went okay, other than I had to change the SQL statment and append zen_ in front of the table names and then the update installed. However when I click the larger image it just goes to a new page and only displays the image no hover over popup window. Can anyone shed any light as to the problem.
I thouht I followed the directions to a T. Everything shows correctly in the Admin area.
My website is http://www.CommunityArtShop.com
Thank you in advance for your help. :smile:
Mike
yup no lightbox when you click to see larger image.
make sure you uploaded ALL the files to their right places (including any folder you needed to create with your templates name on them) and make sure your files found the right home....just one left out will muck things up a bit.
Woot, finally found this thread.
I need help. According to the configuration for initial height and width, I'm suppose to have a resize animation option. Where is it?
I don't want it resizing the frame. I want the frame to be a set px with white space.
Help needed with install on a custom template
This is my original file of my template :
<?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">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<div class="image"><a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a></div><a class="name" href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php
echo '
<div class="image">
<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) . '
</a>
</div><br />
<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank"><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span>';
?>
</noscript>
</div>
And when I instal the file from the lightbox pop up won't work
I tried it with winmerge but it want work for me
Hopefully somebody can merge thenm for me in the right way
Below is the lightbox file I have
<?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">
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php
if (ZEN_LIGHTBOX_STATUS == 'true') {
if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
$rel = 'lightbox-g';
} else {
$rel = 'lightbox';
}
?>
<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) . '">' . 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>
<?php } else { ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . 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>
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php } ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<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>
Hello, I have witnessed the same issue and am rather baffled as when I tested lightbox (v1.5) on my local copy of ZenCart (v1.3.8a) (running on a windaz machine), the feature worked quite well (no duplication of the main image, with or without the gallery mode).
The other issue I faced was with the install script (I have now seen various posts with similar issues so I am not going to repeat that here). It looks to me like a configuration issue than any flawed logic in the PHP code.
Well, it's an annoyance to see the same image twice but lightbox is still far better than the horrible default pop up window.
An update on this. A closer inspection of the live system revealed that an older installation of Slimbox (which had also failed to run on the live system for me) had not been removed cleanly. Re-installing lightbox improved the situation and with the main image excluded from the gallery, I don't see the duplication issue.
Everything works fine but I cant see Zen Lightbox configuration in admin :( I used uninstall.sql and install.sql ....
Please help me
Demo here ;) version 1.5
www.koralky-smrzovka.cz/cz/
I'm having a problem with uninstalling Lightbox. After (successfully) running the uninstall SQL, when someone tries to view a larger image, the new window puts up this text instead of the image:
// This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_POPUP_IMAGES');
Any idea what's causing this?
did you remove the files too? make sure in admin that it is uninstalled by checking for the controls under configuration.
in your template folder/templates (the one for the template you are using) remember to replace this file : tpl_modules_main_product_image.php with the one from the upgrade (if you upgraded yet), if not then from the 1.3.8 installation.
No, I didn't remove the files; I didn't realize that was necessary. I wonder if I could get away with just replacing that one file that's been changed.
Thanks.
never hurts to try...i went to the site and see the lightbox works (without watermark) and the small image has the watermark.
did you ever activate for the med image when seen by hovering small image to have the watermark.
I notice that your small image and the hover of it are the same size...maybe that is why the watermark does not want to cooperate with the large image...have you tried increasing the size of your medium image?
sorry I realize that the last part is for the ih2 forum so will also add it there.
?? My medium images are 160 pixels wide, vs. 80 for the small. (I just experimented with bumping them up to 240...apart from getting a bigger medium image, no changes.)
Not sure what you mean by "did you ever activate for the med image when seen by hovering small image to have the watermark."
sorry about that, I meant:
configuration/images
IH watermark medium image---yes
IH zoom medium images--Yes
IH zoom image hotzone--yes
IH watermark large images---yes
i have
small images set to 155x155
subcategory at 175x175
product info at 225x225
with all others set to 155x155
Hi am i using zen light box on version 1.3.8 havn't updated yet but plan on it. it has been working great for months now and then all of a sudden i check my website in IE and when you go to a products landing page it gives several script errors. in firefox it works fine. I personally don't use IE but some people do so any help would be appreciated. http://www.dannaoshee.com
up me too
when you noticed this was it because someone told you or was there another problem you were looking into.
had you tested it in IE when you first installed it?
when you installed it did you overwrite any files or did you put them into fodlers with your templates name? especialy those in the templates folder
Hi Guys
Can't seem to get this working I have just installed 1.39b and done a fresh install on zen light box 1.5 but it seems to freeze in FF and safari however IE works fine any ideas my site is www.uniqueliving.com.au/zencart
thanks for your help
Hi Uniqueliving, How's the weather in the sunchine state :)
Just tested your website, and you are correct, the image appears in IE but Not FireFox.
The Box opens up but the image does not display.
Do me a favour, I noticed all your images contain () in the name, try to rename an image to just a text and see if that makes a difference?
Zen-lightbox is very touchy and that might be the trick?
Let me know how you go?
Best Regards,
Hey Champ,
I just tested it for you.
The product image was diplayed in FF, but when I went to this product (www.uniqueliving.com.au/zencart/index.php?main_page=product_info&cPath=9_8&products_id=44), it didn't work, I see the image name still contains () in the title, you're best off removing it from all the names, especially since it did make a difference.
Now for problem no 2, Even though I see image did display, the zen_lightbox buttons Didn't display?!
They show up on IE, but not FF!
If you are 100% sure you uploaded the correct files and folder to the correct paths, then why not try to switch template back to the original Classic Green and see if it will work then, that way you can narrow down the error as it might be coming from your template!
Best Regards,
i use FF all the time and went to your site...the images came up in the lightbox but it took forever to load it
do try the suggestion and let us know
Yes,
You would need to upload the zen_lightbox mod files which are found in this folder on your computer (zen_lightbox_1-51/includes/templates/YOUR-TEMPLATE-FOLDER) to your website's (includes/templates/classic) folder!
See how that goes.
Best Regards,
that is something that has never shown on mine either...the buttons
not in classic or anyother template
ok i think it might be the template but im not sure as to how to fix it
Went to have a look at your website and still saw your custom template, you must have changed it back!
If you used the classic green template and it worked fine for you, then the problem must from your template, not much I can do for you there. Maybe create a new thread in the custom template/css section.
1) Try checking your stylesheets.css, might be some broken links there.
(Remember, you said it worked in the classic template, and that it also works fine in IE, but not in FF, which leads me to think the problem might your stylesheet!)
You should download (Firebug in FF) and inspect it!
2) I know I said this before, please make sure the required files have been uploaded in you custom template directory, check each and everyone!
3) Try replacing just your custom stylesheet with the original classic stylesheet.css and see if that also makes a difference. That way you can tell for sure if it's from your custom stylesheet.
Last option, if the above doesn't work!
4) Try Uninstalling the whole zen_lightbox from your website, remove all uploaded folders and run the Uninstall.sql from your admin.
Then you can try re-installing it again, that might work.
Let us know how you went.
Best Regards,
Im new to this and could use some help.
I first tried fual slimbox and had problems so uninstalled that and installed zen lightbox. Now my only problem seems to be is at the bottom of the pictures I am getting ZEN_LIGHTBOX_COUNTER_IMAGE 1 ZEN_LIGHTBOX_COUNTER_OF 2
Of course it depends on the amounts pics.
If I have 5 then it will have the same thing up to 5.
Can someone please take a look and let me know what I need to do?
here
It does not do it on single pictures. Only on multiple images.
P.s sorry that you have to scroll down the page. My pictures are too large and need to be resized so they fit in the page better.
Thanks so much...
I had that same text at one time but I have looked thru all the files in the ones to upload and can't find where it is at...but I know it is one of them
I have large images too so people can see the details and mine are larger than yours...see link in my signature...so the size is fine...no sense (to my thinking) to have larger images if they are not going to be larger than the thumbnail and show little detail.
I have never had the next button nor the ability to see the additional ones either...so hopefully someone will be able to tell you what needs to be done, sorry
also i forgot to ask what version are you using...1.5?
The file should be at \includes\languages\english\extra_definitions\YOUR_TEMPLATE\zen_lightbox.phpQuote:
I had that same text at one time but I have looked thru all the files in the ones to upload and can't find where it is at...but I know it is one of them
and contain the text.
Two locations for the images, the folder at \includes\templates\YOUR_TEMPLATE\buttons\english\zen_lightboxQuote:
I have never had the next button nor the ability to see the additional ones either...so hopefully someone will be able to tell you what needs to be done, sorry
should have the next, previous and closed buttons.
The other folder \includes\templates\YOUR_TEMPLATE\images\zen_lightbox
has just the spinner for loading progress.
File to edit for additional images is includes\modules\YOUR_TEMPLATE\additional_images.php test with script turned off... if the normal popup window works with additional images, then the lightbox should work too... if not, check your edits. Hope that helps out a bit...
that is where i thought it would be too but this is the text that mine has---and this is from a fresh unzipped archive of the lightbox files:
as for the other, frankly I don't remember editing anything and now I have IH2 also but still no next or previous buttons showing nor do they go from one image to the next but I can live with it that way so no problem.Code:<?php
/**
* Zen Lightbox
*
* @author Alex Clarke ([email protected])
* @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: zen_lightbox.php 2008-12-08 aclarke $
*/
define('ZEN_LIGHTBOX_VERSION', '1.5');
define('ZEN_LIGHTBOX_RELEASE_DATE', '2008-12-18');
define('ZEN_LIGHTBOX_ALT_PREVIOUS', 'Previous');
define('ZEN_LIGHTBOX_ALT_NEXT', 'Next');
define('ZEN_LIGHTBOX_ALT_CLOSE', 'Close');
define('ZEN_LIGHTBOX_COUNTER_IMAGE', 'Image');
define('ZEN_LIGHTBOX_COUNTER_OF', 'of');
?>
after re-reading your statement I see you meant edits to the store files not zen lightbox files...sorry
Zen Lightbox v1.5 and Link Manager 3 don't work together, and I can't determine why. Here's what I know:
1) These two mods share NO files in common.
2) I've read elsewhere in the Community Forum where this problem occurs regardless of other mods that may be running, on clean installs of 1.3.8a with Lighbox 1.5 (including much earlier versions) and Link Manager 3.
2) If the Link Manager layout box is enabled, it appears and works perfectly, however it completely breaks Lightbox, i.e. clicking on the larger image on a product page brings up the larger image in same browser window (not a new browser window, as was the default prior to installing Lightbox).
3) If you simply disable the Link Manager layout box by turning it off via the Admin, it disappears as expected and Lightbox works beautifully again after a page refresh.
PLEASE, CAN SOMEONE HELP ME??! I WILL DONATE IF YOU HELP ME FIX THIS PROBLEM SO I CAN RUN BOTH TOGETHER!!!:cry:
I have seen a handful of similar posts in various threads with the EXACT SAME symptom I just described, but no resolutions anywhere. The Link Manager developer simply replies with the same reply everytime someone mentions this problem, (I'm paraphrasing) "Link Manager doesn't share any files in common with Lightbox (Slimbox)." I posted this same problem on the Slimbox thread and received no response.
I really need both mods to work together and I can't figure out why. Possible conclusions I've reached but can't confirm:
1) There's a conflict with some variable, function or constant name somewhere??
2) There's some CSS conflict somewhere??
My site: flairbyjdn.com
Zen Version: 1.3.8a
(I can provide additional information, privately, if you are able to assist me, e.g. mods I'm running, ftp access, etc.)
I don't know why it won't work either because lightbox is a more richer slimbox...I love it.
However, if you list the other mods and versions of them then you might be able to get better help...sometimes it might be a different mod that is in control and not the one we think is.
Thank you for your quick reply. I love lightbox with IH2, as well. But, I really need a reciprocal link manager, hence my installation of Link Manager 3 - very easy to use and works great with the glaring exception that turning on the sidebox breaks lightbox.
Here are the mods I've successfully added to my base 1.3.8a ZC install:
Cherry Zen 1.7
USPS_UDPATE_2010_0104_B
LocalSalesTaxMod2.4
image_handler_for_vs_Ver2-0rev7
creditcardsidebox
ceon_back_in_stock_notifications_2.2.4_for_zc
Logo Sidebox
comodo_instant_ssl_site_seal_1-0
zen_lightbox-v1.5-20081218
ceon_uri_mapping_3.2.4_for_zc
fec (installed but completely turned off)
contactus_recaptcha_v1.1
SimpleGoogleAnalytics
dymo_1.1
sitemapXML
security_patch_v138_20090619
Blank_Sidebox_2.0
Order Manager 1.0
YahooConversionTracking_v1.0.0
EmailAddressExporter
google_base_feeder
FCKEditor
About_Us
GV_ADMIN_EDIT_1.1
master_password
Admin Activity Report 1.3
Links Manager 3 (installed, but sidebox turned off due to issue I'm trying to solve)
The only additional custom coding that's been done is to add reCaptcha to a couple of other forms (thanks to Conor from Ceon - one of the great ZC mod developers, in my opinion).
BTW, the symptom I explain above is identical on IE and Firefox and is identical across multiple workstations - so, it's not client specific.
Again, any help would be greatly appreciated (and rewarded).
Regards,
John
that will help the more knowledged for helping I am sure.
please forgive me but what exactly is link manager for...just adding links to the sidebox for recips of another site that offers to use your link at theirs?
or does it track clicks like the banner manager does.
This sure is an interesting discovery.
Noted exactly the same problem on my site www.chilloutfashions.com.au this morning (ZC 1.3.9b) and initially thought that the upgrade from 1.3.9a to b may have been responsible for the failure of Zen Lightbox. That ofc is not the case :no:
Re-installed Zen Lightbox - same problem. Came across your post, disabled the Links sidebox and bingo...
I will make the author of Links Manager aware of this occurrence - lets see what develops.
Here is a (not so elegant) fix: http://www.zen-cart.com/forum/showpo...postcount=1634
:smartalec:
The 1 and 2 is added by the script other wise, it's the same as mine. Lack of buttons... lightbox is looking for the folder 'Zen_Lightbox' within the language button folder. First time I installed I just moved the buttons, not the folder which gave me missing buttons.Quote:
that is where i thought it would be too but this is the text that mine has---and this is from a fresh unzipped archive of the lightbox files:
Not having any problems with Link Manager and Lightbox.... but I don't use the standard Link manager sidebox nether. I have the link in my own sidebox.Quote:
Re-installed Zen Lightbox - same problem. Came across your post, disabled the Links sidebox and bingo...
The script file in Link Manager sidebox call 'function resize()' which conflicts with Mootools, thus the error. Should be a walk around for this.... but I'm off to the SQF to make maps for a fire team....
Thank you for the "less than elegant" solution. I have already posted to the Link Manager thread, but the creator has never responded with a fix/workaround (that I can see). Actually, several people have posted the same symptom on the Link Manager thread and received similar responses. Real bummer I can't get both to work as they are designed, as the Link Manager sidebox allows you to have additional "categories" for affiliates related to what is being sold on your site.
You can see Link Manager in action at the creator's demo site:
http://clydedesigns.com/index.php?main_page=links
Can you show me where this function is being called.
Here is the code for the links manager sidebox. (includes/modules/sideboxes/links_box.php
AND includes/templates/template_default/sideboxes/tpl_links_select.phpPHP Code:
<?php
/**
* Links Box
*
* @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_links_submit_default.php 3.5.3 4/16/2010 Clyde Jones $
*/
$links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
$links = $db->Execute($links_query);
if ($links->RecordCount()>0) {
$number_of_rows = $links->RecordCount()+1;
$links_array = array();
if ($_GET['link_categories_id'] == '' ) {
} else {
$links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
}
while (!$links->EOF) {
$link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
$links_array[] = array('id' => $links->fields['link_categories_id'],
'text' => $link_categories_name);
$links->MoveNext();
}
require($template->get_template_dir('tpl_links_select.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_links_select.php');
$title = BOX_HEADING_LINK_CATEGORIES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
//EOF
PHP Code:
<?php
/**
* Links Select Sidebox 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_links_submit_default.php 3.5.3 4/16/2010 Clyde Jones $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content.= zen_draw_form('links', zen_href_link(FILENAME_LINKS, '', 'NONSSL', false), 'get');
$content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();
$content .= zen_draw_hidden_field('main_page', FILENAME_LINKS) . '</form>';
if (BOX_DISPLAY_VIEW_ALL_LINKS == 'true') {
$content .= '<br /><a href="' . zen_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_VIEW_ALL_LINKS . '</a>';
}
if (BOX_DISPLAY_SUBMIT_LINK == 'true') {
$content .= '<br /><a href="' . zen_href_link(FILENAME_LINKS_SUBMIT, '', 'SSL') . '">' . BOX_INFORMATION_LINKS_SUBMIT . '</a>';
}
$content .= '</div>';
//EOF
Seems this fix works:
http://www.zen-cart.com/forum/showpo...postcount=1648
Hi, ZC user,
How to configure the Zen Lightbox to show images in the full size when somebody click on the smaller picture?
:blush:
You just need to follow the install instructions contained in the package.
I correctly install a Zen Lightbox, byt I can't configure to show my images in try size! Hay to do thet???
:no:
Hi
Has anyone used zen lightbox to display attribute images - they are currently displayed in a pop up box ? LB works nicely with main image and additional product images but we want to display attribute images (colour variants of main product) - I'm guessing that its a coding change to remove the call to display the popup box and replace with the LB - any clues?
Hoping someone can help me here...
I'm just putting together a super simple implementation of this add-on on my own. I suspect, that the problem I'm having would have had to be resolved by others, so I'm hoping they can help.
I tried Lightbox, but am now using Slimbox, as it's smaller, and displays long title text nicer in the popups than LightBox.
The only changes I made were as follows:
In html_header.php, I added:
And my tpl_modules_main_product_image.php file now looks like:PHP Code:
<link rel="stylesheet" href="slimbox/css/slimbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="slimbox/js/mootools.js"></script>
<script type="text/javascript" src="slimbox/js/slimbox.js"></script>
Couldn't really get much simpler. When I click on the image, the Slimbox popup appears, but it just wait indefinitely. The exactly same thing happened when I used LightBox instead.PHP Code:
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<div id="productMainImage" class="centeredContent back">
<?php
echo '<a rel="lightbox" href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>';
?>
</div>
Does anyone know why the image is NOT loading?
Right now I have product image named as test.jpg. and additional image as test_demo.jpg.
Lightbox works perfect for test.jpg, but when I click the small image of test_demo.jpg, a pop up window showed up and showed the full-size image of test_demo.jpg.
How to make lightbox work on additional images? Thanks!
I copied 'additional_images.php' from the lightbox installation and place it under includes/modules/your-template.
I do see the additional images on the product pages but not with the Lightbox.
Please help me - I have tried to find any solution in this thread but didn't find a clear answer...
Aditional images work by adding a number to them, test.jpg, test_01.jpg, test_02.jpg and so on...
follow the tutorial on creating and using images
https://www.zen-cart.com/tutorials/index.php?article=58
The main product images popups twice, ready frustrating.
I checked this post and found many people have the same situation.
Anybody help :unsure:
i would like to know, how can i preload the product image to cache on page load itself. So when the user click ,it will show the image immediatly even on slow internet connection.
Morning,
I have just downloaded the ZEn lightbox / I use 1.9.3c also just upgraded.
I think/hope I have carried out the installation correctly.. the line is in the config etc but there is no actiona t all. Images still open in the typical new window.
Appreciate if some kind soul could have alook as I am new at all this. Thanks in advance.
(By the way, do we all have ....sideboxes/tpl_links_select.php because I cannot find it anywhere.
www.creationsdelphine.com/catalogue/
what do you mean it is in config.....do you mean the admin section?
did you upload the files to the exact same place as where the zip had them?
Quote:
(By the way, do we all have ....sideboxes/tpl_links_select.php because I cannot find it anywhere.
www.creationsdelphine.com/catalogue/
you have that file if you have the link manager installed...otherwise I don't have it either...lol
what template are you using?
when mine opens up from the small image it shows that same image as the first one to allow viewers to see the larger size.
otherwise you might try admin/configuration/lightbox and uncheck the setting to show the first image in slidewhow....something like that. see if that works
if you are speaking of the two stores in your signature then....
you also have image handler installed.
both of these items have the same additional images file but with their own information.
copy the following code into a file then save it and replace the one you have (in your override folder --- the folder with your templates name in includes/modules/your template folder)...it should give you the lightbox and still have the IH2 working right.
hope it helpsCode:<?php
/**
* additional_images module
*
* Prepares list of additional product images to be displayed in template
*
* @package templateSystem
* @copyright Copyright 2003-2007 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: additional_images.php 6132 2007-04-08 06:58:40Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (!defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');
$images_array = array();
if ($products_image != '') {
// prepare image name
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = str_replace($products_image_extension, '', $products_image);
// if in a subdirectory
if (strrpos($products_image, '/')) {
$products_image_match = substr($products_image, strrpos($products_image, '/')+1);
//echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' - base ' . $products_image_base . '<br>';
$products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
$products_image_base = $products_image_match;
}
$products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
if ($products_image_directory != '') {
$products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";
} else {
$products_image_directory = DIR_WS_IMAGES;
}
// Check for additional matching images
$file_extension = $products_image_extension;
$products_image_match_array = array();
if ($dir = @dir($products_image_directory)) {
while ($file = $dir->read()) {
if (!is_dir($products_image_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
// if(preg_match("/" . $products_image_match . "/i", $file) == '1') {
if(preg_match("/" . $products_image_base . "/i", $file) == 1) {
if ($file != $products_image) {
if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {
// echo 'I AM A MATCH ' . $file . '<br>';
$images_array[] = $file;
} else {
// echo 'I AM NOT A MATCH ' . $file . '<br>';
}
}
}
}
}
}
if (sizeof($images_array)) {
sort($images_array);
}
$dir->close();
}
}
// Build output based on images found
$num_images = sizeof($images_array);
$list_box_contents = '';
$title = '';
if ($num_images) {
$row = 0;
$col = 0;
if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
$col_width = floor(100/$num_images);
} else {
$col_width = floor(100/IMAGES_AUTO_ADDED);
}
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// bof Zen Lightbox 2008-12-11 aclarke
if (function_exists('handle_image')) {
$flag_has_large = true;
} else {
// eof Zen Lightbox 2008-12-11 aclarke
$flag_has_large = file_exists($products_image_large);
// bof Zen Lightbox 2008-12-11 aclarke
}
// eof Zen Lightbox 2008-12-11 aclarke
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// bof Zen Lightbox 2008-12-11 aclarke
if (function_exists('handle_image')) {
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
}
// eof Zen Lightbox 2008-12-11 aclarke
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
// Link Preparation:
// bof Zen Lightbox 2008-12-11 aclarke
if (ZEN_LIGHTBOX_STATUS == 'true') {
if (ZEN_LIGHTBOX_GALLERY_MODE == 'true') {
$rel = 'lightbox-g';
} else {
$rel = 'lightbox';
}
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
} else {
// eof Zen Lightbox 2008-12-11 aclarke
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
// bof Zen Lightbox 2008-12-11 aclarke
}
// eof Zen Lightbox 2008-12-11 aclarke
$noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
// $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
$link = $script_link . "\n " . $noscript_link;
// $link = $alternate_link;
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => "\n " . $link);
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
} // end for loop
} // endif
?>