Page 1 of 2 12 LastLast
Results 1 to 10 of 44

Hybrid View

  1. #1

    Default Image Handler 2 Conflict with Scrolling Side Boxes

    I have found the source of the scrolling problems in sideboxes when Image Handler 2(IH2) is installed. Only affects IE 6 & IE 7, Firefox is unaffected.

    It's the fact that IH2 does a " style="position:relative" " on the images in those sideboxes. Remove this CSS style and the problem is fixed.

    Have a look in includes/classes/bmz_image_handler.class.php, right at the end of the file.

    You will see:
    return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom'...

    Just remove the offending style so you end up with:
    return $parameters . 'onmouseover="showtrail(' . "'$products_image_zoom'...

    And scrolling in sideboxes will work again.

    But this breaks image hover functionality offered with Image Handler for the entire site.

    We need some way of testing for whether you are actually in a sidebox or not.

    I've tested this with a few scrolling sidebox contributions, all with the same results.

    Has anyone got a fix or workaround for this problem? Or any suggestions for working towards a solution. Thanks.

  2. #2
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Quote Originally Posted by CraigW View Post
    I have found the source of the scrolling problems in sideboxes when Image Handler 2(IH2) is installed. Only affects IE 6 & IE 7, Firefox is unaffected.

    It's the fact that IH2 does a " style="position:relative" " on the images in those sideboxes. Remove this CSS style and the problem is fixed.

    Have a look in includes/classes/bmz_image_handler.class.php, right at the end of the file.

    You will see:
    return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom'...

    Just remove the offending style so you end up with:
    return $parameters . 'onmouseover="showtrail(' . "'$products_image_zoom'...

    And scrolling in sideboxes will work again.

    But this breaks image hover functionality offered with Image Handler for the entire site.

    We need some way of testing for whether you are actually in a sidebox or not.

    I've tested this with a few scrolling sidebox contributions, all with the same results.

    Has anyone got a fix or workaround for this problem? Or any suggestions for working towards a solution. Thanks.
    Thanks for showing this fix. I just uploaded and have IH2 working and just now noticed that IE stopped working on the scroll box. Thanks for this fix!!... everything is working smooth now!

    -cd-

  3. #3
    Join Date
    Oct 2007
    Location
    Israel, Tel-Aviv
    Posts
    3
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    I have found a solution that makes both features, image hover and scrolling sidebox, work perfectly fine in IE6.

    1. First of all, you keep the 'style="position:relative"' in includes/classes/bmz_image_handler.class.php intact.

    2. Add style="position:relative" to the marquee tag in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_whats_new.php .
    So you will have something like $content .= '<MARQUEE style="position:relative" behavior= " ....

    3. Add the following block to your stylesheet :

    #whatsnewContent{
    height: 150px;
    overflow: hidden;
    position: relative;
    }

    The block name, whatsnewContent, has to match the id name of the div that's holding the content of the sidebox.

    Thats it. Have fun :)

  4. #4
    Join Date
    May 2006
    Location
    Louisiana
    Posts
    263
    Plugin Contributions
    0

    help question Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Quote Originally Posted by RedrikShuhart View Post
    I have found a solution that makes both features, image hover and scrolling sidebox, work perfectly fine in IE6.

    1. First of all, you keep the 'style="position:relative"' in includes/classes/bmz_image_handler.class.php intact.

    2. Add style="position:relative" to the marquee tag in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_whats_new.php .
    So you will have something like $content .= '<MARQUEE style="position:relative" behavior= " ....

    3. Add the following block to your stylesheet :

    #whatsnewContent{
    height: 150px;
    overflow: hidden;
    position: relative;
    }


    The block name, whatsnewContent, has to match the id name of the div that's holding the content of the sidebox.

    Thats it. Have fun :)
    I've tried all of this, taking out the style, and adding the $content .=' <Marquee style= position:relative" behavior= " I'm not a php programer so I do know what goes next and all I get is a parse error. when I just take out the style it still don't work.
    when I take out this: return $parameters . 'style="position:relative"

    I get a parse error. I take out this: return $parameters . 'style="position:relative"onmouseover="showtrail
    I still get a parse error.

    If I take this all out the box still don't work.
    return $parameters . 'style="position:relative"onmouseover="showtrail (' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';

    Could someone please help. I don't know any thing to do except remove the image handle.

    http://www.weezeesgifts.com

  5. #5

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    RedrikShuhart, you are a legend, that's done the trick. I now have IH2 Image Hover and scrolling Featured sidebox. Just did the same code changes to Misty's featured scrollbox mod, just changing id tag name from "whatsnewContent" -> "featuredContent".

    One small problem is that IE6 starts scrolling the image slightly past the bottom of my sidebox, the text doesn't appear until the correct scrolling position. IE7 & firefox start scrolling in the correct position. But hey, I can live with that.

    Thanks again.

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Confirm RedrikShuhart's fix works for my scrolling featured sidebox,
    with small problem, mentioned by CraigW, when using IE6

  7. #7
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    48
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Quote Originally Posted by RedrikShuhart View Post
    I have found a solution that makes both features, image hover and scrolling sidebox, work perfectly fine in IE6.

    1. First of all, you keep the 'style="position:relative"' in includes/classes/bmz_image_handler.class.php intact.

    2. Add style="position:relative" to the marquee tag in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_whats_new.php .
    So you will have something like $content .= '<MARQUEE style="position:relative" behavior= " ....

    3. Add the following block to your stylesheet :

    #whatsnewContent{
    height: 150px;
    overflow: hidden;
    position: relative;
    }

    The block name, whatsnewContent, has to match the id name of the div that's holding the content of the sidebox.

    Thats it. Have fun :)
    Hello!
    Can you please be a little bit more clear?
    I don't know PHP and I still try my best, but if you help... please help the LAME ONES TOO... like me. Can you provide please step by step instructions? Thank you!
    justMARK
    mainMAG.NET - The place where you get magnetized!
    ZenCart 1.3.7.1 - for now...

  8. #8
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    48
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Ok!
    I did it!
    The solution to the "Image Handler 2 Conflict with Scrolling Side Boxes" problem is:
    1. Go to the file includes/templates/YOUR_TEMPLATE/sideboxes/tpl_whats_new.php and replace
    $content .= '<MARQUEE behavior= "' . $scroll_behaviour . '" align= "center" direction= "' . $scroll_direction . '" height="' . $box_height . '" scrollamount= "' . $scroll_amount . '" scrolldelay= "' . $scroll_delay . '" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' . $rn .'</MARQUEE>';
    with
    $content .= '<MARQUEE style="position:relative" behavior= "' . $scroll_behaviour . '" align= "center" direction= "' . $scroll_direction . '" height="' . $box_height . '" scrollamount= "' . $scroll_amount . '" scrolldelay= "' . $scroll_delay . '" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' . $rn .'</MARQUEE>';

    2. Go to file includes/templates/YOUR_TEMPLATE/CSS/style_imagehover.css and add
    #whatsnewContent{
    height: 150px;
    overflow: hidden;
    position: relative;
    }


    And you're done!!! Mine is woking now just perfect. mainmag.net Check it!

    For the author:
    Thank you for the module! Is a really catchy one! Can I try and code it and upload an update for you? Or you want to do it? Thank you again!!!

    Again... I am a novice... and I figured!
    justMARK
    mainMAG.NET - The place where you get magnetized!
    ZenCart 1.3.7.1 - for now...

  9. #9
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    Quote Originally Posted by justMARK View Post
    Ok!
    I did it!
    The solution to the "Image Handler 2 Conflict with Scrolling Side Boxes" problem is:
    1. Go to the file includes/templates/YOUR_TEMPLATE/sideboxes/tpl_whats_new.php and replace
    $content .= '<MARQUEE behavior= "' . $scroll_behaviour . '" align= "center" direction= "' . $scroll_direction . '" height="' . $box_height . '" scrollamount= "' . $scroll_amount . '" scrolldelay= "' . $scroll_delay . '" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' . $rn .'</MARQUEE>';
    with
    $content .= '<MARQUEE style="position:relative" behavior= "' . $scroll_behaviour . '" align= "center" direction= "' . $scroll_direction . '" height="' . $box_height . '" scrollamount= "' . $scroll_amount . '" scrolldelay= "' . $scroll_delay . '" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>' . $rn .'</MARQUEE>';

    2. Go to file includes/templates/YOUR_TEMPLATE/CSS/style_imagehover.css and add
    #whatsnewContent{
    height: 150px;
    overflow: hidden;
    position: relative;
    }


    And you're done!!! Mine is woking now just perfect. mainmag.net Check it!

    For the author:
    Thank you for the module! Is a really catchy one! Can I try and code it and upload an update for you? Or you want to do it? Thank you again!!!

    Again... I am a novice... and I figured!

    thanks so much for this. It also worked for me

  10. #10
    Join Date
    Sep 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Image Handler 2 Conflict with Scrolling Side Boxes

    nevermind I was obviously a few pages behind when posting.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Image Handler 4.1 and zen lightbox additional_images conflict
    By oavs in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 13 May 2013, 07:01 AM
  2. issue with scrolling image gallery
    By customk1 in forum General Questions
    Replies: 5
    Last Post: 2 Aug 2010, 03:26 PM
  3. Image preview with scrolling
    By wgb524 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Apr 2010, 03:38 AM
  4. Image Handler 2 with Scrolling Featured Products
    By Remzi in forum Basic Configuration
    Replies: 1
    Last Post: 23 Aug 2006, 07:32 PM

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