Banned
- Join Date:
- Jul 2005
- Posts:
- 115
- Plugin Contributions:
- 0
Image Handler 2 (for ZC v1.3.8 ONLY) Support
anyone at all have IH2 working ? all the sites i've seen with IH2 so far don't work - except the zoom '+' .png (yay)
Started by timkroeger on 17 May 2006, 11:27 AM · Views: 2,513,738
Banned
anyone at all have IH2 working ? all the sites i've seen with IH2 so far don't work - except the zoom '+' .png (yay)
New Zenner
I'm still getting the IE errors myself. I'm about ready to get rid of IH. I'd rather have a page that loads slow than one where you constantly have errors popping up.
New Zenner
My IH2 works fine with zen cart 1.3.5
New Zenner
Well I'll be darned....I think I fixed it! yay
I had to change line 124 instead of 126.
Banned
what was your problem
which file did you edit
what change to line 124
Banned
problem: zoomed image goes out of browser bounds generating js error
problem code, filename: jscript_imagehover.js
change line: 123 if statement >>
if (docheight - event.clientY < zoomimg_h + (2 * padding)){
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
// ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
} else {
// ycoord += truebody().scrollTop + event.clientY;
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
}
Totally Zenned
neuzen:
problem: zoomed image goes out of browser bounds generating js error
problem code, filename: jscript_imagehover.js
change line: 123 if statement >>if (docheight - event.clientY < zoomimg_h + (2 * padding)){ ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));// ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
} else {
// ycoord += truebody().scrollTop + event.clientY;
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
}
Revert back to your old file, and then only apply the change to line 124 (not 126 like the author stated). I couldn't remember the exact line numbers which needed to be changed, thanks to g pointing it out to me above.
So it should read:
if (docheight - event.clientY < zoomimg_h + (2 * padding)){
ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
// ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
} else {
ycoord += truebody().scrollTop + event.clientY;
}
New Zenner
Sorry I just got back home, but what Getyourgameshere said is what has to be done. :-)
Zen Follower
Using ZC1.3.5 with image_handler__for_vx_2.0135 dowloaded from the ZC downloads area it seems to work just fine except I don't get the desired watermarks on images in productlistings. Productinfo and sideboxes do show watermarks.
Anyone else experience this and found out why?
New Zenner
Thanks for the 135 updates!
NOTE:
There seems to be a missing closing tag [?>] at the bottom of this file [additional_images.php] in the download I just got off the Zen-Cart site
\image-handler_2.0-zc135\includes\modules
New Zenner
kelvyn:
Look very closely for white space after the final ?> in those files.
Have you edited them at all? Or, try re-uploading them in a different mode - I've found that filezilla messes up php unless they are uploaded as binary, for example.But check the whitespace first.
Yeah I get the same message that i'm trying to wk through. Have you modified your site?
Zen Follower
Okay, yay! The javascript error is gone thanks to the correction to the change to the javascript file. Thanks!
New Zenner
hello does anybody know how to change the image size for the hover option? currently the hover image is the same as the thumb nail. i would like the hover image to be 400x400.
Totally Zenned
zc-newbie:
hello does anybody know how to change the image size for the hover option? currently the hover image is the same as the thumb nail. i would like the hover image to be 400x400.
The hover image that is display when you mouse over the small image derive its size from Admin -> Configuration -> Images - Product Info - Image Width and Image Height
This also controls the medium image size which in essence is the product page image.
You might want to rethink making you product page image 400 x 400. That's a big image for product page. Go easy on your customer load time.
Isaacola
Online Shopping Mall
New Zenner
mucho gracias. i thought about making it smaller but it would require them to click the product anyway... i have a small product inventory so it wouldn't make a huge difference..
New Zenner
Hello everyone,
Just when things were turning out golden and working in both FF and IE, I uploaded some more pics and now I'm getting the dreaded IE Javascript error. I changed the js page from 'clientY' to 'pageY' and things are still hooped. Anyone have any ideas why the sudden errors?
ahhhhhh...so frustrating! :)
Cheers,
Colin
New Zenner
Ok, so I just put the updated version of imagehandler on my upgraded site. When I go to tools in the admin panel and click image handler, I get the following error
Warning: main(includes/ih_manager.php) [function.main]: failed to open stream: No such file or directory in /home//public_html/Zencart//image_handler.php on line 153
Warning: main(includes/ih_manager.php) [function.main]: failed to open stream: No such file or directory in /home//public_html/Zencart//image_handler.php on line 153
Fatal error: main() [function.require]: Failed opening required 'includes/ih_manager.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/Zencart//image_handler.php on line 153
I had a good rummage about in my admin folder and checked my unzipped files, but sure enough ih_manager.php really does not exist anywhere.
The image_handler.php file specified in the error message reads like this on lines 151 to 153
if ($page == 'manager') {
// manager actions are handled in a seperate file
require('includes/ih_manager.php');
I'm presuming this is a bug - or am I doing something silly? Please help...
New Zenner
oceano:
Thanks for the 135 updates!
NOTE:
There seems to be a missing closing tag [?>] at the bottom of this file [additional_images.php] in the download I just got off the Zen-Cart site\image-handler_2.0-zc135\includes\modules
Thanks for mentioning it, I corrected it pronto on my server. But how the hell was it funcioning without the closing tag ? :shocking:
Btw: Anyone has a fix for the weird IE overlays? I fixed the javascript error, so there is no error message, but some of the overlays show up totally fcked up in IE. I have a 73 matrix of category images on the main page, and the lowest 2 rows are showing the overlays off screen at the top. WTF? The rest are OK.
Except for Opera, where no overlays are shown.... :D
Cheers,
fricy
New Zenner
Hello,
Sorry about these mulitple post but the IE javascript error is driving me insane! I've also noticed that my hotspot won't turn off for small images even though it's set at '0' in the admin and won't turn on for medium imges with it set at '1'.
I just re-uploaded the files making sure that I didn't miss anything and I've triple cehcked the JS page to ensure I switched the correct line(s).
With the hotspots not working properly, is this an indication something else is broken or misplaced besides the JS?
That being said, everything is fine in Firefox....
Cheers,
Colin
Totally Zenned
Radish:
Hello,
Sorry about these mulitple post but the IE javascript error is driving me insane! I've also noticed that my hotspot won't turn off for small images even though it's set at '0' in the admin and won't turn on for medium imges with it set at '1'.
I just re-uploaded the files making sure that I didn't miss anything and I've triple cehcked the JS page to ensure I switched the correct line(s).
With the hotspots not working properly, is this an indication something else is broken or misplaced besides the JS?
That being said, everything is fine in Firefox....
Cheers,
Colin
The Javascript fix you mention - what line did you apply it to? There was a typo, its supposed to go on line 124, not line 126
Tell staff why this post should be reviewed.