I am having the same problem you experienced. Did you find a solution?
Printable View
I am having the same problem you experienced. Did you find a solution?
Hello there,
Is it possible to have the "IH resize images" for the small images only instead of of all of them?
Thanks...
Great mod...have been using it for a couple years now, and love it.
One quick suggestion for modifying Image Handler so that you have more control over which images are zoomed.
To the zen_image function implemented by IH (includes\functions\html_output.php), add a $zoom parameter:
function zen_image($src, $alt = '', $width = '', $height = '', $parameters = '', $zoom = '') {
Pass it to the handle_image function:
$newimg = handle_image($src, $alt, $width, $height, $parameters, $zoom);
Then add it to the handle_image function (includes\functions\extra_functions\functions_bmz_image_handler.php):
function handle_image($src, $alt, $width, $height, $parameters, $zoom = '')
$parameters = $ih_image->get_additional_parameters($alt, $ih_image->canvas['width'], $ih_image->canvas['height'], $parameters, $zoom);
And then finally, add it to the get_additional_parameters function (\includes\classes\bmz_image_handler.class.php):
get_additional_parameters($alt, $width, $height, $parameters, $zoom = '')
if ($zoom === true || ($zoom !== false && $ihConf[$this->sizetype]['zoom'])) {
Then, you can manually specify zoom behavior in your templates by just adding the $zoom parameter, setting to true (or disable zoom behavior by setting it to false):
zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, '', $zoom = true)
Just a thought. Apologies if anything similar has already been proposed or implemented, or if this is the wrong place to post this.
Nevermind, I think I figured it out. I will let you know if I didn't! hahaha. ;)
Hi
I have a problem and i have not found answer.
Files are generated very well. But links to images are generated in bad way by IH2.
There are no slashes
http://homeideas.pl/bmz_cacheee01c7c...age.100x62.jpg
http://homeideas.pl/bmz_cache/e/e01c...age.100x62.jpg
Link should look like second one.
I have no idea wats wrong. I triend to repair it in file functions_bmz_io.php
Line 76
$file = $bmzConf['cachedir'] . '/' . $md5{0} . "\/" . $md5.$ext;
As you see i triend to change slashes there when '/' i change to "\/" effect is that this slash is in link but as 5%C something like that.
Whats wrong, how to repair that, please help.
*** SOLUTION TO A PROBLEM I HAD ***
Quite some time ago I posted a problem I had with IH2 because of PHP version installed on my server. The problem resulted in some permission errors and didn't let IH2 work properly at all.
So heres the solution for whom may have the same problem!
First of all, it didn't seem to be the PHP version causing the problem even tho using PHP version 5.2.9 and below is the current recommendation. The problem was a few PHP functions set to be DISABLED in the PHP.INI which determines PHP settings on your server. Removing some functions that were DISABLED finally solved the problem!
:clap:
Thing about this problem is that it doesn't relate to your version of IH2, older or newer. Its a problem that can come up to anyone now or in the future so therefore I realized I should post up the solution to help others.
Yes, but how to check which function exactly is the source of problem?
PS: i do not use PHP.ini i have default hosting settings, so... stil have no idea what to do
I'm getting crazy with IH2 :(
Just when I thought problems were over it seems to stay. I have IH2 Rev 7 installed with latest Lightbox version.
My images folder contains a bunch of folders with manufacturers names so when I upload an image to a product (using IH2) I choose the right folder before uploading the image. What then happens is, I go to the product's page and no image appears. A quick check revealed its looking for the picture under images/medium/levono(for example)/xxx.jpg. Looking at this folder using FTP shows there no image there. I thought IH2 suppose to take one image and generate it for all sizes?!...The only solution I found to this was modifying 'tpl_main_product_image.php' so it doesn't look for the images under medium or large folders, but this is absord since I thought IH2 suppose to work with these files out of the box. I noticed that the only files regarding functionality of main product image and additional images are the ones under the 'modules' folder.
Thats one problem actually. The other problem is that IH2 doesn't seem to intiate Lightbox, its just using the old POPUP.
Would appreciate any help with this.
PS,
Main PHP issues with IH2 were over but I still get this error when I go into IH2.
"Warning: strstr() [function.strstr]: Empty delimiter. in /home/xxx/domains/xxx/public_html/includes/classes/bmz_image_handler.class.php on line 128"
I checked the file and its a stock version of the IH2 installation.
Funny thing, on another cart with IH2 I have on the server I get no errors at all.