My first MT hackery

| 2 Comments | No TrackBacks

So it turns out that the current version (v1.02) of SimplyThreaded silently fails if you preview your comment before posting it. This made me sad, so I wrote a patch for it, which I just mailed to the plugin's author (and posted on the author's support forum). I also installed it on here, so that should work now, and please let me know if it doesn't.

(The patch also addresses a potential runaway-quote bug in the JavaScript that it generates, if someone's name has an apostrophe in it. I will henceforth call this the O'Reilly Bug.)

That I could do this as rapidly as I did, never having been exposed to MT plugin source before, is fairly awesome, and gives me another reason to love Movable Type.

Remaining LiveJournal-to-MT4 migratory projects:


  • Importing all my old LJ entries - "easy" but not trivial. Will involve some Perl-n-XML hackery. And I also have to decide whether I want all those old entries here. (Probably.)

  • Making comment subscription work.

No TrackBacks

TrackBack URL: http://jmac.org/melody/tb.cgi/384

2 Comments

Does your fix handle leading apostrophes? I worked on some SQL back in the day that handled embedded apostrophes nicely but fell to bits when someone's name was 'tHooft (a suprisingly common Dutch moniker.)

Nice tip... that's a new one to me.

It should work, though. All it does it URI-encode the name before placing it into any HTML attributes, and decode it again prior to display. So the position and number of quote marks shouldn't matter.

Leave a comment

About this Entry

This page contains a single entry by Jason McIntosh published on December 14, 2007 10:10 PM.

Breaking comments was the previous entry in this blog.

More SimplyThreaded hacking is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories