-
Admin Preview URL path
Path to admin product previews are:
http://bmz_cache/9/9cc6925ae4972e4af...ge.131x120.gif
But it should be http://sterlingleafjewelry.com/bmz_c...ge.131x120.gif
I'm on my knees asking for someone to point me in the right direction as to why my admin preview images are not showing while all of the test and store front images have the full and correct path to the bmz_cache folder.
All of the bmz_cache folders have rw permissions. I uninstalled and reinstalled, cleared the cache, deleted images and uploaded new.
HELP!
-
Once in a while an image wont display
Im sort of pulling my hair out. I use ez populate to load hundreds of products at a time, then ftp in the images I specified in the upload file.
Once in a while the image doesnt show on the store. I try to use IH2 specifically for this product and I get an error at the top of the page that says:
"Unable to upload default image file."
The product model number matches the image name exactly with all lower case. This seems to happen with about three out of every 100 products I import. Anyone run into this before?
Im using 1.3.8a and IH2.
-
Re: Admin Preview URL path
Quote:
Originally Posted by
jabbawest
Check your two configure.php files and make sure that you have your domain filled in for the defines for http server and http catalog server. (/admin/includes/configure.php)
BH
-
Re: PHP 5.3 patch
A new PHP 5.3 patch has been released here:
http://www.zen-cart.com/forum/showthread.php?t=140960
I compared the files in the patch with WinMerge and found out that a file used by Image Handler is being modified in that patch:
html_output.php
So that file needs to be merged (I haven't done that yet).
In this other thread DrByte suggests that it is possible that PHP 5.3 may be incompatible with Image Handler and other modules:
http://www.zen-cart.com/forum/showth...=140695&page=3
So probably it is necessary to test Image Handler on PHP 5.3 and verify that it works fine (my server does not have 5.3 yet)
That said, I was wondering if there is anyone that is using Image Handler successfully with PHP 5.3 and/or if anyone could kindly post a working version of a merged html_output.php file.
Thank you.
-
Re: PHP 5.3 patch
Just a suggestion you could use a tool like Beyond Compare or Winmerge to make the changes yourself... Both tools make the merging job VERY easy..
Quote:
Originally Posted by
hedron
That said, I was wondering if there is anyone that is using Image Handler successfully with PHP 5.3 and/or if anyone could kindly post a working version of a merged html_output.php file.
Thank you.
-
Re: Admin Preview URL path
Quote:
Originally Posted by
bherd
Check your two configure.php files and make sure that you have your domain filled in for the defines for http server and http catalog server. (/admin/includes/configure.php)
BH
THAT was the right direction! Thank you! :clap:
PHP Code:
define('DIR_WS_ADMIN', '//admin(***********/');
define('DIR_WS_CATALOG', '//');
define('DIR_WS_HTTPS_ADMIN', '//admin**********/');
define('DIR_WS_HTTPS_CATALOG', '//');
Please note the //, there should only be one forward slash.
I have NO idea how the extra forward slashes got there but all is well now. I can only guess that it could have been added during the migration to another server, because my configure.php.BAK does not have them.
Thanks again BH! :bigups:
-
Re: PHP 5.3 patch
Quote:
Originally Posted by
DivaVocals
Just a suggestion you could use a tool like Beyond Compare or Winmerge to make the changes yourself... Both tools make the merging job VERY easy..
Right, in fact as I mentioned in my post I used WinMerge to find out that that file has a conflict.
And merging that file does not appear easy at all, since I don't understand PHP.
If I figure out the merging, I will post it here. If someone else figures it out before me, please go ahead and post it first.
This will eventually affect ALL of us who are using Image Handler, since eventually most hosts will end up upgrading to 5.3...
-
Re: PHP 5.3 patch
Quote:
Originally Posted by
hedron
Right, in fact as I mentioned in my post I used WinMerge to find out that that file has a conflict.
And merging that file does not appear easy at all, since I don't understand PHP.
If I figure out the merging, I will post it here. If someone else figures it out before me, please go ahead and post it first.
This will eventually affect ALL of us who are using Image Handler, since eventually most hosts will end up upgrading to 5.3...
You don't need to necessarily understand PHP to know how to do the merge.. My suggestion is this:
Treat the version 5.3 files as the master, then in Winmerge, look for the code that is NOT in the 5.3 version of the file that IS in the IH version. That code is what you want to merge into the 5.3 version of the file..
Now after that you will want to test your new file in PHP 5.3, if you get errors, then you will have a place to start.. You'd be amazed how quickly people respond to specific errors versus "possible" errors..:smile:
Sometimes it may be the fastest solution to approach it this way versus waiting for someone to post the corrected file..
FYI.. I don't know PHP either, but I understand "find and replace".. The changes required for PHP 5.3 compatibility seem fairly straightforward enough that you should be able to tackle it yourself.. Seriously..
Going back to this file, you would be looking at the IH2 specific code that you are merging and making sure that any of the changes required for PHP 5.3 compatibility are addressed..
Honestly, I wouldn't suggest this if I didn't think it was doable.. There's a link I posted onthew Zen 2.0 thread which takes you to the Google board which outlines the changes required for PHP 5.3 compatibility..
-
Re: PHP 5.3 patch
When I get the inspiration to tackle this I will report if I have success. My host does not have PHP 5.3 yet so...
Quote:
Originally Posted by
DivaVocals
There's a link I posted onthew Zen 2.0 thread which takes you to the Google board which outlines the changes required for PHP 5.3 compatibility..
Which Zen 2.0 thread are you referring to?
Thank you.
-
Re: Image Handler 2 Support
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
testuser
Personally I don't like to edit core files, but here's what you'd need to do:
Open
Replace line 200 - 202 with the following:
Code:
/*if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}*/
Now save this file as html_output.php.bak and also html_output.php, this will preserve your change in the instance you do an upgrade (a direct upgrade will overwrite your html_output.php file - then work your changes back into that file using the .bak file)
Also, at line 198 is your alt tag as well ... You can remove that if you'd like.
I know this was an old post, but just to let people know this still works to remove alt text from blocking images for 1.3.8a!!
Though now the alt to remove is on line 202 and the bit to replace is from lines 204 - 206
Thanks that looks much better and The addon is great!
-
Re: Image Handler 2 Support
it wouldn't let me edit, I forgot to put what file for the above - /includes/functions/html_output.php
-
IH2 Images folder(s)
Is this the correct path for the loading of large product images in IH2?
root/images//images/Forum/logo.gif
Just installed fual slimbox and it's not working properly because of that path problem but I'm not sure where in IH2 to make a change.
http://sterlingleafjewelry.com/SLJdo...s/linkprop.jpg
Thank you
-
Re: Image Handler 2 Support
How do I load imagemagik, I have one other domain on my server, it works well.. I did not think I had to load imagemagik..
Anybody have any ideas about what I could be doing wrong..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
wagnerguy
How do I load imagemagik, I have one other domain on my server, it works well.. I did not think I had to load imagemagik..
Anybody have any ideas about what I could be doing wrong..
Update, it is loaded and my host says it should work on all the domains
Is there something I should turn on. I want to use the hover over function
-
Re: Image Handler 2 Support
The hover effect is driven by the javascript files included with IH2..- Double check that you have uploaded all the files included with IH2..
- Did you rename the includes/templates/YOUR_TEMPLATE to match the name of your template??
I just did an install this weekend, and honestly, this mod is as easy to install as renaming the YOUR_TEMPLATE folder to match your template's folder name, upload the files to your site, and then activating (installing) from the admin.
After that you can adjust the default settings in Configuration > Super Orders from the admin.
Hope that helps..
Quote:
Originally Posted by
wagnerguy
Update, it is loaded and my host says it should work on all the domains
Is there something I should turn on. I want to use the hover over function
-
Re: IH2 Images folder(s)
Quote:
Originally Posted by
jabbawest
Is this the correct path for the loading of large product images in IH2?
root/images//images/Forum/logo.gif
Just installed fual slimbox and it's not working properly because of that path problem but I'm not sure where in IH2 to make a change.
Thank you
Very interesting related issue I just ran into and posted in the Fual support thread.
http://www.zen-cart.com/forum/showpo...&postcount=395
-
Re: IH2 Images folder(s)
Quote:
Originally Posted by
jabbawest
Is this the correct path for the loading of large product images in IH2?
root/images//images/Forum/logo.gif
Just installed fual slimbox and it's not working properly because of that path problem but I'm not sure where in IH2 to make a change.
Thank you
Ok, I figured our why I had the images/images issue. Somehow a duplicate images folder was created and was included in the IH2 Image Directory and I must have put an image in that folder instead of the Main Directory. Fual still is not working correctly but I'll keep researching and working on that issue.
Could someone give me a run through of how you have IH2 setup for your product images, including folder structure?
I'm probably going begin with around 100-150 jewelry items.
Thanks
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
The hover effect is driven by the javascript files included with IH2..
- Double check that you have uploaded all the files included with IH2..
- Did you rename the includes/templates/YOUR_TEMPLATE to match the name of your template??
I just did an install this weekend, and honestly, this mod is as easy to install as renaming the YOUR_TEMPLATE folder to match your template's folder name, upload the files to your site, and then activating (installing) from the admin.
After that you can adjust the default settings in
Configuration > Super Orders from the admin.
Hope that helps..
Everything is loaded. Am I supposed to see the image hover effect? IF not how do I add it..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
wagnerguy
Everything is loaded. Am I supposed to see the image hover effect? IF not how do I add it..
Please know this is not intended to be a smart a$$ed reply.. But the way to see the hover effect is to copy over the mod files, and then "activate" it (install) from the store admin.. The effect is IMMEDIATE.. If you are not seeing it, then it means that something is not installed correctly.. Without seeing your store files, it's hard to say what... A link to you site would help provide cluesto know if you have IH2 installed correctly..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Please know this is not intended to be a smart a$$ed reply.. But the way to see the hover effect is to copy over the mod files, and then "activate" it (install) from the store admin.. The effect is IMMEDIATE.. If you are not seeing it, then it means that something is not installed correctly.. Without seeing your store files, it's hard to say what... A link to you site would help provide cluesto know if you have IH2 installed correctly..
Diva, I didnt take it personal
the site is blackriverangler.com, I loaded the files as necessary. the is a chance I screwed up the "template name" part..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
wagnerguy
Diva, I didnt take it personal
the site is blackriverangler.com, I loaded the files as necessary. the is a chance I screwed up the "template name" part..
I just took a quick look at your site source, and this would be the issue.. and that would be why you are not seeing the hover effect.. IH2 is missing files that are in the template folders.. (looks like in your case it's missing the CSS file)
You need to rename the YOUR_TEMPLATE folder in the IH2 files to MATCH the name of YOUR template folder.. Since you didn't, the javascript and CSS needed to create the hover effect is in a folder named YOUR_TEMPLATE.. (Hence why it's not working)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Please know this is not intended to be a smart a$$ed reply.. But the way to see the hover effect is to copy over the mod files, and then "activate" it (install) from the store admin.. The effect is IMMEDIATE.. If you are not seeing it, then it means that something is not installed correctly.. Without seeing your store files, it's hard to say what... A link to you site would help provide cluesto know if you have IH2 installed correctly..
Quote:
Originally Posted by
DivaVocals
I just took a quick look at your site source, and this would be the issue.. and that would be why you are not seeing the hover effect.. IH2 is missing files that are in the template folders.. (looks like in your case it's missing the CSS file)
You need to rename the YOUR_TEMPLATE folder in the IH2 files to MATCH the name of YOUR template folder.. Since you didn't, the javascript and CSS needed to create the hover effect is in a folder named YOUR_TEMPLATE.. (Hence why it's not working)
I actually just moved the files over from template_custom folder to my CUSTOM folder..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
wagnerguy
I actually just moved the files over from template_custom folder to my CUSTOM folder..
Like I said I can't see your site files, but based on doing a view source of your site I can see CLEARLY that you do not have all the IH2 files in the correct locations.
From your site:
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dotline.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dropshadow.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/cherry_zen/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/template_default/jscript/jscript_imagehover.js"></script>
If you installed IH2 correctly here's what you should see (please note the items highlighted in red - these are MISSING form your store):
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dotline.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dropshadow.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/cherry_zen/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/cherry_zen/jscript/jscript_imagehover.js"></script>
<script type="text/javascript" src="includes/templates/template_default/jscript/jscript_imagehover.js"></script>
Double check all your uploads, make sure that you copied the files to the correct template folder.. You mention copying files from a template_custom folder to a CUSTOM folder; make sure you have activated the template that corresponds to that location.. Currently it looks as if you are using the Cherry Zen template which is in a different folder..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Like I said I can't see your site files, but based on doing a view source of your site I can see CLEARLY that you do not have all the IH2 files in the correct locations.
From your site:
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dotline.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dropshadow.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/cherry_zen/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/template_default/jscript/jscript_imagehover.js"></script>
If you installed IH2 correctly here's what you should see (please note the items highlighted in red - these are MISSING form your store):
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dotline.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/cherry_zen/css/stylesheet_dropshadow.css" />
<link rel="stylesheet" type="text/css" media="print" href="includes/templates/cherry_zen/css/print_stylesheet.css" />
<script type="text/javascript" src="includes/templates/cherry_zen/jscript/jscript_imagehover.js"></script>
<script type="text/javascript" src="includes/templates/template_default/jscript/jscript_imagehover.js"></script>
Double check all your uploads, make sure that you copied the files to the correct template folder.. You mention copying files from a template_custom folder to a CUSTOM folder; make sure you have activated the template that corresponds to that location.. Currently it looks as if you are using the Cherry Zen template which is in a different folder..
Ohhhh, i see.. Ok, please nominate me for the idiot of the month..
thanks for your help
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
wagnerguy
Ohhhh, i see.. Ok, please nominate me for the idiot of the month..
thanks for your help
:laugh: No nomination needed.. $h!t happens sometimes..:laugh: Happy to help.. This is one of the EASIEST mods to install so I knew it had to be something fairly simple.. Glad you didn't take it personal.. Seems I've run into a rash of folks lately that got bent out of shape when all I was doing was TRYING to help..:laugh:
-
Re: Image Handler 2 Support
No idea what went wrong here... but I'm getting the following message from my /admin/ after copying the files over:
Quote:
Warning: require_once(/root/includes/extra_configures/bmz_image_handler_conf.php) [function.require-once]: failed to open stream: No such file or directory in /root/admin/includes/extra_configures/bmz_image_handler_conf.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '/root/includes/extra_configures/bmz_image_handler_conf.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /root/admin/includes/extra_configures/bmz_image_handler_conf.php on line 12
Any idea what went wrong?
-
Re: Image Handler 2 Support
UPDATE: Turns out dreamweaver didn't upload properly, but didn't report any errors. Re-uploaded the files and it's back up.
-
PNG error
Hi
I've installed IH2, changed my directory permissions correctly, and have the correct PHP configuration. ZC v1.3.8a.
But, whenever I upload a PNG, I get errors related to the preview of that image.
Quote:
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /home/oleoadmin/oleo.co.nz/includes/classes/bmz_image_handler.class.php on line 646
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /home/oleoadmin/oleo.co.nz/includes/classes/bmz_image_handler.class.php on line 646
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /home/oleoadmin/oleo.co.nz/includes/classes/bmz_image_handler.class.php on line 646
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /home/oleoadmin/oleo.co.nz/includes/classes/bmz_image_handler.class.php on line 646
By preview, I mean in the admin section under the Manager and Preview tabs. In the Manager tab, the PNG preview for each size is blank, although the image has been confirmed as successfully uploaded. And it has. It shows up on my product page just fine.
On the Preview tab, the preview sizes for PNG are tiny dots, not the actual sizes like the GIF and JPEG previews.
Plus, there's that disconcerting error message.
BTW, the GIF and JPEG uploads and previews work perfectly.
I'm sure I'm not the only one who's had this error.
I've uninstalled and reinstalled IH2 a couple of times, and cleared the image cache. Also, I have no other image handling plugins.
Any thoughts?
Thanks in advance.
-
Re: Image Handler 2 Support
I have just installed IH2 and everything is fine with the exception of the zoom image being WAY up and on the very top left of my screen, even well above the top header of my home page. I HAVE searched this thread and the closest solution I can find is a fix for IE that is supposed to fix this issue. While I do default to using IE I also loaded my site with FF and get the same result so I don't think it's an IE issue. The image is barely visible when I mouse over a product on my main page in the upper left of the screen and the first time I tryit, my entire home page drops down to make room for the zoom image..... I can see a small corner of the zoom pic but that's about it.
Here's the link I found for the IE fix but it's apparently dead now.
http://forum.zen-cart.com/showpost.p...postcount=1252
Any idea why my zoom graphic is nowhere near being around or near the graphic I moused over? I tried all the southwest, northeast, etc. settings but makes no diff.
Thanks in advance for any help.
R.
-
Re: Image Handler 2 Support
I am having the same problem you experienced. Did you find a solution?
-
Re: Image Handler 2 Support
Hello there,
Is it possible to have the "IH resize images" for the small images only instead of of all of them?
Thanks...
-
Re: Image Handler 2 Support
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.
-
Re: Image Handler 2 Support
Nevermind, I think I figured it out. I will let you know if I didn't! hahaha. ;)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Earnest-Enterprises
I have just installed IH2 and everything is fine with the exception of the zoom image being WAY up and on the very top left of my screen, even well above the top header of my home page. I HAVE searched this thread and the closest solution I can find is a fix for IE that is supposed to fix this issue. While I do default to using IE I also loaded my site with FF and get the same result so I don't think it's an IE issue. The image is barely visible when I mouse over a product on my main page in the upper left of the screen and the first time I tryit, my entire home page drops down to make room for the zoom image..... I can see a small corner of the zoom pic but that's about it.
Here's the link I found for the IE fix but it's apparently dead now.
http://forum.zen-cart.com/showpost.p...postcount=1252
Any idea why my zoom graphic is nowhere near being around or near the graphic I moused over? I tried all the southwest, northeast, etc. settings but makes no diff.
Thanks in advance for any help.
R.
A link helps us help you.
That said, check that you uploaded all the files.
Sound like you missed one (style_imagehover.css).
M
-
Re: Image Handler 2 Support
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.
-
Re: Image Handler 2 Support
*** 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.
-
Re: Image Handler 2 Support
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
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
llukasz
Yes, but how to check which function exactly is the source of problem?
Easy, remove them one by one until problem is solved and there you go...
These functions were disabled and after removed problem was solved:
Code:
disable_functions = exec,mkdir,shell_proc,shell_exec,system
-
Re: Image Handler 2 Support
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.
-
Re: Image Handler 2 Support
F*ck this stupid addon.
I wrote small script which resize my images automaticly during upload new product, and it work perfect.
I recommend everyone to use php manual, some basic php tutorial and thats all.
When you know something about php and mysql you can do whatever you want with any CMS.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
llukasz
F*ck this stupid addon.
I wrote small script which resize my images automaticly during upload new product, and it work perfect.
I recommend everyone to use php manual, some basic php tutorial and thats all.
When you know something about php and mysql you can do whatever you want with any CMS.
Can you share it? I'm going nuts with this IH2. :lamo:
-
Re: Image Handler 2 Support
A link to your site would help.. But wanted to say this quickly.. IH2 does indeed create the small and medium images. It creates them in the bmz_cache folders. So you are right the edit you made isn't necessary, and leads me to believe there is another issue.. Honest to goodness, IH2 should install without a hitch.. I have installed it COUNTLESS times, and it installs without a hitch.. (Especially the latest clean version) If there are issues with it working 9 times out of 10, the issues can be traced to a problem with the installation.. The only issues I can see might come from installing other image management mods or a lightbox contrib not specifically referenced in the IH2 readme..
The issue with your lightbox has to be an issue with the Lightbox install itself.. IH2 will not interfere with the lightbox contribs referenced in the readme, but IH2 in itself does NOT make the lightbox work..
Quote:
Originally Posted by
Asdesign
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.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
llukasz
F*ck this stupid addon.
I wrote small script which resize my images automaticly during upload new product, and it work perfect.
I recommend everyone to use php manual, some basic php tutorial and thats all.
When you know something about php and mysql you can do whatever you want with any CMS.
Very nice...:no:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
A link to your site would help.. But wanted to say this quickly.. IH2 does indeed create the small and medium images. It creates them in the bmz_cache folders. So you are right the edit you made isn't necessary, and leads me to believe there is another issue.. Honest to goodness, IH2 should install without a hitch.. I have installed it COUNTLESS times, and it installs without a hitch.. (Especially the latest clean version) If there are issues with it working 9 times out of 10, the issues can be traced to a problem with the installation.. The only issues I can see might come from installing other image management mods or a lightbox contrib not specifically referenced in the IH2 readme..
The issue with your lightbox has to be an issue with the Lightbox install itself.. IH2 will not interfere with the lightbox contribs referenced in the readme, but IH2 in itself does NOT make the lightbox work..
Yeah I'm guessing its just a small issue. I'm using Lightbox 1.5 which is the latest I could find under addons, and it has IH2 reference so I guess its the right addon to use. I could link you up to my site but you might have some trouble since it's in hebrew.
Heres a link to a product page I'm examining the problem on:
http://www.night-net.net/index.php?m...roducts_id=242
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Asdesign
Yeah I'm guessing its just a small issue. I'm using Lightbox 1.5 which is the latest I could find under addons, and it has IH2 reference so I guess its the right addon to use. I could link you up to my site but you might have some trouble since it's in hebrew.
Heres a link to a product page I'm examining the problem on:
http://www.night-net.net/index.php?m...roducts_id=242
Well based on looking at your site, if I had to hazzard a guess.. I would say that IH2 is not installed correctly.. I know I keep saying it, but it's because it's really true.. IH2 is as easy to install as renaming the YOUR_TEMPLATE and admin folders to match the names used for these folders, copy the files over, and once you run the install from the admin, it should just WORK with no other tweaks required.. I can't help you with the lightbox, but given your image and lightbox behavior, I have a sneaking suspicion that once you get IH2 working the way it should that the lightbox issue may resolve itself.. for IH2, my suggestion is to uninstall from the admin, then carefully remove ALL of the IH2 files.. Make sure that you don't have any of the files in the install package in different folders than what's in the install package.. Once you get IH2 all backed out, then simply upload IH2 again.. and I would suggest downloading a FRESH copy of it to install..
-
Re: Image Handler 2 Support
Guess I'll try that. Thank you very very much! Btw, did you like the design? I've been hard at work :p
OH, btw, do I have to delete the BMZ CACHE folder? I have to make sure images won't disappear from the products! There's like 200 products in this cart.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Asdesign
Guess I'll try that. Thank you very very much! Btw, did you like the design? I've been hard at work :p
OH, btw, do I have to delete the BMZ CACHE folder? I have to make sure images won't disappear from the products! There's like 200 products in this cart.
I know it sucks to have to do this over, but honestly I think it's the only way to get to the bottom of your issue..
You won't lose your images at all if you delete the BMZ CACHE folder.. You must remove ALL elements of IH2 and start over..
I will keep stressing that this is one of the EASIEST mods to install. (I promise..) I can promise you that any issues have everything to to do with the install being executed incorrectly.. If you have modified any of the install files, if you have installed it differently than what the instructions say, you will have issues..
Also what I find is a frequent issue with mod installs is overwriting files being used by other mods versus using a program like Winmerge to merge the changes. I do not think that any such issues exist between IH2 and other mods.. (I run it on all my client sites, and they are all HEAVILY modded sites..) However if they did you would want to pay particular attention to the files in the includes/modules & includes/templates folders to make sure that you aren't overwriting changes required by other mods you may have installed...
Your site design is very nice.. Clean, and though I can't read Hebrew:laugh:, I can still see that it is a clean easy to navigate design..
-
Re: Image Handler 2 Support
Okie dokie, just uninstalled everything, going to try a reinstall.
-
Re: Image Handler 2 Support
damn :( no luck...I'm 100% I did everything right. I understand the structure of zen cart and everything and I just don't get it.
Maybe this error is the key. But if the problem isn't really inside this file, where else can it be?
Warning: strstr() [function.strstr]: Empty delimiter. in /home/nightnet/domains/night-net.net/public_html/includes/classes/bmz_image_handler.class.php on line 128
Btw, maybe if I knew what does function does I'll get some more clues!
-
Re: Image Handler 2 Support
Half good news: I've got it all working properly but I had to edit "additional_images.php" and "main_product_image.php". I removed "/large" and "/medium" from "main_product_image.php" and also removed "/large" from "additional_images.php" so now all pictures are read from the main directory, i.e., "images/toshiba/xxxx.jpg". The good thing is, IH is basically doing it's job! All sizes are actually generated by IH, so even though I wasn't suppose to edit files to work it out, its an okay solution! :)
-
Re: Image Handler 2 Support
Sorry for quattro posting but no edit option in this forum so I ain't got a choice. Did you notice the huge horizontal bar on my site? I can't find how to remove it but I bet its related to IH somehow.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Asdesign
Sorry for quattro posting but no edit option in this forum so I ain't got a choice. Did you notice the huge horizontal bar on my site? I can't find how to remove it but I bet its related to IH somehow.
Don't see any bar, and I REALLY doubt it's related to IH2..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Don't see any bar, and I REALLY doubt it's related to IH2..
Yeah my bad, it was the news scroller. For some reason it has css property applied to it: "left: -10000px;" god knows why but I'm on my way to remove that. You probably entered the site after I disabled the sidebox in the admin.
-
Re: Image Handler 2 Support
I've nailed down the cause of the problem. Its the error I mentioned. Unfortunately I have no clue what causes it.
I came to the conclusion the error is what causing the problem since IH2 & Lightbox work perfectly on another cart on the server.
Btw, I noticed that when enabling the IH zoom behavior the whole site gets a horizontal bar to the left (the site is still centered but with a horizontal scroll). I understand that some values are dynamic to create the hover effect but should it really work like that?
-
Re: Image Handler 2 Support
Does anyone know what would make IH only work on the side boxes and not on center content? All the images that are supposed to be the same size are.
-
Re: Image Handler 2 Support
I installed IH2 and I'm almost there :wacko:... It's weird, it works on all images except the product info image. I can only "click to enlarge" the main product image... opens up a new window, the old school way. Even products that I have multiple pictures, IH2 works on the additional pictures, it just won't enlarge the main product photo when you hover over it?
I didn't upload my product photos in either the "Large" or "Medium" folders when I was creating my products. I just used the "Main Directory" I upload all photos at 400x400 pixels and was letting ZenCart handle the re-sizing for thumbnails. This always worked out for me. Anybody have any ideas on what I can do to make the main image enlarge when you hover over it? If I can get that accomplished, I'm good to go. Thanks all.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
JGraphics
I installed IH2 and I'm almost there :wacko:... It's weird, it works on all images except the product info image. I can only "click to enlarge" the main product image... opens up a new window, the old school way. Even products that I have multiple pictures, IH2 works on the additional pictures, it just won't enlarge the main product photo when you hover over it?
I didn't upload my product photos in either the "Large" or "Medium" folders when I was creating my products. I just used the "Main Directory" I upload all photos at 400x400 pixels and was letting ZenCart handle the re-sizing for thumbnails. This always worked out for me. Anybody have any ideas on what I can do to make the main image enlarge when you hover over it? If I can get that accomplished, I'm good to go. Thanks all.
If you have lightbox 1.5 installed try to do this. Take out from the lightbox 1.5 installation the file "tpl_modules_main_product_image.php" its under includes/templates. Now put it under includes/templates/your-template-name and images should open up with lightbox. If you have to overwrite that file, first backup the current one you have on the server and then overwrite it. If all works good you're fine.
EDITED! I pointed the wrong file.
-
Re: Image Handler 2 Support
-
Re: Image Handler 2 Support
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
JGraphics
I installed IH2 and I'm almost there :wacko:... It's weird, it works on all images except the product info image. I can only "click to enlarge" the main product image... opens up a new window, the old school way. Even products that I have multiple pictures, IH2 works on the additional pictures, it just won't enlarge the main product photo when you hover over it?
I didn't upload my product photos in either the "Large" or "Medium" folders when I was creating my products. I just used the "Main Directory" I upload all photos at 400x400 pixels and was letting ZenCart handle the re-sizing for thumbnails. This always worked out for me. Anybody have any ideas on what I can do to make the main image enlarge when you hover over it? If I can get that accomplished, I'm good to go. Thanks all.
IH2 has NEVER included the hover behavior you describe to the main product image. If you look at the previous version of IH2, there are files in the Optional Edits folder that deal with adding this behavior.. However these particular edits will break any lightbox contribs you may be using.. (which is why they were ultimately removed from the current version of IH2)
If you are going to make these kinds of changes and you are using a lightbox contrib, you need to apply that hover behavior to the files that drive the main product image that come with your lightbox contribution..
-
Re: Image Handler 2 Support
Hi everyone, sorry if this issue has been answered before. I have searched but I'm sure you can appreciate it's a large thread.
I've had Image Handler 2 installed for ages and have never been able to get it working correctly. When I upload a large image, IH2 does not resize and render a smaller file for the thumbnail in the product listing. Instead, it uses the large file and with the Zen Cart config settings, it resizes it (or squashes it if you like, rather like when you create an image in HTML and alter the width and height that way). So for example, in my category, the 'thumbnail' is actually the large image, and it takes a while to load, and is all squashed. Also, even more worrying, the medium image (the one on the product page) isn't there.
For months I've just been making my own thumbs and medium images to get round this. Can anyone help please?
I believe everything is installed correctly. I'm running 1.3.8. Everything seems to be CHMod'd correctly.
Ideally I'd like to avoid reinstalling, being a live shop and all...
Thanks in advance.
-
Re: Image Handler 2 Support
I am having a problem with additional images not showing up at the bottom of the page after installing IH2. I am also using the Avanced Cross Sell Mod which places related products at the bottom of each page also. It appears to still work fine. Any suggestion as to what to check next would be appreciated. Here is my current test site on a product that has multiple images as well as an active xsell.
[URL="http://davidshomefurnishings.com/store/index.php?main_page=product_info&cPath=3_28_29&products_id=41"]
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
OK Computer
Hi everyone, sorry if this issue has been answered before. I have searched but I'm sure you can appreciate it's a large thread.
I've had Image Handler 2 installed for ages and have never been able to get it working correctly. When I upload a large image, IH2 does not resize and render a smaller file for the thumbnail in the product listing. Instead, it uses the large file and with the Zen Cart config settings, it resizes it (or squashes it if you like, rather like when you create an image in HTML and alter the width and height that way). So for example, in my category, the 'thumbnail' is actually the large image, and it takes a while to load, and is all squashed. Also, even more worrying, the medium image (the one on the product page) isn't there.
For months I've just been making my own thumbs and medium images to get round this. Can anyone help please?
I believe everything is installed correctly. I'm running 1.3.8. Everything seems to be CHMod'd correctly.
Ideally I'd like to avoid reinstalling, being a live shop and all...
Thanks in advance.
I know I sound like a broken record, but no lie, if IH2 is not working it USUALLY means that something went wrong in the install.. Uninstall it from the Admin, and carefully delete ALL the IH2 files and folders.. Don't delete your images folder.. Just delete the files and IH2 SPECIFIC folders.. Don't leave folders behind you think can stay.. DELETE THE WHOLE THING!!!!!!!
Then download a FRESH copy and re-install again.. The only other thing you need to be checking is your image size settings in the config. Details on how to properly configure this is in the IH2 readme.. No shortcuts on this I'm afraid..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
I know I sound like a broken record, but no lie, if IH2 is not working it USUALLY means that something went wrong in the install.. Uninstall it from the Admin, and carefully delete ALL the IH2 files and folders.. Don't delete your images folder.. Just delete the files and IH2 SPECIFIC folders.. Don't leave folders behind you think can stay.. DELETE THE WHOLE THING!!!!!!!
Then download a FRESH copy and re-install again.. The only other thing you need to be checking is your image size settings in the config. Details on how to properly configure this is in the IH2 readme.. No shortcuts on this I'm afraid..
Hi DivaVocals, thanks for getting back to me.
I have reinstalled, and the problem was still there.
However, I did some fiddling about in the image configuration, and looked at Image - Use Proportional Images on Products and Categories. This was set to 0. I've changed that to 1 and it now works. To be honest I couldn't see anything about that in the IH readme but maybe I overlooked it.
So, if anyone is having problems with Image Handler not resizing images and having their main product image missing, try setting Image - Use Proportional Images on Products and Categories from 0 to 1!
Thanks.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
OK Computer
Hi DivaVocals, thanks for getting back to me.
I have reinstalled, and the problem was still there.
However, I did some fiddling about in the image configuration, and looked at Image - Use Proportional Images on Products and Categories. This was set to 0. I've changed that to 1 and it now works. To be honest I couldn't see anything about that in the IH readme but maybe I overlooked it.
So, if anyone is having problems with Image Handler not resizing images and having their main product image missing, try setting Image - Use Proportional Images on Products and Categories from 0 to 1!
Thanks.
But this is what I meant when I said "The only other thing you need to be checking is your image size settings in the config. " If you don't have your image sizing setting in the Zen Cart admin configured correctly then you will have issues (which BTW is NOT an issue with IH2 persay, but it is an issue that will affect how IH2 works).. and image settings is covered in the the readme under the "Troubleshooting in a nutshell" section..
For anyone having issue with IH2 check two things:
- Make sure all files are in correct location, and that they are not corrupt from bad FTP transfers
- Check your Zen Cart image settings
-
Re: Image Handler 2 Support
When i click on the image, it brings up the large image in a new window which is all good, but the window cuts out the bottom 1/4 of the picture (thats where the watermark is too)
I'm sure this is a easy fix. Any help would be great. Apart from that, hassle free mod.
Cheers,
Grant.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Rainyplace
When i click on the image, it brings up the large image in a new window which is all good, but the window cuts out the bottom 1/4 of the picture (thats where the watermark is too)
I'm sure this is a easy fix. Any help would be great. Apart from that, hassle free mod.
Cheers,
Grant.
just a update to my post above,
-it works perfectly on Opera browser
-Just cuts a small bit off the bottom of the picture on IE
-As stated, about 1/4 of the picture is missing with FF v3.0.15, but i can manually make the window bigger once the picture loads.
Any help would be great.
Cheers
Grant.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Rainyplace
When i click on the image, it brings up the large image in a new window which is all good, but the window cuts out the bottom 1/4 of the picture (thats where the watermark is too)
I'm sure this is a easy fix. Any help would be great. Apart from that, hassle free mod.
Cheers,
Grant.
A link to see what you describe would help..
-
Re: Image Handler 2 Support
New Install with IMage Handler giving me trouble. I've used it on many sites with no issues, so I'm wondering if its something to do with the server. It's a server I've never used before.
The hovering works, but it's hovering the full sized image, and is not resizing the product listing images:
http://www.coastcages.com/newstore/i...=index&cPath=4
Any ideas of where to look?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Rainyplace
just a update to my post above,
-it works perfectly on Opera browser
-Just cuts a small bit off the bottom of the picture on IE
-As stated, about 1/4 of the picture is missing with FF v3.0.15, but i can manually make the window bigger once the picture loads.
Any help would be great.
Cheers
Grant.
Are opening a new window? Just as what you mention about FF above.
Watermark doesn't work using IH2. So forget about that.
I would do testing on IE, FF and maybe Chrome are the mostly used browsers. Safari if you have to I guess.
I suggest you look into your image sizing in the admin of your Zen Cart. Might be something astray here. Otherwise it could be a image mod problem?
Something is not working right (corrupt) or your measurement settings in admin are wrong.
admin>configuration>images
admin > Configuration > fual Slimbox
Admin> configuration > AJAX Image Swapper
etc..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
jettrue
New Install with IMage Handler giving me trouble. I've used it on many sites with no issues, so I'm wondering if its something to do with the server. It's a server I've never used before.
The hovering works, but it's hovering the full sized image, and is not resizing the product listing images:
http://www.coastcages.com/newstore/i...=index&cPath=4
Any ideas of where to look?
I can see you have removed IM2 at the link above.
Where are you editing the sizing max value for IM2?
Check other post above.. see if any of those settings help.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Muzz
Are opening a new window? Just as what you mention about FF above.
Watermark doesn't work using IH2. So forget about that.
Watermarking works just fine in IH2. See example here: http://zen138.overthehillweb.com/Lig...oremIpsumDolor. On this test site I have only IH2 and Fual Slimbox installed.
Don't mean to sound like a broken record, but IH2 is an easy install.
- Rename \includes\templates\YOUR_TEMPLATE to match your template's folder name
- Rename admin to match your admin folder name (if you have renamed your admin folder)
- FTP to your site
- Go to Admin > Tools > Image Handler and click on the "Install Image Handler" link
Quote:
Originally Posted by
Muzz
I suggest you look into your image sizing in the admin of your Zen Cart. Might be something astray here. Otherwise it could be a image mod problem?
Something is not working right (corrupt) or your measurement settings in admin are wrong.
admin>configuration>images
admin > Configuration > fual Slimbox
Admin> configuration > AJAX Image Swapper
etc..
:yes:I agree.. After a straight install, IH2 should just work. If there are issues, like Muzz has stated, you need to check your settings under Admin > Configuration > Images. If you have any other mods which affect images, and you have made changes to the default settings for these mods, you may also need to check those as well..
-
Re: Image Handler 2 Support
thank you for your repies, i will have a play with it tonight and let you know how i go. cheers.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Rainyplace
thank you for your repies, i will have a play with it tonight and let you know how i go. cheers.
Also see the troubleshooting section in the IH2 readme.. It covers some suggestions for the default image settings..
-
Re: Image Handler 2 Support
Still puzzling over IH2 behaviors. I have found, through trial and error, that the Zen Cart Admin control, "IH Resize Images" is also responsible for toggling the Watermark feature on and off.
F'rinstance, if you set IH Resize Images to "no," the Watermarking feature stops working.
Unfortunately, the IH Resize Images switch also seems to control the sharpness of the images. With IH Resize Images set to "no," overall sharpness is excellent. With IH Resize Images set to "yes," all images regardless of size are noticeably unsharp.
Please, don't reply with advice on how to resize images. I've been retouching digital image files professionally for many years: it's not the original files, which are plenty sharp in any context OTHER than being controlled by IH2.
Any ideas on how to maximize sharpness? I'm beginning to think I have to go back to manually resizing the JPG's in Photoshop and outputting to Zen Cart folders individually.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
pixelwrangler
Still puzzling over IH2 behaviors. I have found, through trial and error, that the Zen Cart Admin control, "IH Resize Images" is also responsible for toggling the Watermark feature on and off.
F'rinstance, if you set IH Resize Images to "no," the Watermarking feature stops working.
Unfortunately, the IH Resize Images switch also seems to control the sharpness of the images. With IH Resize Images set to "no," overall sharpness is excellent. With IH Resize Images set to "yes," all images regardless of size are noticeably unsharp.
Please, don't reply with advice on how to resize images. I've been retouching digital image files professionally for many years: it's not the original files, which are plenty sharp in any context OTHER than being controlled by IH2. I don't have an issues with clarity or sharpness.. Don't know if that helps.. but that's my three cents..
Any ideas on how to maximize sharpness? I'm beginning to think I have to go back to manually resizing the JPG's in Photoshop and outputting to Zen Cart folders individually.
Without a link to get a better reference on what you are seeing, and without knowing the rest of your image settings it's hard to give an answer, but I will offer up this suggestion.
In general the maximum size I use for product images is 800x800. So I re-size all my product images based on this maximum dimension. I upload these images and let Image Handler take care of resizing everything else (ie: small and medium images) which it does based on my image settings...
-
Re: Image Handler 2 Support
Hi All
I installed image handler 2 for my 1.38a zencart, appearately every thing works find except when i turn on the watermarking for large image. no image is displayed in the popup window. below is my popwindow content and my configuration, any help is appreciated .
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_css_buttons.css" />
<script type="text/javascript" src="includes/templates/classic/jscript/jscript_imagehover.js"></script>
<script language="javascript" type="text/javascript"><!--
var i=0;
function resize() {
i=0;
// if (navigator.appName == 'Netscape') i=20;
if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
} else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
i=0; //This browser is Internet Explorer 6.x
} else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=25; //This browser is Firefox on Windows
} else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=45; //This browser is Mozilla on Windows
} else {
i=80; //This is all other browsers including Mozilla on Linux
}
if (document.documentElement && document.documentElement.clientWidth) {
// frameWidth = document.documentElement.clientWidth;
// frameHeight = document.documentElement.clientHeight;
imgHeight = document.images[0].height+40-i;
imgWidth = document.images[0].width+20;
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - imgWidth / 2;
var toppos = height / 2 - imgHeight / 2;
frameWidth = imgWidth;
frameHeight = imgHeight+i;
window.moveTo(leftpos, toppos);
// window.resizeTo(imgWidth, imgHeight);
window.resizeTo(frameWidth,frameHeight+i);
}
else if (document.body) {
window.resizeTo(document.body.clientWidth, document.body.clientHeight-i);
}
self.focus();
}
//--></script>
</head>
<body id="popupImage" class="centeredContent" onload="resize();">
<div>
IH resize images yes Info
IH small image filetype no_change Info
IH small image background 255:255:255 Info
IH watermark small images no Info
IH zoom small images yes Info
IH small image hotzone no Info
IH small image compression quality 85 Info
IH medium image filetype no_change Info
IH medium image background 255:255:255 Info
IH watermark medium images no Info
IH zoom medium images no Info
IH medium image hotzone no Info
IH medium image compression quality 85 Info
IH large image filetype no_change Info
IH large image background 255:255:255 Info
IH watermark large images no
IH large image compression quality 85 Info
IH large image maximum width 750 Info
IH large image maximum height 550 Info
IH watermark gravity Center Info
IH zoom gravity SouthEast Info
-
Re: Image Handler 2 Support
If you have any other mods which affect images, and you have made changes to the default settings for these mods, you may also need to check those as well.. Also if mods you've installed have files which are also used by IH2, you will need to merge the files so that both mods work together.
Have you checked the troubleshooting section in the IH2 readme.. It covers some suggestions for the default image settings..
Quote:
Originally Posted by
ethanolic
Hi All
I installed image handler 2 for my 1.38a zencart, appearately every thing works find except when i turn on the watermarking for large image. no image is displayed in the popup window. below is my popwindow content and my configuration, any help is appreciated .
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_css_buttons.css" />
<script type="text/javascript" src="includes/templates/classic/jscript/jscript_imagehover.js"></script>
<script language="javascript" type="text/javascript"><!--
var i=0;
function resize() {
i=0;
// if (navigator.appName == 'Netscape') i=20;
if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) {
i=30; //This browser is Internet Explorer 6.x on Windows XP SP2
} else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) {
i=0; //This browser is Internet Explorer 6.x
} else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=25; //This browser is Firefox on Windows
} else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) {
i=45; //This browser is Mozilla on Windows
} else {
i=80; //This is all other browsers including Mozilla on Linux
}
if (document.documentElement && document.documentElement.clientWidth) {
// frameWidth = document.documentElement.clientWidth;
// frameHeight = document.documentElement.clientHeight;
imgHeight = document.images[0].height+40-i;
imgWidth = document.images[0].width+20;
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - imgWidth / 2;
var toppos = height / 2 - imgHeight / 2;
frameWidth = imgWidth;
frameHeight = imgHeight+i;
window.moveTo(leftpos, toppos);
// window.resizeTo(imgWidth, imgHeight);
window.resizeTo(frameWidth,frameHeight+i);
}
else if (document.body) {
window.resizeTo(document.body.clientWidth, document.body.clientHeight-i);
}
self.focus();
}
//--></script>
</head>
<body id="popupImage" class="centeredContent" onload="resize();">
<div>
IH resize images yes Info
IH small image filetype no_change Info
IH small image background 255:255:255 Info
IH watermark small images no Info
IH zoom small images yes Info
IH small image hotzone no Info
IH small image compression quality 85 Info
IH medium image filetype no_change Info
IH medium image background 255:255:255 Info
IH watermark medium images no Info
IH zoom medium images no Info
IH medium image hotzone no Info
IH medium image compression quality 85 Info
IH large image filetype no_change Info
IH large image background 255:255:255 Info
IH watermark large images no
IH large image compression quality 85 Info
IH large image maximum width 750 Info
IH large image maximum height 550 Info
IH watermark gravity Center Info
IH zoom gravity SouthEast Info
-
Re: Image Handler 2 Support
Thanks for the advice i have checked all the troubleshoot could not find the problem.. watermarking works for my medium and large image .. just not the main image..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
ethanolic
Thanks for the advice i have checked all the troubleshoot could not find the problem.. watermarking works for my medium and large image .. just not the main image..
Your main product image should be your medium image..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Your main product image should be your medium image..
yes that is correct.. but when i click on the main product image.. the pop up image does not appear at all.. just a blank page.. but when i switch back off the IH2 watermark the image comes back on.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
ethanolic
yes that is correct.. but when i click on the main product image.. the pop up image does not appear at all.. just a blank page.. but when i switch back off the IH2 watermark the image comes back on.
Honestly it's hard to help you unless you post a link to your site.. I will repeat what I say here frequently.. If IH2 is not working as it should it either means 1 of three things..
1. Installed incorrectly (missing or corrupted files)
2. Configured incorrectly (one or more IH2 settings is wrong)
3. Another mod which has files in common with IH2 has not been merged correctly..
-
Re: Image Handler 2 Support
I installed the image handler just fine. Everything seems to be working great except for one small thing. The main product listing, Ex: category listings, all listing, and new listing pages, do not show the zoom button. But when I click on the product and am viewing the specific product page, I see it but it does not pop up the image when I hover. Is my coding off, or the settings, or is it supposed to do that?
Any help would be great!
lauriesscraps.com/store
Another question..... the pop up windows position on the images in my sidebars show up at the top of the browser even when the image is towards the bottom of the page and therefore is not visible. It only does this in Google Chrome as far I can see for now. Is this the browser issue or something I can fix? Thanks again.
-
Re: Image Handler 2 Support
Hi!
I have got a problem with ih2 that I can not deal with.
My html code looks like this:
<img width="100" height="80" onmouseout="hidetrail();" onmouseover="showtrail('bmz_cache44209fb57ceea0b93cd1e2ae25e8da1d2.image.206 x190.jpg','Komplet klucz nasadowych 1/4 " - 40/9/4',86,80,,,this,0,0,86,80);" style="position: relative;" title=' Komplet klucz nasadowych 1/4 " - 40/9/4 ' alt='Komplet klucz nasadowych 1/4 " - 40/9/4' src="bmz_cachecc07932f9ac4a6e28fb765fa847ddcb45.image.86x80.jpg"/>
Its easy to notice that there are no "/" in image paths. Images are there in correct folders but image path generated in html is inncorrect. I was looking in php files and there is code for those images in file functions_bmz_io.php:
function getCacheName($data, $ext='') {
global $bmzConf;
$md5 = md5($data);
$file = $bmzConf['cachedir'] . '/' . $md5{0} . '/' . $md5.$ext;
io_makeFileDir($file);
return $file;
}
So I think its ok.
I supose that maybe there was different installation of ih before and it wasn't properly unistalled but I don't know what to look for now.
Site address is: http://www.forast.pl/
Zen cart version: 1.3.8a
-
Re: Image Handler 2 Support
I tried to apply default template and it didn't help so probably error is somewhere else.
Other installed modules: SSU, module manager, admin profiles.
-
Re: Image Handler 2 Support
Preview option in admin area doesn't work as well.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Honestly it's hard to help you unless you post a link to your site.. I will repeat what I say here frequently.. If IH2 is not working as it should it either means 1 of three things..
1. Installed incorrectly (missing or corrupted files)
2. Configured incorrectly (one or more IH2 settings is wrong)
3. Another mod which has files in common with IH2 has not been merged correctly..
Hi DivaVocal just PM you.
Thanks
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
lauriesscraps
I installed the image handler just fine. Everything seems to be working great except for one small thing. The main product listing, Ex: category listings, all listing, and new listing pages, do not show the zoom button. But when I click on the product and am viewing the specific product page, I see it but it does not pop up the image when I hover. Is my coding off, or the settings, or is it supposed to do that?
Any help would be great!
lauriesscraps.com/store
Another question..... the pop up windows position on the images in my sidebars show up at the top of the browser even when the image is towards the bottom of the page and therefore is not visible. It only does this in Google Chrome as far I can see for now. Is this the browser issue or something I can fix? Thanks again.
So I have been searching this forum and found this post:
That fixed the problem for me, BUT it is not EXACTLY what I was hoping for.
I wanted to be able to have the hover image pop up on all product pages, but due to the nature of my product, (digi scrapping) I was hoping to have the images that are listed in each category page, down the center, be a little bigger, but still have the hover pop up.
In order for the images in the side bar (Ex: specials, featured, and new) to fit in the sidebox, they have to be smaller, and therefore the main product image must match to allow the hover pop up to work. But I want the images for the main product listing displayed when you click on the category to be bigger, like 225. Now they are set at 150 in order for the other images to fit inside the side columns.
I hope this makes sense. It is a very specific thing, and hard to accurately explain, but I think it might be able to be changed with coding, not sure.
Here is a link:
lauriesscraps.com/store/index.php?main_page=index&cPath=65
Thanks in advance!
-
Re: Image Handler 2 Support
Short answer is that IH2 in it's current state will not work the way you would like.
Can it work differently?? Like all software it's a matter of customization. If someone in the community knows how to achieve this, I'm sure they will share how. If not, and it's a feature you can't live without, you could try posting this as a commercial request in the commercial request forum..
Wish I could give you a different answer.:blush:
Quote:
Originally Posted by
lauriesscraps
So I have been searching this forum and found this post:
That fixed the problem for me, BUT it is not EXACTLY what I was hoping for.
I wanted to be able to have the hover image pop up on all product pages, but due to the nature of my product, (digi scrapping) I was hoping to have the images that are listed in each category page, down the center, be a little bigger, but still have the hover pop up.
In order for the images in the side bar (Ex: specials, featured, and new) to fit in the sidebox, they have to be smaller, and therefore the main product image must match to allow the hover pop up to work. But I want the images for the main product listing displayed when you click on the category to be bigger, like 225. Now they are set at 150 in order for the other images to fit inside the side columns.
I hope this makes sense. It is a very specific thing, and hard to accurately explain, but I think it might be able to be changed with coding, not sure.
Here is a link:
lauriesscraps.com/store/index.php?main_page=index&cPath=65
Thanks in advance!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Short answer is that IH2 in it's current state will not work the way you would like.
Can it work differently?? Like all software it's a matter of customization. If someone in the community knows how to achieve this, I'm sure they will share how. If not, and it's a feature you can't live without, you could try posting this as a commercial request in the commercial request forum..
Wish I could give you a different answer.:blush:
No... I appreciate it! Any answer is good. If someone does know how to customize it, then I would love to know!!
Thanks again!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Quote:
Originally Posted by
ethanolic
Hi All
I installed image handler 2 for my 1.38a zencart, appearately every thing works find except when i turn on the watermarking for large image. no image is displayed in the popup window. below is my popwindow content and my configuration, any help is appreciated
Quote:
Originally Posted by
DivaVocals
If you have any other mods which affect images, and you have made changes to the default settings for these mods, you may also need to check those as well.. Also if mods you've installed have files which are also used by IH2, you will need to merge the files so that both mods work together.
Have you checked the troubleshooting section in the IH2 readme.. It covers some suggestions for the default image settings..
Quote:
Originally Posted by
DivaVocals
Honestly it's hard to help you unless you post a link to your site.. I will repeat what I say here frequently.. If IH2 is not working as it should it either means 1 of three things..
1. Installed incorrectly (missing or corrupted files)
2. Configured incorrectly (one or more IH2 settings is wrong)
3. Another mod which has files in common with IH2 has not been merged correctly..
I know you PMd me your site link, but you should post it here as well so that everyone can see, and perhaps chime in to help. This way if everyone sees both the question and the answer, then the whole community benefits.. :smile:
In the meantime, I found this, and thought it might help shed some light for you..
Quote:
Originally Posted by
tophand
If you have edited any Zen Cart files and have them in your overrides folders and if the same named files are in the Image Handler package them you need to merge the files together.
Quote:
Originally Posted by
tophand
Possible IH files that might need to merge with your edited files:
includes/modules/additional_images.php
includes/modules/main_product_images.php
includes/modules/pages/popup_image/header_php.php
includes/modules/pages/popup_image_additional/header_php.php
includes/templates/template_custom/pop_image_additional/tpl_main_page.php
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
I know you PMd me your site link, but you should post it here as well so that everyone can see, and perhaps chime in to help. This way if everyone sees both the question and the answer, then the whole community benefits.. :smile:
In the meantime, I found this, and thought it might help shed some light for you..
Thanks i will look into that , my client site is www.trustyguywatch.com ..
-
Re: Image Handler 2 Support
Hi all, would like to look for professional help on this.. willing to pay to get this watermark issue fixed. pls PM me for details thanks.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
ethanolic
Hi all, would like to look for professional help on this.. willing to pay to get this watermark issue fixed. pls PM me for details thanks.
Thanks for your help divavocals.. somehow it worked..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
ethanolic
Thanks for your help divavocals.. somehow it worked..
Happy I could help.. though truthfully, I didn't do anything really.. :smile:
-
Re: Image Handler 2 Support
Recently told my IH is not working. I thought it was. :ohmy:
Can I get some feedback?
American-RC.com
Thanks in advance.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
webskipper
Recently told my IH is not working. I thought it was. :ohmy:
Can I get some feedback?
American-RC.com
Thanks in advance.
Mine is acting the same way.
-
Re: Image Handler 2 Support
The caching of smaller images works on a few of my products, but not most of them - so most of my pages are loading with 10+ 50kb images :(
Any idea what's wrong?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
bobthemolder
The caching of smaller images works on a few of my products, but not most of them - so most of my pages are loading with 10+ 50kb images :(
Any idea what's wrong?
Fixed.
Apparently you can't name your images with _LRG at the end. Maybe I missed this in the instructions somewhere.