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

Zen Lightbox addon [Support Thread]

Views: 952,703

Results 2,021 to 2,040 of 3,722
23 Jun 2010, 9:37 PM
#2021
monsunemoon avatar

monsunemoon

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

Hi I need some help with Zen Lightbox. I have a product info page here

http://www.mygamedemos.com/store/index.php?main_page=product_info&cPath=82_84&products_id=234

I can get the gallery mode / lightbox to work on the main product image at the top, by putting this file:

zen_lightbox-v1.5-20081218\includes\modules\pages\product_info\jscript_zen_lightbox.php

which contains this:

<?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: jscript_zen_lightbox.php 2008-12-09 aclarke $
 */

if (ZEN_LIGHTBOX_STATUS == 'true') {
  require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/slimbox.php');
  require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/autoload_default.php');
}
?>

into includes/modules/pages/product_info:

However, my problem is that the light box / gallery mode doesn't work for the other images on the page (the circular makeup shades).

If I replace the includes/modules/pages/product_info/jscript_zen_lightbox.php with the other jscript_zen_lightbox.php from *zen_lightbox-v1.5-20081218*

which contains this:

<?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: jscript_zen_lightbox.php 2008-12-17 aclarke $
 */

if (ZEN_LIGHTBOX_STATUS == 'true') {
  require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/slimbox.php');
?>

Slimbox.scanPage = function() {
	$$(document.links).filter(function(el) {
		return el.href && el.href.test(/\.(<?php echo str_replace(',', '|', str_replace(' ', '', ZEN_LIGHTBOX_FILE_TYPES)); ?>)$/i);
	}).slimbox({<?php require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_lightbox/options.php'); ?>]}, null, function(el) {
		return (this == el) || (this.parentNode && (this.parentNode == el.parentNode));
	});
};
window.addEvent("domready", Slimbox.scanPage);
//--></script><?php } ?>

the light box function works for both the main product image at the top of the page and the other images on the page (the circular makeup shades). But the gallery mode doesnt work on the main product image.

Is there any way to get the gallery mode to work on the main product image AND on the other images on the page? Please help :clap:

26 Jun 2010, 3:36 PM
#2022
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

limelites:

I use this mod already on my site for the product info page to enlarge the main image and additional images. It works a treat for me there.

My question is, how would I get it to work on a defined page like this one:

http://www.silkblooms.co.uk/index.php?main_page=hire_arrangements

Rather than pasting that big map in there, I'd rather thumbnail the map and have it open in a lightbox.

Do I need to insert javascript into the HTML I'm using on this page? Any pointers greatly appreciated.
You need to copy the includes\modules\pages\product_info\jscript_zen_lightbox.php to your includes\modules\pages\hire_arrangements\jscript_zen_lightbox.php That will load the script into your page. Then its just a matter of setting up the links, rel="lightbox" and rel="lightbox-g".

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
``` basicly, something like this..

<a href="images/large.jpg" rel="lightbox-g" title="My very large image"><img src="images/small.jpg" alt="My very large image" title=" My very large image" width="65" height="80" /><br />Click for larger image</a>'

26 Jun 2010, 5:24 PM
#2023
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DaveWest, thank you. That worked beautifully.

28 Jun 2010, 8:17 AM
#2024
monsunemoon avatar

monsunemoon

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Thanks davewest, that also fixed my problem.

30 Jun 2010, 7:32 PM
#2025
compuweb avatar

compuweb

New Zenner

Join Date:
Aug 2009
Location:
Limerick, Ireland
Posts:
91
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Hello All,

I have Zen Lightbox installed and working smoothly with Image Handler 2 so thank you to all for those mods. My questions is as follows;

The site in question is a cattle related site.

I have multiple images on the main product detail page but the images are of different animals (dam, sire, etc). Is it possible to edit/remove the image descriptions on the Lightbox as it is currently using the product name (animal name) as the description but it is not the same animal in all images?

I know it might sound strange but have a look at the link below to see what I mean.

http://www.semenshop.ie/catalog/index.php?main_page=product_info&cPath=1_7&products_id=1

The site is for bulls and not the human kind in case you are wondering about the domain name ..... :laugh:

7 Jul 2010, 2:57 AM
#2027
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

MB1:

i ran into this problem trying to get rid of the additional images click text to enlarge i'm not sure if it is a lightbox issue or not
Little vag on your question, but I'll give it a try.... the code in the link was for Fuel Lightbox, not Zen Lightbox, however, both use Slimbox just a little different way of activating it.

Look for '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'and remove all but the '</a>'Same with this one ```
'<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'


Or you could change TEXT_CLICK_TO_ENLARGE to something else, add a define to english.php and change it there!
8 Jul 2010, 3:10 AM
#2028
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

This mod is not working with my template for some reason. I have spent hours trying to figure out why! If I switch to classic template it works perfectly. I have used WinMerge to compare the mod files and the template files and just don't see where the issue is. However, if I view the id and class details using FF developer tools, I can see that the lightbox css is not showing up for some reason. The lightbox css file is in the correct place. It seems like the file includes/classes/zen_lightbox/slimbox.php is not being called for some reason. I am using a purchased template and am just not sure where to go to make the template use the slimbox.php file for images...

I really appreciate any help!

TIA!

9 Jul 2010, 9:59 AM
#2029
pinkleopard avatar

pinkleopard

Zen Follower

Join Date:
Jun 2009
Posts:
383
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Does Zen Lightbox work 1.3.9d newest download? Any problems? Thanks!

9 Jul 2010, 8:25 PM
#2030
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Danielle:

This mod is not working with my template for some reason. I have spent hours trying to figure out why! If I switch to classic template it works perfectly. I have used WinMerge to compare the mod files and the template files and just don't see where the issue is. However, if I view the id and class details using FF developer tools, I can see that the lightbox css is not showing up for some reason. The lightbox css file is in the correct place. It seems like the file includes/classes/zen_lightbox/slimbox.php is not being called for some reason. I am using a purchased template and am just not sure where to go to make the template use the slimbox.php file for images...

I really appreciate any help!

TIA!

make sure you have uploaded all the files correctly...especially the ones that are labeled as YOUR-TEMPLATE-FOLDER

those need to go into your template that you are using for your store.

@pink leopard:

yes it will work just remember to merge any files that are shared by voth the store and any other addon you have installed and of course lightbox

9 Jul 2010, 8:57 PM
#2031
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

make sure you have uploaded all the files correctly...especially the ones that are labeled as YOUR-TEMPLATE-FOLDER

those need to go into your template that you are using for your store.

Yes, I've checked and double-checked and all of the files are in their correct spots. It's something that has been customized in the template that is causing the issue. When I look at the css on the product page, I can see the lightbox css in the css file, but when I view the id and class details for the image itself, the lightbox classes and ids aren't there.

9 Jul 2010, 9:14 PM
#2032
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Danielle:

Yes, I've checked and double-checked and all of the files are in their correct spots. It's something that has been customized in the template that is causing the issue. When I look at the css on the product page, I can see the lightbox css in the css file, but when I view the id and class details for the image itself, the lightbox classes and ids aren't there.

Ah finally found it! It was a bit of javascript that was hard-coded into the tpl_main_page.php file. The lightbox now works, but there are no close, previous, or next buttons.

10 Jul 2010, 12:06 AM
#2033
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Danielle:

Ah finally found it! It was a bit of javascript that was hard-coded into the tpl_main_page.php file. The lightbox now works, but there are no close, previous, or next buttons.

what template are you using?

there are some that will not work right with lightbox or the other slimbox but do with jquery one

10 Jul 2010, 1:15 AM
#2034
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

what template are you using?

there are some that will not work right with lightbox or the other slimbox but do with jquery one

It was a template that my client purchased somewhere. I got the buttons to show up using a fix posted a few pages back in this thread :) It's all working great now!

11 Jul 2010, 10:35 PM
#2035
kaddie avatar

kaddie

New Zenner

Join Date:
Feb 2009
Location:
In the Woods of Texas
Posts:
63
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I can't seem to get Lightbox 1.5 to work. I have installed 2 times. (removing the first uploads of course). My database inserts are their and look fine. I have TabProducts and IH Handler installed in a custom made template. I have read all thru the forum (it took me 2 days to read it all!). I cannot seem to fix my issue. The mootools. js files are not loading. When I view source on the product_info page the js script/s are not viewable anywhere.

Help appreciate. My not completed product page is here: progroom dot com/shop/index.php?main_page=product_info&cPath=170_173&products_id=1512

Help so appreciated!!

Kaddie

12 Jul 2010, 1:02 AM
#2036
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

kaddie:

I can't seem to get Lightbox 1.5 to work. I have installed 2 times. (removing the first uploads of course). My database inserts are their and look fine. I have TabProducts and IH Handler installed in a custom made template. I have read all thru the forum (it took me 2 days to read it all!). I cannot seem to fix my issue. The mootools. js files are not loading. When I view source on the product_info page the js script/s are not viewable anywhere.

Help appreciate. My not completed product page is here: progroom dot com/shop/index.php?main_page=product_info&cPath=170_173&products_id=1512

Help so appreciated!!

Kaddie

which template are you using for your store...one you customized or one purchased, sometime the template does not play nice with the add-0ns

12 Jul 2010, 1:46 AM
#2037
kaddie avatar

kaddie

New Zenner

Join Date:
Feb 2009
Location:
In the Woods of Texas
Posts:
63
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

DarkAngel:

which template are you using for your store...one you customized or one purchased, sometime the template does not play nice with the add-0ns

It is a mixture of several templates. I don't remember all the templates. Purchased template not included.

12 Jul 2010, 3:03 AM
#2038
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

kaddie:

It is a mixture of several templates. I don't remember all the templates. Purchased template not included.

ok so it is one you customized yourself by utilizing some code from each template?

did you merge the "like" files from any other addon and the template with the ones from lightbox?

12 Jul 2010, 3:04 AM
#2039
kaddie avatar

kaddie

New Zenner

Join Date:
Feb 2009
Location:
In the Woods of Texas
Posts:
63
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

darkangel:

ok so it is one you customized yourself by utilizing some code from each template?

correct

13 Jul 2010, 2:06 AM
#2040
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Zen Lightbox addon [Support Thread]

question...

I use a updated version of Slimbox 1.7 so I could use it with a higher version of Mootools.... is there a desire to have this mod upgraded to Slimbox 1.7?

Next, Slimbox 2.0 use the jQuery 1.3 or higher library, is there a need for this one as will?

Both are easy to setup in the current Zen Lightbox mod.

Just wanted to ask before spending the time on it, the longest amount of time would be setting up the install instructions...