This Space Intentionally Left Blank

1 Brumaire CCXII (October 22, 2003)

(Ramblings) Learn to swim. Learn to swim. Learn to swim.

My sister's flight doesn't get in until an hour or so after the ferry leaves today, this means that I'm still here. Seeing as I told Jo I wouldn't be in for the rest of the week I've decided to use today to finish up important things around the apartment, like filling in my COE form for my student loan, and not so important things like learning more about Movable Type's tag format.

I've managed to find a way to get the last person to post a comment's name to show up. The only problem is that I can't figure out how to prevent it from displaying anything if no comments exist. Ah well, I'm sure I'll figure it out eventually.

Update: D'oh! That was an incredibly easy fix, I can't believe I even made that mistake…

Posted by g026r at 17:04
Comments

That's a pretty cool feature.

Posted by peter at 1 Brumaire CCXII 20:30 (2003/10/22)

It's actually fairly easy with MT's tags.

You select the last comment with <MTComments lastn="1" sort_order="descend">, add whatever text you want, get the 'author link' with <$MTCommentAuthorLink spam_protect="1"$> and then close the comment block with </MTComments>

My problem was that I had put the 'Most recent by' before the opening <MTComments>, meaning that it printed it regardless of any comments existing.

I may actually mess with it a bit more to add anchors into the comments page, so that clicking on the name won't take you to whatever URL was entered with the comment but rather to the comment itself.

Siteicon Posted by g026r at 1 Brumaire CCXII 20:46 (2003/10/22)

Added anchors? Check.
Fixed link to point to comment script? Check.
Remembered to include JavaScript to open new window? D'oh!

Siteicon Posted by g026r at 1 Brumaire CCXII 20:57 (2003/10/22)

Ha ha.  you should have said priceless.  And then, for all your moveable type needs.. theres mastercard.

Thats okay.. Nothing beats my duh moment in algebra today.

Hooper - And this number has daniels favorite primes in it, 6 and 10.  *laughs*

Derek - Wait a minute!!! 10's not prime!!!
*class laughs and sniggers*

Posted by Derek at 2 Brumaire CCXII 00:12 (2003/10/23)

But... it isn't prime.  And neither is 6.

Posted by peter at 2 Brumaire CCXII 11:50 (2003/10/23)

Thats the joke :)

Posted by derek at 2 Brumaire CCXII 13:39 (2003/10/23)
Post a comment







Past Entries

Past Entries