This topic is locked
[SOLVED]

 PHPRunner & IE8 quirks mode

3/11/2011 9:01:09 PM
PHPRunner General questions
J
james431987 author

PHPRunner 5.3 Build 7474
By default when viewing any page generated by phprunner IE8 displays in quirks mode. I've tried changing the doctype & adding <meta http-equiv="X-UA-Compatible" content="IE=8" />

but PHPRunner rewrites your html for you. I've also tried adding a php code snippit in the header to echo out exactly what I want, but then PHPRunner will move your code snippet to the body for you..~.~
Has anyone been able to display PHPRunner's generated files in Browser Mode IE8 by default with out manually changing it via browser?

J
james431987 author 3/14/2011

I ended up doing a search for

"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">"

and replace with

"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">";
of course I have to do this every time I do a new or partial build. I couldn't find it in the themes folder so if anyone knows were this is located I'd greatly appreciate if you could let me know where it is.

Sergey Kornilov admin 3/14/2011

PHPRunner doesn't specify DOCTYPE in template files. However if you modify files in Visual Editor Internet Explorer editing engine adds it's own doctype definition.
If you want to make changes to template file check file name lheader.htm i.e. C:\Program Files\PHPRunner5.3\templates\layouts\Amsterdam\lheader.htm

J
james431987 author 3/14/2011

ah I get it. I edited every file in the themes folder that had "<html {$html_attrs}>"

and put "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">";

above it(14 files). When viewing in phprunner any of those pages it

converts it to "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">";

which is perfectly fine with me because IE8 doesn't display in quirks mode anymore!
I can now do things like
<div style="margin:0 auto; width:1000px;">

ALL CONTENT

</div>
and have everything centered on my monitor on every browser <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=57057&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
TYVM for your support!