Re: Image Handler 2 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 :)
Re: Image Handler 2 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')
Re: Image Handler 2 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/s...es/ih-test.png
This should read like this.
http://skintightrubber.myzen.co.uk/s...es/ih-test.png
Can anyone advise why i'm getting this behavour?
Re: Image Handler 2 Support
I have found out the following inform########.
<?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?
Re: Image Handler 2 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
Code:
$ihConf['dir']['admin'] = preg_replace('/^\/(.*)/', '$1', (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN));
with
Code:
$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
Re: Image Handler 2 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.
Re: Image Handler 2 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)
Re: Image Handler 2 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?
Re: Image Handler 2 Support
Quote:
Originally Posted by 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.
Re: Image Handler 2 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...ndex&cPath=2_8
I'm running Zencart 1.3.0.1
and Image Handler 2.
Thanks for your help!