I'm not sure if it's bug, but it seems to me. I work on site that does not have IH installed but still uses large images. Unfortunately in cases where there is more then one image thumbnail is displayed for additional images.
As far as I can tell $flag_has_large isn't set in 'additional_images.php' on line 91. Quick fix is to replace:
withPHP Code:if(defined(IH_RESIZE))
$flag_has_large = true;//file_exists($products_image_large);
else[...]
Of course, I can be wrong ;)PHP Code:$flag_has_large = file_exists($products_image_large);
if(defined(IH_RESIZE))
$flag_has_large = true;//file_exists($products_image_large);
else[...]
data_digger,
Query Cache v1.7-beta for ZC 1.3.9h Reduce query count by 80% | Randomized Tests
www.data-diggers.com
data_digger, that worked wonderfully for me. Thanks a ton!
Hi,
I had IH2 working fine with watermarks on medium and large images.
After installing jquery lightbox I lost the watermarks.
In modules/MY_TEMPLATE/main_product_image.php
there is a conditional loop that checks for the existence of IH2 and if it exists, it should not execute a chunk of original code that has to be removed for IH2 to work properly.
The conditional test is
and irrespective of whether IH_RESIZE is 'yes' or 'no' the loop always executes. Surely it should not execute?Code:if(!defined(IH_RESIZE)){
If I change the test to
the loop does not execute and the watermarks come back.Code:if(defined(IH_RESIZE)){
That does not make sense to me.
Since there are many people using both mods and no comments about losing watermarks (well there is one but the solution was never posted), I find it easier to believe my php non-skills are to blame rather than I have found something new.
Any comments from the cognoscenti please??
thanks
Steve
I just had this same problem. I solved it by replacing main_product_image.php and additional_images.php with the files found back a directory in modules. These files were provided by Image Handler. You could also just delete these two overrides.
Now it works just fine.
Anthony Taylor
Webmaster
http://buydentalequipment.com
WOW I have been mixed up. trying to get lightbox and some kind of hover thing working on http://bombasticplastix.com/webstore...&products_id=1
IH 2 installed but could never get hover working in IH 2 have tried to get Jquery Lightbox working No luck usually I can moose through this stuff Would really love some help I'm freaking out have to get this store operational. Have crawled all over the thread just can't seem to get it to work.Thanks Samalma
Last edited by samalama13; 31 Oct 2009 at 07:46 PM.
Somethings gone wrong and I think I traced it back to Jquery Lightbox. On my advanced search page I noticed the javascript isn't loading up correctly. I kinda traced this down to modifications in html_header.php in the common directory.
If I use the old html_header.php my javascript loads up for the advanced search page.. however the javascript needed for the lightbox to work fails.
With the modified html_header.php that comes with JQLightbox the lightbox javascript loads up just fine but the advanced page looks naked.
It would seem the major difference is that the old one loads each file up directly whereas the new one loads them into an array which is then parsed and loaded.
I tried hacking it but nothing happened. Would appreciate any help.
Files:
http://beta.buydentalequipment.com/c...JQLightbox.txt
http://beta.buydentalequipment.com/c...eader.orig.txt
Anthony
Turns out I was hacking the wrong place. If I go back to the original code in this section everything seems to work fine.
Code:* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. */ $directory_array = $template->get_template_part($page_directory, '/^jscript_/'); while(list ($key, $value) = each($directory_array)) { /** * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page */ // $jscript_files_to_load[$value] = -100; require($page_directory . '/' . $value); echo "\n"; }
Just wanted to say thank you for the mod.
It installed without a hitch and plays well with IH2.
This is the 3rd lightbox I've tried to incorporate into my site, fual and slimbox just didn't work at all but I knew I'd had success with a jquery lightbox on another site so, I gave this one a shot.
Thanks again.
OH and the * in the "Pages to enable JQLightbox" was great idea Peter777!