Page 529 of 710 FirstFirst ... 29429479519527528529530531539579629 ... LastLast
Results 5,281 to 5,290 of 7099
  1. #5281
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 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
    Code:
    // 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

    Code:
    // 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
    Last edited by nigelt74; 18 Jun 2010 at 12:36 AM.

  2. #5282
    Join Date
    Oct 2009
    Location
    Great Northwest
    Posts
    80
    Plugin Contributions
    0

    Default Re: Image Handler 2 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...).

    Thanks again!

    Rod

  3. #5283

    Default Re: Image Handler 2 Support

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

  4. #5284
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 Support

    Quote Originally Posted by carol2848 View Post
    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?

  5. #5285

    Default Re: Image Handler 2 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?

  6. #5286
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 Support

    Quote Originally Posted by carol2848 View Post
    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

  7. #5287
    Join Date
    Oct 2009
    Location
    Great Northwest
    Posts
    80
    Plugin Contributions
    0

    Default Re: Image Handler 2 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

  8. #5288
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Image Handler 2 Support

    Quote Originally Posted by Earnest-Enterprises View Post
    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

    Code:
    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

    Code:
    // 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

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

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

  9. #5289
    Join Date
    Oct 2009
    Location
    Great Northwest
    Posts
    80
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Umm are you sure?
    No, I'm never sure when I'm making changes in ZC...

    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:

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

    Code:
    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:

    Code:
    // 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:

    Code:
    // 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

  10. #5290
    Join Date
    Jan 2009
    Posts
    119
    Plugin Contributions
    0

    Default Re: Image Handler 2 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

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR