Zen Cart Logo
Forums / All Other Contributions/Addons / Jquery Lightbox [Support thread]

Jquery Lightbox [Support thread]

Views: 82,872

Results 221 to 240 of 258
12 May 2010, 3:37 PM
#221
outbreak avatar

outbreak

New Zenner

Join Date:
Oct 2009
Posts:
35
Plugin Contributions:
0

Jquery Lightbox [Support thread]

I think I may have found a fix. I will check it when I get home and post it if anybody is interested.

Jay

13 May 2010, 2:00 AM
#223
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

hey all. ive been using this mod for some time, with no issues... luv it! anyway, did a manual upgrade from 1.3.8a to 1.3.9b, and am re-installing mods manually.

i have jquery and jqlightbox installed properly... i can see the options in the admin to turn on/off etc (yes, it is ON)...

however, on my site it is not loading correctly. examination of a product page with firebug seems to be showing the jscript being called... but when you click on an image, nothing happens.

any thoughts??

site is http://www.customk9design.com

17 May 2010, 6:28 PM
#224
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

been a couple of days... hoping someone might have had a chance to check this out over the weekend.

http://www.customk9design.com

images not enlarging with 'lightbox' when clicked.

lightbox is installed, and showing up in admin.

any thoughts?

21 May 2010, 12:32 AM
#226
ghopper avatar

ghopper

New Zenner

Join Date:
Jan 2008
Posts:
39
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

where can I download it?

24 May 2010, 12:36 AM
#228
ghopper avatar

ghopper

New Zenner

Join Date:
Jan 2008
Posts:
39
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

thanks, I got it.
It's so beautiful.

notes:
The readme.txt said CJ loader is included in the package. Actually,
it's not. You have to download and install it firstly.

24 May 2010, 1:47 AM
#229
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

ghopper,
are you getting the enarlgements to enlarge properly... ie, when you click on an image is it going to the _LRG file correctly?

my old one did, my new install is not.

24 May 2010, 4:10 PM
#230
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

Hello.
If i turn off light box from admin , regular image popup wont work as the javascript code is missing .
can you tell me how to implement zc image popup if light box is turned off ?
it would be good to have a IF ELSE thingy to test if jqlightbox is off or not.

thanks.

29 May 2010, 1:22 PM
#231
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

i thought would be good to have zencart image pop up to work if i had to turn off jqlightbox .. so here a modification to make sure popup works if you turn off jqlightbox from admin panel .. might come handy if you ever need to do this .
tpl_modules_main_product_image.php
change code to this

<script language="javascript" type="text/javascript"><!--
<?php
if(JQLIGHTBOX_STATUS == 'true'){?>
document.write('<a href="<?php echo zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT);?>" id="jqzoomMain"<?php if (JQLIGHTBOX_STATUS == 'true') echo ' class="jqlightbox"';?>><?php echo zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);?></a>');
<?php }else {?>
	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>'; ?>');
<?php }?>
//--></script>
7 Jun 2010, 5:43 PM
#232
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

why large image popup shows 2 image while there is only One single image to show ?

if you have only single large image , light box shows
showing 1 or 2 .. or showing 2 of 2 , but yet repeats same image .. again , there is only single large image anyway ..

any idea where this duplicate information is coming from ?

7 Jun 2010, 11:30 PM
#233
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

yellow1912:

Okie, here goes: you can view your page html source code: the first lightbox image is the main image

document.write('<a href="images/bitetug_suit_dfl5.jpg" id="jqzoomMain" class="jqlightbox"><img src="bmz_cache/a/aff35fee3d4330cbbd98c7330c7e7f44.image.220x96.jpg" alt="Two Bite Suit Tugs (4" x 8") 1 Handle" title=" Two Bite Suit Tugs (4" x 8") 1 Handle " width="220" height="96" /></a>');

> 
> The second one is here:
> 
> ```
<div id="productReviewsDefaultProductImage" style="display:none;" class="centeredContent back"> 
<div id="productMainImageReview" style="display:none;" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<a href="images/bitetug_suit_dfl5.jpg" id="jqzoomMain" class="jqlightbox"><img src="bmz_cache/a/aff35fee3d4330cbbd98c7330c7e7f44.image.220x96.jpg" alt="Two Bite Suit Tugs (4\" x 8\") 1 Handle [DFL5]" title=" Two Bite Suit Tugs (4\" x 8\") 1 Handle [DFL5] " width="220" height="96" /></a>');
//--></script>
<noscript>
<a href="http://www.allk-9.com/index.php?main_page=popup_image&pID=608" target="_blank"><img src="bmz_cache/a/aff35fee3d4330cbbd98c7330c7e7f44.image.220x96.jpg" alt="Two Bite Suit Tugs (4" x 8") 1 Handle [DFL5]" title=" Two Bite Suit Tugs (4" x 8") 1 Handle [DFL5] " width="220" height="96" /><br /><span class="imgLink">larger image</span></a></noscript>


</div></div>

I guess this is created by the products tab module.

I will look into this, but more than likely we will have to somehow turn off the display of an additional main image code here.

Ok , it seems the problem happens when TPP is enabled . .once I turn it off , Jqlightbox works ok and wont display 1 of 2 on image .

any thought on solution to this bug ?

7 Jun 2010, 11:35 PM
#234
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Jquery Lightbox [Support thread]

tony_sar:

Ok , it seems the problem happens when TPP is enabled . .once I turn it off , Jqlightbox works ok and wont display 1 of 2 on image .

any thought on solution to this bug ?

It's a bug in TPP and I believe there are two different solutions discussed on the TPP thread. It's been so long so I don't remember what they but you can check that thread.

8 Jun 2010, 8:14 PM
#235
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

Ok , the duplicate seems to be coming from TPP when you enable Review tab for product . turning review tab will fix the problem .
will look into the code to see why this is happening and if got any fix , will post it back .

8 Jun 2010, 9:04 PM
#236
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Jquery Lightbox [Support thread]

tony_sar:

Ok , the duplicate seems to be coming from TPP when you enable Review tab for product . turning review tab will fix the problem .
will look into the code to see why this is happening and if got any fix , will post it back .

Like I said this issue has been discussed and I believe there are two work arounds posted on the mod with the problem which is TPP. However, if you look into and come up with a better solution, I am sure others will benefit from it.

8 Jun 2010, 9:56 PM
#237
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

BlessIsaacola:

Like I said this issue has been discussed and I believe there are two work arounds posted on the mod with the problem which is TPP. However, if you look into and come up with a better solution, I am sure others will benefit from it.

Thanks.
I know you mention that before .. i looked through TPP thread , it seems solution was mentioned for problem with zen lightbox and not jquery lightbox . i will look again over those threads , i might have missed the one for jqlightbox . :smile:

8 Jun 2010, 10:32 PM
#238
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Jquery Lightbox [Support thread]

tony_sar:

Thanks.
I know you mention that before .. i looked through TPP thread , it seems solution was mentioned for problem with zen lightbox and not jquery lightbox . i will look again over those threads , i might have missed the one for jqlightbox . :smile:

I will look as well, I think aberezin provided a solution that works but then again after awhile all these posts starts to look the same :)

22 Jun 2010, 11:58 AM
#239
parisbubbler avatar

parisbubbler

New Zenner

Join Date:
Dec 2009
Posts:
37
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

After installing Jquery Lightbow, I get a blank page. the error in my cache folder reads '[21-jun-2010 23:10:39] PHP Parse error: syntax error, unexpected ')', expecting '(' in /includes/classes/class.cj_loader.php on line 158'

		    include(DIR_WS_CLASSES . 'browser.php');
		    $browser = new _Browser();
		    $browser_name = $browser->getBrowser();
line 158		    if ($browser_name == _Browser::BROWSER_IE) {
		   		$browser_name = 'ie';
		    }
		    else
		    	$browser_name = preg_replace("/[^a-zA-Z0-9s]/", "-", strtolower($browser_name));
		    	
		    $browser_version = floor($browser->getVersion());
		    
		    // this is to make it compatible with the other ie css hack
		    if ($browser_name == _Browser::BROWSER_IE) {
		   		$browser_name = 'ie';
		    }

Can anyone help me sort this out please?

parisbubbler

16 Aug 2010, 8:42 PM
#240
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

Re: Jquery Lightbox [Support thread]

tony_sar:

Ok , the duplicate seems to be coming from TPP when you enable Review tab for product . turning review tab will fix the problem .
will look into the code to see why this is happening and if got any fix , will post it back .
WOW! Thanks a bunch!
That has been bugging me for months! I had never considered turning off the review tab. Glad I stumbled upon this thread today.
This also fixes the dual additional images in the TPP Additional images tab.

Now if I could work the following quirk out too.
Go here:
http://minu.me/2slk
Click on the additional images tab and drag your mouse back and forth over the image. The image changes back and forth between the two.
Now click on the Product Description tab and notice how the original image is blown out of the lightbox border and sometimes will display the additional image instead.

JQZoom
JQLightbox
IH2 v2.0 rev7