Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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: South-Western Japan
Registered: 2004-02-27
Posts: 3,657
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
phiw13 on Codeberg

Offline

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

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 87
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: 87
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: 1,000
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