This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

Content Management

SimpleComments

TrackBacks are comments. They are comments left on someone else’s site rather than your own, but they are comments nonetheless. Movable Type makes a distinction between entry comments and TrackBacks that seems artificial, and it made more sense to me to have TrackBack ping data appear within the comments portion of a Movable Type site.

SimpleComments is a new plugin that will let you do just this. Comments and Trackbacks are merged into a single list. Comment counts include the number of TrackBack pings, and best of all, you don’t need to learn new MT tags in order to do this.

Download

Simplecomments 1.34 (updated Jul 24, 2006)

Installation

Unzip the SimpleComments zip file to a directory on your computer.

Copy the plugins and php directories to the MT directory on your server.

Usage

Simplecomments gives you a couple of new tags that complement the existing set of Movable Type comment and ping tags.

  • <MTSimpleComments>
    The main container tag. This tag will create a list of comments and pings sorted by date. You can use the MT comment sort order settings to display the comments in ascending or decending order, or you can configure the order in your templates using the same sort_order attribute as the built-in MTComments tag. You can also use lastn=&#8221;N&#8221; to limit the total number of comments and pings displayed. Under MT3+ only approved comments are displayed. If you want to show unapproved comments as well, add an attribute of moderate=&#8221;0&#8221;. You use standard MTComment… and MTPing… tags inside this container to output your comment and ping data.

    If you use this tag inside an entry, only the comments for that entry will be displayed. If you use it outside an entry, all comments will be displayed in ascending or descending order, depending upon your sort_order attribute. The default sort order is defined in your blog config.
  • <MTSimpleCommentCount>
    A unified count of your comments and pings. If you have 3 comments and 2 pings, <span class="caps">MTS</span>impleCommentCount will display 5.
  • <MTSimpleCommentNumber>
    The numeric order of the current comment or TrackBack. For the first SimpleComment, it reads 1. For the second, 2, and so on.
  • <MTSimpleCommentOdd>
    Returns 1 if the current SimpleComment is odd and 0 if it is even. Useful for setting alternating background colors with stylesheets. Use something like class=&#8221;commentbg<MTSimpleCommentOdd>&#8220; and create classes for commentbg0 and commentbg1.
  • <MTSimpleCommentIfTrackback>
    The <span class="caps">MTS</span>impleComments tag is going to give you a list that has both comments and TrackBack pings. Since comments and pings use a different set of MT tags, you can use this conditional container to output data for trackbacks. The contents of this tag will only be displayed if the current item in the comment list is a TrackBack.
  • <MTSimpleCommentIfComment>
    Just like <span class="caps">MTS</span>impleCommentIfTrackback, the contents of this tag will only be displayed if the current item in the comment list is a Comment. See the example below to help you understand how this works.
  • <MTSimpleCommentEntry>
    This container tag works just like the MTCommentEntry tag and contains the entry on which the comment or TrackBack was made. Using this tag, you can use MTEntry tags to get entry data for that SimpleComment.
<MTSimpleComments lastn="5">
<MTSimpleCommentEntry>
This comment was made on the entry <MTEntryTitle>.
</MTSimpleCommentEntry>
</MTSimpleComments>

Example

<p><MTSimpleCommentCount> Comments</p>
<MTSimpleComments>
<MTSimpleCommentIfTrackback>
<a name="trackback-<MTPingID>"></a>
<p><b><a href="<MTPingURL>"><MTPingBlogName></a></b> 
<$MTPingDate format="%b %e, %Y %l:%M %p"$><br />
<MTPingExcerpt><br />
Read more in <a href="<$MTPingURL$>"><$MTPingTitle$> &raquo;</a></p>
</MTSimpleCommentIfTrackback>

<MTSimpleCommentIfComment>
<a name="comment-<MTCommentID>"></a>
<p><b><$MTCommentAuthorLink$></b> 
<$MTCommentDate format="%b %e, %Y %l:%M %p"$><br />
<$MTCommentBody$></p>
</MTSimpleCommentIfComment>
</MTSimpleComments>

License

Like my other freeware, this plugin is released under the open-source MIT License. In plain English, that means you can do whatever you want with the software, including modifying it, selling it, or eating it, but I’m not responsible for anything that goes wrong.

The PHP port was created by Brad Choate and is also released under the MIT license.

Revision History

1.34 - Jul 24, 2006

  • (fix) Errors when using MTSimpleCommentEntry tags in templates (Thanks to Jaques Distler for the bug report)

1.33 - Jul 12, 2006

  • (fix) Errors when rebuilding templates under MT 3.3
  • (fix) Integrated patches from Cameron Bulock and Joe D’Andrea to handle MT’s TrackBack anti-spam tools

1.32 - Oct 24, 2004

  • (fix) when used outside an entry with the lastn attribute and there are recent unapproved comments, the list of comments wasn’t what you’d expect.
  • (new) PHP version for dynamic templates courtesy Brad Choate
  • (changed) Easier installaion. Uses SelfLoader so the entire perl plugin is contained in a single file. The Module previously in MTPlugins is no longer needed and can be deleted if desired. Idea from Brad Choate, who’s Perl Fu is much stronger than mine.
  • (new) The plugin is listed as an installed plugin in the MT user interface on MT3 or later

1.31 - Oct 18, 2004

  • (fix) Uninitialized value warnings when the moderate parameter wasn’t used.

1.3 - Oct 12, 2004

  • (new) The moderate attribute controls the display of unmoderated comments under MT3+. The default is to show approved comments only.

1.2 - July 27, 2004

  • (new) support for MT 3.x comment statuses. Only approved comments show up.

1.11 - Apr 24, 2003

  • (Fix) SimpleCommentEntry didn’t work for trackbacks outside an entry context. Thanks to Jacques Distler for the initial bug report and Alexei Kosut for the patch.

1.1 - Apr 23, 2003

  • SimpleComments can now be used outside an entry, thanks to Mark Paschal.
  • Added SimpleCommentNumber tag.
  • Added SimpleCommentOdd tag
  • Added SimpleCommentEntry container
  • Moved bulk of code into an external module to improve MT performance

1.0 - Feb, 2003

  • Initial release.

Recently Written

Your OKR Cascade is Breaking Your Strategy
Aug 1: Most companies cascade OKRs down their org chart thinking it creates alignment. Instead, it fragments strategy and marginalizes supporting teams. Here's what works better than the waterfall approach.
Your Prioritization Problem Is a Strategy Problem
Jul 23: Most teams struggle with prioritization because they're trying to optimize for everything at once. The real problem isn't having too many options—it's not having a clear strategy to choose between them. Without strategy, every decision feels equally important. With strategy, most decisions become obvious.
Behind schedule
Jul 21: Your team is 6 weeks late and still missing features. The solution isn't working harder—it's accepting that your deadlines were fake all along. Ship what you have. Cut ruthlessly. Stop letting "one more day" turn into one more month.
VC’s Future Lies In Building Winners
Jun 21: AI and megafunds are about to kill the traditional venture model, forcing smaller VCs to stop hunting for hidden gems and start rolling up their sleeves to fix broken companies instead.
Should individual people have OKRs?
May 14: A good OKR describes and measures an outcome, but it can be challenging to create an outcome-focused OKR for an individual.
10 OKR traps and how to avoid them
May 8: I’ve helped lots of teams implement OKRs or fix a broken OKR process. Here are the 10 most common problems I see, and what to do instead.
AI is Smart, But Wisdom Requires Judgement
May 3: AI can process data at lightning speed, but wisdom comes from human judgment—picking the best imperfect option when facts alone don’t point the way.
Decoding Product Leadership Titles
Mar 18: Not all product leadership titles mean what they sound like. ‘Head of Product’ can mean anything from a senior PM to a true VP. Here’s how to tell the difference.

Older...

What I'm Reading