If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Started by timkroeger on 17 May 2006, 11:27 AM · Views: 2,513,738

Results 341 to 360 of 7,094
14 Sep 2006, 3:52 PM
#341
neuzen avatar

neuzen

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)

14 Sep 2006, 4:00 PM
#342
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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.

14 Sep 2006, 4:07 PM
#343
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

My IH2 works fine with zen cart 1.3.5

14 Sep 2006, 4:19 PM
#344
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Well I'll be darned....I think I fixed it! yay

I had to change line 124 instead of 126.

14 Sep 2006, 5:38 PM
#345
neuzen avatar

neuzen

Banned

Join Date:
Jul 2005
Posts:
115
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

what was your problem

which file did you edit

what change to line 124

14 Sep 2006, 6:06 PM
#346
neuzen avatar

neuzen

Banned

Join Date:
Jul 2005
Posts:
115
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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));
}

14 Sep 2006, 6:45 PM
#347
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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;
    }
14 Sep 2006, 8:25 PM
#348
grneyes avatar

grneyes

New Zenner

Join Date:
Apr 2006
Posts:
42
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Sorry I just got back home, but what Getyourgameshere said is what has to be done. :-)

14 Sep 2006, 8:43 PM
#349
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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?

15 Sep 2006, 3:00 AM
#350
oceano avatar

oceano

New Zenner

Join Date:
Aug 2006
Posts:
50
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

15 Sep 2006, 5:56 AM
#351
vfcoup70 avatar

vfcoup70

New Zenner

Join Date:
Jul 2006
Posts:
17
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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?

15 Sep 2006, 3:23 PM
#352
digidiva_kathy avatar

digidiva_kathy

Zen Follower

Join Date:
May 2006
Posts:
323
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Okay, yay! The javascript error is gone thanks to the correction to the change to the javascript file. Thanks!

15 Sep 2006, 3:55 PM
#353
zc_newbie avatar

zc_newbie

New Zenner

Join Date:
Aug 2006
Posts:
98
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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.

15 Sep 2006, 4:04 PM
#354
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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.

15 Sep 2006, 4:36 PM
#355
zc_newbie avatar

zc_newbie

New Zenner

Join Date:
Aug 2006
Posts:
98
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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..

16 Sep 2006, 4:21 AM
#356
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

16 Sep 2006, 2:18 PM
#357
pat_allosaurs avatar

pat_allosaurs

New Zenner

Join Date:
May 2006
Posts:
33
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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...

16 Sep 2006, 4:09 PM
#358
fricy avatar

fricy

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

16 Sep 2006, 5:42 PM
#359
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

16 Sep 2006, 5:57 PM
#360
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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