Zen Cart Logo
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

Views: 2,513,080

Results 41 to 60 of 7,094
3 Jun 2006, 3:44 PM
#41
dachilla avatar

dachilla

New Zenner

Join Date:
Feb 2006
Posts:
66
Plugin Contributions:
1

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

Hi, got the following Problem and need a helping hand. Image Handler installed successfully. But get fatal Error when starting the manager:

Fatal error: Call to undefined function: imagecolorallocatealpha() in /home/www/htdocs/tightfun.de/shop/includes/classes/bmz_image_handler.class.php on line 506

Thanks fo any Help

D.C.

3 Jun 2006, 6:51 PM
#42
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

After installing a new cart and installing IH2, I added lots of products and started to use the IH to add images and additional images, the first few went on OK but now I get the following error.

Error!

Unable to determine the page link!

Function used:

zen_href_link('', '', 'NONSSL')

I find this strage as it was working OK, but then just stopped, I have tried clearing the image cache. - Any ideas?

5 Jun 2006, 1:40 AM
#43
muddler avatar

muddler

Zen Follower

Join Date:
May 2006
Location:
Connecticut
Posts:
118
Plugin Contributions:
0

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

Tim,

When I hoover over an image on the Product Listing Page I get the medium size popup just fine - and then it is popped over again with just the item name popup. Do you know how I can stop the second popup?
Thanks

5 Jun 2006, 9:48 AM
#44
timkroeger avatar

timkroeger

Totally Zenned

Join Date:
Feb 2005
Location:
Germany
Posts:
580
Plugin Contributions:
0

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

Good thing I read the other thread, too. Otherwise I wouldn't have known what you're talking about :wink2:

I know, the looks might not be appealing, but the alt attribute is a functional attribute and should be present in every image, so people, who for whatever reason are not able to view an image (or have it displayed), get the alt attribute instead. Popular browsers interpret this as an additional popup-hint. Have that in mind when you strip it from your site.

If you nevertheless want to remove the attribute, there are several ways to achieve this:

  • keep your mouse moving :wink2: ok, not really a solution...
  • edit the zen_image() calls in your template to not pass the alt-attribute (2nd parameter)
  • edit includes/functions/extra_functions/functions_bmz_image_handler.php
  • edit includes/functions/html_output.php
    I'd prefer editing the template files and passing an empty string instead of a variable to the zen_image() call. This way you have complete control over where the alt tag is should be missing and where not (medium images for example).

You could also edit line 78 of includes/functions/extra_functions/functions_bmz_image_handler.php (line number may be different for you) to pass an empty string for alt:

  return array($src, '', intval($width), intval($height), $parameters);

This way you don't have to change a lot of zen_image() calls, and you're done with one simple code change. However, the alt tag will be missing in each and every image.

I wouldn't suggest editing the includes/functions/html_output.php file since it's a core file and more likely to change in new versions of Zen-Cart and Image Handler than functions_bmz_image_handler.php.

Cheers,
Tim

5 Jun 2006, 3:06 PM
#45
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

Just to let you know, the error I was getting has cleared it's self up.

Unable to determine the page link!

Function used:

zen_href_link('', '', 'NONSSL')

I have no idea what caused the error, I hope I never see it again.

5 Jun 2006, 3:57 PM
#46
muddler avatar

muddler

Zen Follower

Join Date:
May 2006
Location:
Connecticut
Posts:
118
Plugin Contributions:
0

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

Tim,

Thank you for the detailed post. Works perfectly.:thumbsup:

5 Jun 2006, 8:25 PM
#47
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

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

hey,

I installed IH2 and it was working perfectly (except it mixed up some pix - but that's fine and fixed)...when i installed the SEFU, IH2stopped working (no popup pic -wrong links ?)

I'm not sure why it's happening, in the Admin it shows as installed and works fine, but only in the admin...Help

thanks.

5 Jun 2006, 10:08 PM
#48
timkroeger avatar

timkroeger

Totally Zenned

Join Date:
Feb 2005
Location:
Germany
Posts:
580
Plugin Contributions:
0

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

I suppose you're using Zen-Cart 1.2.7 because SEFU is not yet compatible with Zen-Cart 1.3.x. The problem is because both SEFU and IH2 modify includes/functions/html_output.php. The next release of SEFU will work along with IH2, I'm working on it right now but it'll still be a while before it's out. For the time being, you could just merge the two files. Take the IH2 version and replace the complete zen_href_link() function with the one from SEFU. That should solve the problem.

Cheers,
Tim

6 Jun 2006, 12:25 AM
#49
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

I still have issues with the IH2. I have found some products in my cart will not allow the IH to add additional images to them. The screen refreshes and I get an error at the top saying -

File exists! Please alter the base name or suffix.

This happens when I select an image that has never been uploaded before.

Any ideas?

6 Jun 2006, 1:55 AM
#50
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

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

timkroeger:

I suppose you're using Zen-Cart 1.2.7 because SEFU is not yet compatible with Zen-Cart 1.3.x. The problem is because both SEFU and IH2 modify includes/functions/html_output.php. The next release of SEFU will work along with IH2, I'm working on it right now but it'll still be a while before it's out. For the time being, you could just merge the two files. Take the IH2 version and replace the complete zen_href_link() function with the one from SEFU. That should solve the problem.

Cheers,
Tim

THANX !

everything works fine now !looking forward for the new release of SEFU.

Thanks again.

6 Jun 2006, 2:24 PM
#51
gazluvsstace avatar

gazluvsstace

New Zenner

Join Date:
Nov 2005
Posts:
21
Plugin Contributions:
0

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

Just got a quick question. Found the question on the breakmyzencart forum but no reply.

"qoute of other forum"
I am just about to install this module and I am conerned about overwriting existing PHP files. In the past, addons that simply overwrite existing files, usually break the code. I have noticed that the following files will be overwritten:

admin/includes/modules/category_product_listing.php
includes/functions/html_output.php
includes/modules/additional_images.php
includes/modules/main_product_image.php
includes/modules/pages/popup_image/header_php.php
includes/modules/pages/popup_image_additional/header_php.php
includes/template_default/popup_image_additional/tpl_main_page.php

Is it safe to overwrite these files? How can I be sure that a more recent update to Zen-Cart did not change any of these files (and would therefore be broken if I overwite them)?

just wondering it would still work if i pur them in template folder (as in the locations they need to be tho)

sorry bout the n00b question... but gotta b dumb to get smart :)

6 Jun 2006, 2:40 PM
#52
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

I am still getting the error, it seems to be intermittant. Can anyone help me work out why I am getting this error. I am using zen-cart 1.3.0.1

Error!

Unable to determine the page link!

Function used:

zen_href_link('', '', 'NONSSL')

6 Jun 2006, 2:54 PM
#53
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

Looking more and more at this issue I have found that the IH cannot find it's preview images, the gif, jpg,png images are all broken images

Looking that the path the IH has added a directory that is not there.

http://skintightrubber.myzen.co.uk/str/str/admin/images/ih-test.png

This should read like this.
http://skintightrubber.myzen.co.uk/str/admin/images/ih-test.png

Can anyone advise why i'm getting this behavour?

6 Jun 2006, 3:07 PM
#54
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

I have found out the following informaion.

<?php echo HTTP_SERVER . DIR_WS_CATALOG . $images['gifsource']?> <?php echo $ihConf['dir']['admin']?>

When I place these two statements into the the about bit of the IH code I get the following output

http://skintightrubber.myzen.co.uk/str/
str/admin/

There the site will be moved from the /str folder when the site goes live. At the moment though I think it's causing issues. I does anyone else had any problems when the IH is not the the root of the site?

6 Jun 2006, 8:54 PM
#55
ivan02 avatar

ivan02

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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

hi,

i had the same problem.
It seems to be a minor issue since it only affects the admin-preview on a shop below the root directory.

You can solve by editing the file .../admin/includes/functions/extra_functions/functions_bmz_image_handler.php

Just replace

$ihConf['dir']['admin'] = preg_replace('/^\/(.*)/', '$1', (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN));

with

$ihConf['dir']['admin'] =  end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/"; 

The code extracts only the last path and should work on all shops.

ciao

6 Jun 2006, 10:48 PM
#56
mrmarcus66 avatar

mrmarcus66

Zen Follower

Join Date:
Oct 2004
Location:
England
Posts:
109
Plugin Contributions:
0

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

Once again I think I found what was causing errors with my installation of IH.

The image file name was:
rubber_latex_arm_band(1_stripe)7578_01

the image file name was renamed to:
rubber_latex_arm_band_1_stripe_7578_01

Notice the new file name does not have the ()

Can anyone else try an image with () in the filename and try to add additional images and see what behavour happens.

7 Jun 2006, 4:46 PM
#57
gazluvsstace avatar

gazluvsstace

New Zenner

Join Date:
Nov 2005
Posts:
21
Plugin Contributions:
0

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

cant use template overrides with this??? im sure im doing it right... any1 got any hints
(it all installs etc and in admin section it shows pictures exactly just doesnt in the catalog side)

7 Jun 2006, 9:15 PM
#58
teebee2e avatar

teebee2e

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

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

I just installed Image handler 2 and it is looking for the sample images in a double directory. the directory that my zencart is installed is called shopcart... when i saw all the red x's for the sample .png's and .jpg i right clicked and went to properties and it says shopcart/shopcart/ihtest-gif
what could have gone wrong?

7 Jun 2006, 9:57 PM
#59
ivan02 avatar

ivan02

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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

teebee2e:

I just installed Image handler 2 and it is looking for the sample images in a double directory. the directory that my zencart is installed is called shopcart... when i saw all the red x's for the sample .png's and .jpg i right clicked and went to properties and it says shopcart/shopcart/ihtest-gif
what could have gone wrong?

hi teebee2e,

thats exactly why i posted that bit of code some lines above ^^
Maybe i didnt express myself adequate.

When installing zen in a sub directory of your apache-root the path in "$ihConf['dir']['admin']" is not set correct. But as far as i could see it only affects the preview in admin-section.
You can use the code i suggested OR if you are regex-maniac change the regular expression.
The idea was to cut only the last path from the variable (thats "admin/" on most installations).

Don't worry, ample images just contain some pattern - not so exciting :laugh:

IH2 works just great for me - thanks for that great contrib.

8 Jun 2006, 11:32 PM
#60
woodlandsprite avatar

woodlandsprite

Zen Follower

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

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

I'm receiving an error when viewing my shop in IE.
This does not happen in Firefox.

I believe it's tied to having the zoom turned on for small images - and the zoom is not functioning on IE (though it works great in Firefox)

The IE error is:
Line: 125
Char: 7
Error: 'pageY' is null or not an object
Code: 0
URL: http://spritelygoods.com/zencart1301/index.php?main_page=index&cPath=2_8

I'm running Zencart 1.3.0.1
and Image Handler 2.

Thanks for your help!

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2