5093 Posts in 1516 Topics by 1113 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1669 Views |
-
iepngfix.htc

30 September 2009 at 8:47am
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 -
Re: iepngfix.htc

30 September 2009 at 9:05am
Never tried that one, but DD Belated PNG FIx works okay for me
-
Re: iepngfix.htc

30 September 2009 at 1:22pm Last edited: 30 September 2009 1:22pm
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?
-
Re: iepngfix.htc

1 October 2009 at 2:34am
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 -
Re: iepngfix.htc

1 October 2009 at 7:58am
Thank you all!
Juan thats spot on that works perfect thank you very much.Aghy
| 1669 Views | ||
|
Page:
1
|
Go to Top |



