January 2010 Archives

Sunday, January 31, 2010, at 11:35 PM

Once again, I have had to hack Movable Type’s Perl source code to fix an error they made. The <mt:Comments> tag that loops through the comments takes an argument “lastn” which is supposed to tell it how many of the most recent comments to retrieve. But instead of retrieving the n most recent comments, MT was retrieving the n oldest comments! Exactly the opposite of what it was supposed to do!

This bug has been known to the MT community for quite awhile. Apparently, it cropped up in version 4.3, and here we are in version 5 and it’s still there! I didn’t see anyone with any good hacks to fix it, so I figured this one out myself. I do dislike hacking the source code (I have said this before), but when you gotta, you gotta.

Comments on this entry:

There are 4 comments on this entry.
#1
1 Feb 2010
5:37 PM

Looks good on my Android phone. I’ll check it out when I get home from my walk to the (closed) butcher shop.

#2
1 Feb 2010
5:40 PM

But why are you walking to the closed butcher shop? Is it a breaking-and-entering kind of thing?

#3
1 Feb 2010
6:30 PM

It had no reason to be closed.

I walked there to buy some meat. Annoying.

#4
6 Apr 2010
3:20 AM

Instead of hacking the code, you could just provide a sort order. I had the same bug, but modified my template so that instead of this:

| last by ,

I had this:

| last by ,

Worked like a charm!

Thursday, January 28, 2010, at 9:53 PM

I am working hard at designing the MT5 theme for seangleeson.com. Mostly this entails editing templates for all the page elements, and writing CSS code.

Yes, I do realize that I have broken a lot of stuff. Most of the links you see on this page don’t really work yet. But I am getting all of that working real soon!

Comments on this entry:

There are 2 comments on this entry.
#1
30 Jan 2010
12:41 PM

I love you! Thank you for working so hard on this stuff, darlin!

#2
31 Jan 2010
2:17 PM

Back atcha, darlin!

Wednesday, January 27, 2010, at 12:02 AM

I just finished migrating swell3d.com to the Movable Type 5 installation. Now I will start working on this blog’s theme.

Oh, and the nice people at Technorati wanted me to put the string 8EKGUHTYM4AA into a post, so this one’s for you.


Topic: ,
Permalink No comments yet Add your comment
Sunday, January 24, 2010, at 8:21 PM

Hi. I haven’t blogged in a few years. Good to see you all again.

I’ve just installed the brand-spanking-new Movable Type 5, to run seangleeson.com and feebeeglee.com. I shall be spending quite a bit of time creating style sheets and templates for our new family of blogs in the upcoming weeks, and blogging about any issues or insights which occur. Then, I will work on migrating the slumbering swell3d.com to this MT5 installation, and possibly even merging in our old WordPress blogs (at blog.gleeson.us, sean.gleeson.us, phoebe.gleeson.us, and homeschool.gleeson.us). I also want to start a Web development blog at mr.gleeson.us. So this is the first step of a long journey.

But here is something about MT5, which has caused problems right from the beginning: why the devil don’t they want me to have blogs on multiple domains? As recently as MT4, you could put a blog at one domain (like feebeeglee.com), and another at another domain (like seangleeson.com) and and have them aggregated at a third domain (like gleeson.us), the way I am doing. But the new MT5 has dispensed with this very helpful ability.


Topic: ,
Permalink No comments yet Add your comment
(Thanks for reading all the way to the bottom.)

Sean Gleeson is an artist, developer, writer, teacher, statesman, and family man in Oklahoma City, Oklahoma.

See full profile.

Sean Gleeson Sean Gleeson