Blog - Don't click, your comment is last
Don't click, your comment is last
10 minutes ago I was enlightened when looking at my Flickr forum activity page, which showed a useful "You have the last word." for topics where no one has posted after me. It saved me at least one click and a useless page load!
So I went and implemented the same cool feature in my MovableType index templates that save to PHP. It's as easy as:
<MTComments lastn="1" sort_order="descend"><? if ( $_COOKIE['mtcmtauth'] == '<$MTCommentAuthor encode_php="q"$>' && $_COOKIE['mtcmtmail'] == '<$MTCommentEmail encode_php="q"$>') echo ' – Yours is last'; ?></MTComments>
Replace the yellow parts to your author and email cookie names. mtcmtauth
and mtcmtmail
are MT's defaults.
Sample output: Comments (2) – Yours is last
Simple and useful!
Guaranteed to save time, and mouse and finger usage.
(Whether it is good or bad for your finger health is left to your discretion.)
Post a comment with "Remember my info" enabled to see it in effect.
Important: Be careful not to use this in non-PHP templates because it would reveal your comment posters' email addresses.
Posted on February 21, 2005 at 16:42 | Tweet
|
Trackback
Comments RSS
Maybe you could even expand this feature by showing the name of the last commenter and an except? But that would be a completely different kind of implementation, never mind
Posted by Roy on February 21, 2005 at 18:23
Not a bad idea, but I prefer to keep it clean so that the "Yours is last" sticks out when there. :)
Posted by Patrick on February 21, 2005 at 18:32
Neato!
Posted by Boris Anthony on February 22, 2005 at 06:31