Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-03-29 18:13:40

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: Is textpattern visible with ie8b?

colak wrote:

Yes but what about the article linked by masa?

I’ve seen articles considerably after that one that state the IE8 team has not yet made a final decision on this matter, since it caused such an uproar and debate.

Remember “SmartTags”? Microsoft said they were going to unleash those within a new browser version, and developers responded immediately by littering their heads with app specific meta tags.

And then MS never added SmartTags. They changed their mind in mid-development. The meta tags are still there, though, in milllions of pages.

Add in the fact my site stats show 21% of my visitors have yet to even jump from IE6 to IE7, and I’m going to wait for this to settle out.


TextPattern user since 04/04/04

Offline

#17 2008-03-29 21:45:53

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

Re: Is textpattern visible with ie8b?

colak wrote:

I was thinking more in the lines of […] But null seems to be actually ‘printed’ on the page.

Oh I see. You don’t need the else, so let’s reverse the condition:

<txp:php>

// if not IE8
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.0') === false)
{
	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
}

</txp:php>
<html lang="en-us" xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Example</title>
	</head>
	<body>
	<txp:php>

	echo $_SERVER['HTTP_USER_AGENT'];

	</txp:php>
	</body>
</html>

Edit: Just tested Textpattern and NeMe – the content shows up:

Last edited by jm (2008-03-29 21:50:55)

Offline

#18 2008-03-30 07:49:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: Is textpattern visible with ie8b?

reid, You are so right – the history of most software is littered with episodes like the one you described. Something similar happened with the architectural software I use – we all panicked but within a few months the new version was released which was fully compatible with most of the previous documents.

jm’s snippet is very helpful for now as we can at least check our sites on ie8. In my case at least, without it I get a blank screen. With it, I see possible inconsistencies which although I am not going to correct until the official version is released I will be ready for when it does.

jm – that works! thanks! – isn’t your screenshot on ie7 though?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2008-03-30 07:53:38

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

Re: Is textpattern visible with ie8b?

No problem. That’s IE8 – if you click “Emulate IE7” it’ll use IE7’s rendering engine. Plus IE7 doesn’t mess up the textpattern.com page :).

Offline

Board footer

Powered by FluxBB