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,510,567

Results 5,261 to 5,280 of 7,094
15 Jun 2010, 8:23 PM
#5261
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

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

wihandy:

hi,
i'm a newbie here.
just wondering can i use Image Handler 2 ini zencart 1.3.9d and PHP 5.3?

I used it but I have php 5.2.6

16 Jun 2010, 4:45 PM
#5262
wihandy avatar

wihandy

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

ok. so i have to wait for the next release of Image Handler 2 to get it to work in PHP 5.3. :(
anyway, is it okay if I install zen lightbox and EZ populate before Image Handler?
i want my website to be up and running ASAP.
and when the next release of Image handler 2 is available, i can install it directly. :smile:

16 Jun 2010, 8:39 PM
#5263
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

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

wihandy:

ok. so i have to wait for the next release of Image Handler 2 to get it to work in PHP 5.3. :(
anyway, is it okay if I install zen lightbox and EZ populate before Image Handler?
i want my website to be up and running ASAP.
and when the next release of Image handler 2 is available, i can install it directly. :smile:

you can install any add on you wish in whatever order...mainly.

just be certain to not toss the folder with the files or zips cause some addons share files...thus uploading a file may overwrite one that needed by a previous addon.

also do not just upload the folders that come with your addons....just upload the files to the exact same place located in the zips files and create a folder with your templates name in the places needed as indicated in the addon zip.

backup your database before any installations, just in case

17 Jun 2010, 4:09 AM
#5264
wihandy avatar

wihandy

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

ok. thx for the replies. :wink:

17 Jun 2010, 4:10 PM
#5265
earnest_enterprises avatar

earnest_enterprises

New Zenner

Join Date:
Oct 2009
Location:
Great Northwest
Posts:
80
Plugin Contributions:
0

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

I have IH2 installed and working fine under 139d and Zen Lightbox.

Is there any way to remove the "alt" image product description that pops up when I mouse over an image? Or is this browser-dependent?

While it does eventually go away after several seconds it blocks the product decscription on the image and is a distraction.

http://www.earnest-enterprises.com

I've scoured the forum for an answer to this but don't find anything. Thanks for any thoughts on this....

17 Jun 2010, 8:52 PM
#5266
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Earnest-Enterprises:

I have IH2 installed and working fine under 139d and Zen Lightbox.

Is there any way to remove the "alt" image product description that pops up when I mouse over an image? Or is this browser-dependent?

While it does eventually go away after several seconds it blocks the product decscription on the image and is a distraction.

http://www.earnest-enterprises.com

I've scoured the forum for an answer to this but don't find anything. Thanks for any thoughts on this....

Ok i haven't looked into this for a few years But

No pretty sure there is no way without hacking some fairly important IH files,

the image link contains both an alt tag and a title tag,
The alt tag should be displayed as a tooltip when the image is missing, (although webkit browsers ignore this, i think)
The title tag should be displayed as a tooltip when you hover the mouse over the image, although IE being IE displays the alt tag on mouse hover, whereas the other browsers display the title tag as per the W3c specs

Why am i telling you all this, well if you are going to try removing the alt tag, you will need to remove the title tag as well to fix the issue in the other browsers, which will also make your site less compatible with screen readers (for the disabled)

From what i know you cannot style these particular tooltips with CSS to make them disappear, there is some weird involved reason about them not being elements, that i don't really understand.

There are javascript hacks to make the alt/title text tooltips disappear, however unless you know a bit of code it's best to avoid.

although now I have written that, i am sure someone will popup with a logical and patently obvious way to do it

17 Jun 2010, 10:26 PM
#5267
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Earnest-Enterprises:

I have IH2 installed and working fine under 139d and Zen Lightbox.

Is there any way to remove the "alt" image product description that pops up when I mouse over an image? Or is this browser-dependent?

While it does eventually go away after several seconds it blocks the product decscription on the image and is a distraction.

http://www.earnest-enterprises.com

I've scoured the forum for an answer to this but don't find anything. Thanks for any thoughts on this....

Ok, this is what i did many years ago to fix this issue, but it does affect accessibility for screen readers, a javascript option is better

This is the quick and dirty fix, and effects one core file and is offered with no guarantees, this also isn't really an image handler problem, it is a generic zencart function to allow for accessibility

Find your \includes\functions\html_output.php file make a backup of the file

go to around line 122 and you will see the following code, this is where the title tag and attribute tag are produced

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
     $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

change it to this the double slashes in front of the lines make the php parser browser ignore those line, i personally leave them in as it makes problems easier to find, it also helps if you need to merge the file when adding a mod that effects it

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
//    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
    $image = '<img src="' . zen_output_string($src) . '"';

//    if (zen_not_null($alt)) {
 //     $image .= ' title=" ' . zen_output_string($alt) . ' "';
//    }

I have tested this and it does work, but its up to you to edit the files.

no warranties no guarantees etc

17 Jun 2010, 10:55 PM
#5268
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Ignore the previous post i misread the question

17 Jun 2010, 11:32 PM
#5269
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Ok Corrected version - sorry was having issues with browser caching

This isn't an image handler thing, it is to do with Zencarts support for accessibility

But any way, it appears IE8 supports the alt tag correctly (a mod couldn't dlete my last to posts please), by not showing an image hover.

Find your \includes\functions\html_output.php file make a backup of the file

around line 197

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

and replace it with this

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=""';
    }

The above should work in all browsers except IE6, and it doesn't really effect the accessibility because the alt tag is still in place

18 Jun 2010, 4:28 AM
#5270
earnest_enterprises avatar

earnest_enterprises

New Zenner

Join Date:
Oct 2009
Location:
Great Northwest
Posts:
80
Plugin Contributions:
0

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

Thanks much, nigelt74, for such a thorough response. While it isn't a big issue I noticed it could be a slight irritation to some (like me...:P).

Thanks again!

Rod

18 Jun 2010, 12:20 PM
#5271
carol2848 avatar

carol2848

New Zenner

Join Date:
Nov 2007
Posts:
78
Plugin Contributions:
0

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

I have installed Image Handler, and nothing works! All my images are in a SUBfolder in the Images folder -- is that a problem?

18 Jun 2010, 9:31 PM
#5272
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

carol2848:

I have installed Image Handler, and nothing works! All my images are in a SUBfolder in the Images folder -- is that a problem?

No, thats not a problem, because the image location is stored in the Zencart database when you add the product and image handler uses that database to find the images.

It appears from the link in your signature you have got it working now, is that correct?

18 Jun 2010, 10:47 PM
#5273
carol2848 avatar

carol2848

New Zenner

Join Date:
Nov 2007
Posts:
78
Plugin Contributions:
0

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

I thought IH was supposed to generate larger pop-up images when small images were hovered over? Is there something else I should have done so that will happen?

18 Jun 2010, 11:56 PM
#5274
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

carol2848:

I thought IH was supposed to generate larger pop-up images when small images were hovered over? Is there something else I should have done so that will happen?
Its not working because you haven't uploaded all the files,

I can tell this by looking at the head section of your code, some of files are missing

you need to upload the contents of the image handler /includes/templates/YOUR TEMPLATE/ to the template you are using (mystore)

You are missing the javascript file that runs the mouseover and possibly others

there should be a javascript file located in
/includes/templates/mystore/jscript/

in fact the should be one in the default directory as well

19 Jun 2010, 12:19 AM
#5275
earnest_enterprises avatar

earnest_enterprises

New Zenner

Join Date:
Oct 2009
Location:
Great Northwest
Posts:
80
Plugin Contributions:
0

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

Thanks, nigelt74, for posting the fix for the alt product descript popping up on images but it didn't work. I made the change exactly as you posted above. You did say you made no guarantees and I appreciate that. I also appreciate your efforts in trying to rectify my problem. Maybe there's something down the road that will pop up (besides the alt descript...) that'll take care of it.

Rod

19 Jun 2010, 1:53 AM
#5276
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

Earnest-Enterprises:

Thanks, nigelt74, for posting the fix for the alt product descript popping up on images but it didn't work. I made the change exactly as you posted above. You did say you made no guarantees and I appreciate that. I also appreciate your efforts in trying to rectify my problem. Maybe there's something down the road that will pop up (besides the alt descript...) that'll take care of it.

Rod

Umm are you sure?

Which line did you make the change on?
because i had a look at your page source code and the title is still there

title=" Jolly Roger Fedora Hat " alt="Jolly Roger Fedora Hat" 

can you post the section of code that you changed basically this section
(there are 2 very similar sections one around line 122 and the other around line 197)
this is the one around 197

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

you can also change around line 124 ish?

where it says

    
if (zen_not_null($alt)) {
      $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

to

if (zen_not_null($alt)) {
      $image .= ' title=""';
    }
19 Jun 2010, 9:08 PM
#5277
earnest_enterprises avatar

earnest_enterprises

New Zenner

Join Date:
Oct 2009
Location:
Great Northwest
Posts:
80
Plugin Contributions:
0

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

Umm are you sure?

No, I'm never sure when I'm making changes in ZC...:laugh:

Your last suggestion did the trick, Nigel. The alt description no longer pops up. There are actually two other lines that have your last change in the original html_output.php file that was distributed with 139d (besides your original fix at line 197). My line numbers were different as I have another mod that uses this file thus changes the line numbers.

To put this all in a clear perspective, here's what I did with your suggestions (assuming my line numbers remained the same as the original file) to keep the alt description from popping up over images. In the includes/functions/html_output.php file:

I replaced the code at line 124 from this:

if (zen_not_null($alt)) {
      $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

to this:

if (zen_not_null($alt)) {
      $image .= ' title=""';
    }

I did exactly the same with the above at line 200 as the code is the same (needs to be changed in two places).

At line 197 I replaced this:

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=" ' . zen_output_string($alt) . ' "';
    }

With this:

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=""';
    }

Works like a charm, Nigel, and I thank you for your help!

Rod

19 Jun 2010, 9:57 PM
#5278
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

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

Hi

I've read through all of the posts since v1.3.9 has been released and have noticed a few requesting a copy of the merged files from someone who has it running on their shop.

I cant read php so I'm also looking for a copy of each merged file unless somebody can confirm that its a case of opening both files in winmerge and copying all highlighted differences from the original mod files to the 139 files.

I've had problems meging files meant for 138 so this merging from 138 to 139 is definately out of my league.

Thanks in advance

20 Jun 2010, 6:45 AM
#5279
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

iddy:

Hi

I've read through all of the posts since v1.3.9 has been released and have noticed a few requesting a copy of the merged files from someone who has it running on their shop.

I cant read php so I'm also looking for a copy of each merged file unless somebody can confirm that its a case of opening both files in winmerge and copying all highlighted differences from the original mod files to the 139 files.

I've had problems meging files meant for 138 so this merging from 138 to 139 is definately out of my league.

Thanks in advance
I could also do with a copy, if ones avavilable, as i have just overwritten my test site with the defauly 1.3.9d files and forgot to back the darned thingup and my brain isn't up to merging it again

20 Jun 2010, 11:31 AM
#5280
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

iddy:

Hi

I'm also looking for a copy of each merged file unless somebody can confirm that its a case of opening both files in winmerge and copying all highlighted differences from the original mod files to the 139 files.

Ok I have working code, if you want it send me a PM, its basically imagehandler 2 rev7 merged with the relevant 1.3.9d files, plus the javascript fix

It seems to work for me, but as with anything to do with computers, backup, backup, backup, before using