Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-05-15 07:53:48

jufemaiz
Archived Plugin Author
From: nth narrabeen, sydney, nsw, au
Registered: 2005-03-17
Posts: 91
Website

Re: phw_DTD

does this skip the xml declaration:
<?xml version=“1.0” encoding=“UTF-8”?>

because it stuffs up IE if I want to use margin: auto; (and I already have a checking method for that)…


BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside

Offline

#14 2005-05-15 08:32:16

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

Re: phw_DTD

> jufemaiz wrote:

does this skip the xml declaration:
< ?xml version="1.0" encoding="UTF-8"? >

As far as IE goes, yes.
Compare on my site (sig) what the plugin outputs for Firefox/Opera and for other browsers.

[edit] davidm, glad you like it.

Last edited by phiw13 (2005-05-15 08:33:14)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#15 2005-09-18 01:29:25

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

Re: phw_DTD

Plugin finally updated to work with the Texpattern 4.0 interface. Yes I’m slow. Refreshed the code a bit, and expanded the help file.

Download.
Or go the download section, and fetch it from there, sometimes the direct link doesn’t seem to work.

For the fool, the brave and …


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#16 2005-10-11 20:39:44

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: phw_DTD

As of revision 1021, and if you use phw_DTD in your error_default page, you should probably comment out line 1290 in textpattern/lib/txplib_misc.php, which is also sending a HTTP Content header.

Offline

#17 2005-10-11 23:42:40

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

Re: phw_DTD

> Etz Haim wrote:

As of revision 1021, and if you use phw_DTD in your error_default page, you should probably comment out line 1290 in textpattern/lib/txplib_misc.php, which is also sending a HTTP Content header.

Thanks for checking that out. I’m still at rev 1018. Morning coffee has priority over svn update. :-)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#18 2007-01-05 18:00:49

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: phw_DTD

I am using it in 4.0.4 and it seems to be working just fine. Thanks for this plugin. Had to comment out two instances of header(“Content-type:text/html; charset=utf-8”); though in publish.php.

Offline

#19 2007-01-06 11:41:03

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: phw_DTD

There is a bug in this plugin, it’s quite obvious. It outputs a faulty DOCTYPE for XHTML 1.0 Strict: <!DOCTYPE html PUBLIC \"-//W3C//W3C//DTD XHTML 1.0 Strict//EN\" (the //W3C-part is doubled).

Strange thing is nobody ever noticed it before and it’s two years old. Well, it probably has no more than 4 users :) Which is a pity, because it allows serving XHTML the way it should be served: as application/xhtml+xml, without excluding IE-users.

Offline

#20 2007-02-18 16:25:43

Finkregh
New Member
Registered: 2007-02-18
Posts: 3

Re: phw_DTD

the given archive is corrupt .

Last edited by Finkregh (2007-02-18 16:26:49)

Offline

#21 2009-07-07 16:51:06

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: phw_DTD

Is there a way to do this without hacking core files?

Offline

#22 2009-07-07 20:35:16

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: phw_DTD

johnstephens wrote:

Is there a way to do this without hacking core files?

No, the text/html header is sent in ./index.php. If you comment it out, you can send it directly in your page template. You may want to stick with HTML or non-strict XHTML though.

Offline

Board footer

Powered by FluxBB