Re: Image Handler 2 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.
Re: Image Handler 2 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?
Re: Image Handler 2 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
Re: Image Handler 2 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:
Code:
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
Re: Image Handler 2 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.
Re: Image Handler 2 Support
Tim,
Thank you for the detailed post. Works perfectly.:thumbsup:
Re: Image Handler 2 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.
Re: Image Handler 2 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
Re: Image Handler 2 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?
Re: Image Handler 2 Support
Quote:
Originally Posted by 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.