Archive for December, 2006

Thursday, December 14th, 2006

A simple code plugin…

Instead of some code parsing monster, Tom suggested implementing the code display in an iframe with src as the code file in question.

[updated]

It’s taking far too much time to do this. All the tag parsing nonsense, coupled with wp’s tendency to “autocorrect” quotes in an MS Word stylee are making this awkward. Found a nice plugin that does more or less what I am trying to do, and changed it to use an iframe.


Download this code: dolatercontrol.as

… all systems go!

update: Actually, it seems to cause a problem with IE. Even though the file is sent as text/plain, if it has an xml declaration, IE tries to render it. Hmmm. Stupid IE

Thursday, December 14th, 2006

Kimili uses swfobject 1.3

I seem to recall that swfobject 1.3 has nasty bugs when it comes to streaming media and IE. I may invest some time upgrading the javascript in kml_flashembed.php to serve the latest swfobject (which is something like 1.4.4)

Wednesday, December 13th, 2006

Kimili Flash embed plugin

It’s what we use on FCB, and it came recommended… so I decided that that’s what we need here.

Actually, this isn’t going too well. To start with, despite assurances on the site that kimili did not break the rss feeds, it did. I think this may be due to a format of the links to the feeds (changed in latest wp?). Anyway, changing the regex on line 181 of kml_flashembed.php seems to have done the trick. This re-enables the RSS detection in kimili, and causes it to remove javascript from the feed. Here’s the fix:

from:

line 181: if (preg_match("/(\/\?feed=|\/feed)/i",$_SERVER['REQUEST_URI'])) {…

to

line 181: if (preg_match("/\/?\?feed=.*(rss.$)/",$_SERVER['REQUEST_URI'])) {…

for all its power, I still think regex is an unreadable relic.

…now, why doesn’t the php upload work?

(more…)

Wednesday, December 13th, 2006

Test

This is a test.