Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » iepngfix.htc

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1854 Views
  • aghy
    Avatar
    Community Member
    2 Posts

    iepngfix.htc Link to this post

    Im having trouble getting iepngfix.htc to work in my silverstripe installation. Im sure its possible to implement but for some reason the script isnt running.

    I created a new folder called scripts under domain.com/themes/tutorial/scripts and put the .htc file in there with it referencing the blank.gif in the images folder.

    So if anyone has managed to get iepngfix.htc working please could you describe how. I imagine its got something to do with the rewriting of the url that silverstripe is doing but I dont know where to look.

    Anyone who wants to have a look at what the script can do check it out --> http://www.twinhelix.com/

    Thanks
    Aghy

  • zenmonkey
    Avatar
    Community Member
    524 Posts

    Re: iepngfix.htc Link to this post

    Never tried that one, but DD Belated PNG FIx works okay for me

    http://www.dillerdesign.com/experiment/DD_belatedPNG/

  • socks
    Avatar
    Community Member
    190 Posts

    Re: iepngfix.htc Link to this post

    I recall a friend having trouble implementing Twin Helix on a SilverStripe site. I don't know if he ever got it to work. I'm about to try it soon on a current project. Making a note of the DD one, thanks.

    On some sites, I actually make different graphics for IE6 so I don't have to worry about the PNG fixes. Usually it's just containers with drop shadows on a textured background. I'll just strip out the drop shadows and be done with it.

    I'm still waiting for someone to write a virus for that hides IE6 and installs FF on the desktop and makes it the default browser (maybe even change the icon to the IE one). Or at least updates IE6 to 8. Any takers?

  • Juanitou
    Avatar
    Community Member
    322 Posts

    Re: iepngfix.htc Link to this post

    Hi aghy,

    Put blank.gif and iepngfix.htc together in /mysite/javascript (with the appropriate blankImg = 'mysite/javascript/blank.gif';). Then, in your theme /css folder, create, for example, an ie6.css file containing:

    img {behavior: url(mysite/javascript/iepngfix.htc) }

    Then, in your page controller, you could have:

    class Page_Controller extends ContentController {

    function init() {
       parent::init();
       // Note: you should use SS template require tags inside your templates
       // instead of putting Requirements calls here. However these are
       // included so that our older themes still work
       Requirements::themedCSS("layout");
       Requirements::themedCSS("typography");
       Requirements::themedCSS("form");
       // IE hacks
       if($pos = strpos($_SERVER[ 'HTTP_USER_AGENT' ], 'MSIE')) {
          Requirements::themedCSS("ie");
          $version = substr($_SERVER[ 'HTTP_USER_AGENT' ], $pos + 5, 3 );
          if( $version < 7 ) {
             Requirements::themedCSS("ie6");
          }
       }
    }

    Hope it helps,
    Juan

  • aghy
    Avatar
    Community Member
    2 Posts

    Re: iepngfix.htc Link to this post

    Thank you all!
    Juan thats spot on that works perfect thank you very much.

    Aghy

    1854 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.