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
Views: 82,872
New Zenner
I think I may have found a fix. I will check it when I get home and post it if anybody is interested.
Jay
New Zenner
It worked. Here is what I did:
http://www.zen-cart.com/forum/showpost.php?p=391509&postcount=571
Zen Follower
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
Zen Follower
been a couple of days... hoping someone might have had a chance to check this out over the weekend.
images not enlarging with 'lightbox' when clicked.
lightbox is installed, and showing up in admin.
any thoughts?
Zen Follower
issue resolved. re-installed cjloader... though install file said it was automatically included now, apparently not.
get info here:
http://wiki.rubikintegration.com/zencart/modules/css_javascript_loader/installation
then google cjloader for a download site.
New Zenner
where can I download it?
Zen Follower
New Zenner
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.
Zen Follower
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.
Totally Zenned
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.
Totally Zenned
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>
Totally Zenned
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 ?
Totally Zenned
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 ?
Totally Zenned
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.
Totally Zenned
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 .
Totally Zenned
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.
Totally Zenned
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:
Totally Zenned
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 :)
New Zenner
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
Zen Follower
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
Tell staff why this post should be reviewed.