Need someone to lead product management at your software company? I create software for people that create software and I'm looking for my next opportunity. Check out my resume and get in touch.


Comments for SimpleComments

Excerpt: A Movable Type plugin that combines comments and TrackBacks into a single, simple list. Read the whole article…

Phil Ringnalda
February 2, 2003 7:40 PM

Could we have the last 15 comments and pings for the whole blog when it's used out of entry context, like MTComments and MTPings do? I've got everything else switched over, but my "recent comments" RSS feeds need lastn="15" blogwide.

Trackback from From the Orient
February 3, 2003 1:29 AM


Excerpt: The release of SimpleComments could not have been better timed for me. Whilst looking at how to order the metadata

Trackback from Submit Response
February 3, 2003 6:19 AM


Excerpt: SimpleComments looks like the answer to all that wittering below about neatly integrating Trackback.

Trackback from tima thinking outloud.
February 3, 2003 12:45 PM

Merged MovableType Comments and TrackBack Pings Display.

Excerpt: Adam Kalsey has announced the availability of his latest MT plugin SimpleComments that merges comments and Trackbacks into a single list. This is excellent and exactly what I'm meant when I wrote TrackBacks are Comments are TrackBacks. Good work Adam.

Trackback from Erik's Weblog
February 3, 2003 2:58 PM

TrackBacks are Comments

Excerpt: Ahhhh, this is great! Another useful MT plugin finds its way into my cgi-bin: SimpleComments by Adam Kalsey allows you

Trackback from In My Experience
February 3, 2003 4:16 PM

TrackBack Pings = Comments? I guess so.

Excerpt: In a short discussion about TrackBack pings being displayed JC said... I wonder if it might be worthwhile (or even possible) to combine comments and TrackBack... if someone does a TrackBack on your post to

Trackback from JayAllen - The Daily Journey
February 3, 2003 5:23 PM

The coolest page in Blogland

Excerpt: Sam Ruby has the one single coolest page in Blogland today thanks to TWO other developers...

Mark Paschal
February 3, 2003 5:27 PM

I've been waiting for this too. Thanks! I got a "Can't get property 'created_on' of undefined variable" (sorry I don't remember the exact error) when specifying "lastn" until I changed line 46 to use [-$max-1..-1] for the slice. The slice [scalar(@allComments)-$max..scalar(@allComments)] is one item too far to the right; there'll never be an $allComments[scalar(@allComments)].

Adam Kalsey
February 4, 2003 8:52 AM

Arrgh. You're right. (As a side note, when I wrote "arrgh," I meant it to be a comic expression of anguish. Sort of like when Charlie Brown misses the football. But instead it sounds like an expression that I'm becoming a pirate.) That's the result of hastily modifying a bit of code from MT. I should have done it differently and used the same lastn routine that I use in the rest of my plugins. I'll do that in the next release. In the meantime, either use Mark's patch or don't use lastn. As another side note, if I were to write a filesharing application, I think I'd name it Arrgh. Piracy, get it?

Trackback from Smĺ delar, löst sammanfogade
February 4, 2003 11:27 AM

Excerpt: SimpleComments - en ny plug-in till Movable Type

Trackback from Legends of the Sun Pig
February 4, 2003 4:13 PM

Playing around with Trackback

Excerpt: Well, I've got trackbacks mostly working. Movable Type normally considers comments and trackbacks to be completely different things, but Adam Kalsey has written a new plugin called "SimpleComments", which allows you to merge them into a single display.

Trackback from Couchblog
February 5, 2003 3:50 AM

New MT Plugin: SimpleComments

Excerpt: Adam Kalsey comes up with another Plugin for Movable Type, that let's you display comments on the page and trackback-comments

Trackback from
February 5, 2003 7:39 AM

MT SimpleComments

Excerpt: For Moveable Type users that believe that Comments and TrackBacks should be displayed intermingled with one another, Simple Comments version 1.0 by the Kalsey Consulting Group adds a few new tags to MT to allow for this.

Trackback from KnitWitology: Where Am I?
February 5, 2003 7:39 AM


Excerpt: SimpleComments - Trackback comment intergration - for if people ever actually link to my posts.

Trackback from The Blog of Harald
February 5, 2003 12:26 PM


Excerpt: I've installed the SimpleComments plugin, and done some other minor format tweaks.

Trackback from
February 5, 2003 12:28 PM

Comments and TrackBacks - new templates

Excerpt: The great plugin, SimpleComments, has now been integrated into the templates of this site, allowing comments and trackbacks to be listed side by side. So there you have it; "TrackBacks

Trackback from stuck-on-mobile-e-com ;-)
February 5, 2003 3:04 PM

movable type update

Excerpt: i just finished finished reading mark pilgrims 30 days to a more accesible web page and started integrating most tips he made (astonished that moveable type includes already quite a lot of his suggested changes) then i went over to andersja's blog and ...

Trackback from the blivit
February 6, 2003 12:13 AM

Warming Up for a Loss

Excerpt: All signs point to whatever I did working. What I'm doing is basically taking all the data I may need

Trackback from dive into mark
February 6, 2003 10:21 PM

In brief: All hail the Benevolent Goat Masters!

Excerpt: AdAware 6. SimpleComments MT plugin. New ads at Mozilla enhancers. Safari enhancers. The longest musical performance in history. A variety of amusing anecdotes and tales from writers more versed than myself in the subtle art of telli...

Trackback from stuck-on-mobile-e-com ;-)
February 7, 2003 5:50 AM

movable type update

Excerpt: i just finished reading mark pilgrims 30 days to a more accessible web page and started integrating most tips he made (astonished that moveable type includes already quite a lot of his suggested changes) then i went over to andersja's blog and started ...

February 7, 2003 9:21 PM

Speaking of artificial distinctions, does the phrase "TrackBack from [site]" seem to be the wrong way around? Try looking at the page as a visitor, and reading "TrackBack to [site]" instead.

February 7, 2003 10:51 PM

Cool. But and is not enough fo me, I need .

February 7, 2003 10:52 PM

Oops, I mean MTSimpleCommentIfComment & MTSimpleCommentIfTrackback is not enough, we need MTSimpleCommentIfAny.

Adam Kalsey
February 7, 2003 11:11 PM

Anything that isn't inside a SimpleCommentsIf... container will be shown for every comment. So basically, anything that you don't put into a container will act as IfAny.

February 8, 2003 12:10 AM

huh... what I am trying to do is: I wish to use [MTSimpleCommentIfAny] to tell MT, when there is any comment, show link A. But, If I use [SimpelComments] to do thing like above, MT will show link A for [MTSimpleCommentCount] times. I want to show link A for only once.

February 8, 2003 11:15 PM

i.e. a MTEntrySimpleCommentsIfEnabled ... I was just thinking I needed one of those too! Thank you for the wonderful plugin, it works beautifully.

Trackback from
February 10, 2003 12:47 PM

Trackbacks and Simple Comments...

Excerpt: I posted a while back about the artificiality of treating Trackbacks as something distinct when we were developing the design

February 16, 2003 7:26 AM

Great plugin! I've got a "Recent Comments" link on my sidebar for both my main index archive and my individual archives. I've been able to use MTSimpleComments to mix both comments and pings in the sidebar, but only in the individual archive - when I try the same code on the index archive I get an error saying that MTSimpleComments only works on an individual entry. Is there a way around that? Thanks

February 16, 2003 5:01 PM

What's needed for that, pretty much, is for MTSimpleComments to implement a lastn="" attribute equivalent to that of MTComments (i.e. one that works outside of an MTEntries container).

Adam Kalsey
February 17, 2003 10:18 AM

Actually, there is a lastn attribute available that will show the last several comments and/or trackbacks for an entry. There's a couple of changes I'm thinking of for the plugin to make it a more complete replacement for the MT comments tags. A recent_simplecomments attribute for MTEntries to replace recently_commented_on is one, and the ability to show the lastn recent comments for a blog or category is another.

Joshua Kaufman
March 12, 2003 2:09 PM

Adam, how does SimpleComments work with entries where comments are closed? Can the entry still accept TrackBacks?

Adam Kalsey
March 12, 2003 2:38 PM

Trackbacks still work the same as they did before, only the display of them are changed. So if you have "Allow Pings" checked, then an entry can still accept TrackBack pings.

March 13, 2003 9:53 AM

What I would like is a tag similar to MTCommentOrderNumber. I used this tag, with a bit of PHP, to shade alternative comments, like this: <div class="<?php echo <$MTCommentOrderNumber$> % 2 ? 'comment2' : 'comment1' ?>"> This is great plugin! Thank you for making it available.

Phillip Winn
April 19, 2003 8:59 AM

The only thing keeping me from using this on a very prominent MT site is that I use 'MTCommentOrderNumber' to number each entry, and so I would need something like 'MTSimpleCommentOrderNumber' to avoid disrupting things. Either that, or my trackbacks will be unnumbered, while the comments will be numbered, which is a little weird, but might work.

Jacques Distler
April 24, 2003 9:43 AM

<MTSimpleCommentEntry> does not work for trackback pings (returns the wrong Entry). I seem to get the right entry inside an <MTSimpleCommentIfComment> context (as I did with Mark's variant on your plugin), just not in a <MTSimpleCommentIfTrackback> context.

Adam Rice
April 24, 2003 12:24 PM

Finally got around to installing this. A couple problems/observations: 1. Line-break formatting in comments is not working. Even when I insert "convert_breaks="1" into the MTCommentBody tag, it doesn't seem to take. 2. In the interest of consistency with the comment and trackback tags, there maybe should be a "MTEntryIfAllowSimpleComment" (phew!) tag to wrap around the link to the (simple) comment popup, etc. In the event that both trackback and commenting are disabled for that post, the enclosed text would be hidden.

Adam Kalsey
April 24, 2003 3:50 PM

The MTCommentBody isn't part of SimpleComments, it's part of Movable Type. SimpleComments only acts as a filter for the built-in comment engine. I'm not sure why you're having the problem, but it's not because of SimpleComments. The comments on this site are managed by SimpleComments, and the line breaks are working fine. I've thought about creating an IfSimpleComments tag, but I wasn't sure if anyone would find it useful. I guess so.

Trackback from
April 25, 2003 7:28 PM

trackback and comment mods

Excerpt: i made a few simple movable type customization’s that i wanted to share with people. after consulting the folks in the mt support forum they informed me that it was ok to release the changes. i do however have to warn people that these changes ar...

Adam Rice
April 27, 2003 11:15 AM

Adam-- I'm pretty sure the problem I was having related to the use of a customized Sanitize string. I took that out and things are back to normal. Anyhow, it's something you might want to look into.

May 25, 2003 11:27 AM

I guess my perl skills are sub-par... This morning I attempted to add MTEntryIfComments[1] functionality to SimpleComments, but I seem to have failed. [1] sub IfSimpleComments { my $ctx = shift; my $comment = $ctx->stash('comment') or return $ctx->error('MTIfSimpleComments must be used inside a SimpleComments container'); return '' if (SimpleCommentCount == 0); my $builder = $ctx->stash('builder'); my $tokens = $ctx->stash('tokens'); defined(my $out = $builder->build($ctx,$tokens)) or return ''; return $out; }

May 25, 2003 11:42 AM

I suppose it would be helpful to show you what the error is! Can't call method "stash" on an undefined value at /var/www/ line 73 And line 73 is in SimpleCommentCount, which I didn't modify: sub SimpleCommentCount { my $e = $_[0]->stash('entry') or return $_[0]->error('Perhaps you used MTSimpleCommentCount outside an entry?'); $e->ping_count + $e->comment_count; } (oh, and I did add this to MT::Template::Context->add_container_tag(SimpleComments => sub { require MTPlugins::simplecomments; &MTPlugins::simplecomments::IfSimpleComments; });

May 25, 2003 11:44 AM

I think I'll just be a comment spammer. Seems like a nice profession. I just realized that MTIfSimpleComments should *not* be in MTSimpleComments since I don't want it shown for every comment.

May 27, 2003 8:50 PM

I'm starting to use category trackbacks as a means of posting quick bookmarks but those pings are also returned via SimpleComments and I don't want them to. Since OO Perl is about as foreign to me as Chinese I haven't been able to hack the code to exclude entries given a particular tbping_tb_id. Anyone have any thoughts on how to do that? Thanks

May 27, 2003 9:21 PM

I sort of managed to solve my problem using a major kludge - adding a hidden value for the ping excerpt in my bookmarklet and then building a condition within my template that causes it to skip any pings with that excerpt, in other words the ones I don't want to show. Not perfect but will get me by until someone can take a crack at doing it in the code...

Trackback from Blog
June 16, 2003 12:04 AM

SimpleComments & Compare

Excerpt: SimpleComments is great for combining comments and trackbacks into a single listing but it lacks conditional logic on the counter. Kevin Shay's Compare plugin can be used to get round this....

Mark Carey
June 23, 2003 6:05 AM

I am very interested in a "recent_simplecomments" attribute for . Is this planned for a future version?

Trackback from Web Dawn - Rebirth of the Social Marketplace
June 23, 2003 3:41 PM

The tangled web of blog conversation

Excerpt: Last week I blogged about the new Forum View that I have added to this blog. It seems like there is some interest in this approach. Thanks in large part to links from Marc Canter and Many-to-Many, the entry has...

July 10, 2003 7:08 PM

This is a great plugin and it was so easy to install and get working. However, I'm having a teensy weensy problem with a particular "script" I'm trying to use. I've got the following code in my MT template: <MTSimpleComments lastn="10" sort_order="descend"> <MTSimpleCommentIfTrackback> <MTPings> • <a href="<$MTPingURL$>"><$MTPingTitle$></a> from <$MTPingBlogName$><br /> </MTPings> </MTSimpleCommentIfTrackback> <MTSimpleCommentIfComment> <MTCommentEntry> • <$MTCommentAuthor$> on <a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br /> </MTCommentEntry> </MTSimpleCommentIfComment> </MTSimpleComments> I don't understand why the resulting page shows MORE than 10 last entries. Can anyone help or explain?

August 2, 2003 3:56 PM

Help? I can't seem to figure out WHERE (between what tags in the individual entry template) to install the above sample code. I keep getting errors like: "Rebuild failed: Building entry 'Saturday Slant: Misperception of You' failed: Build error in template 'Individual Entry': Error in tag: Error in tag: You used an 'MTPingID' tag outside of the context of a ping; perhaps you mistakenly placed it outside of an 'MTPings' container?" Please help?

Trackback from ChulGoo
August 5, 2003 12:50 AM


Excerpt: How I can list 10 entries which are recently commented (including the trackback) ?...

Adam Kalsey
August 5, 2003 8:12 AM

SimpleComments doesn't currently do that.

Trackback from Reflective Reality.
August 27, 2003 12:50 AM

Integrating Trackbacks into the whole blog, but not just in post comments... Everywhere!

Excerpt: MT did a poor job of integrating trackbacks. I've made some changes that push them up the focus a little. They will now appear in the main and archive templates and in the comments sections. I hope everyone finds this useful in one way or another :) Ad...

Adam Kalsey
September 11, 2003 11:32 AM

Pariah: That sample code can be added anywhere to your individual archive template. The easiest thing to do is replace your <MTComments> ... etc ... </MTComments> section with the sample code above.

September 12, 2003 2:44 AM

what about trackbacks an closed comments?

Judi Sohn
September 14, 2003 8:19 PM

Problem: Trackbacks only show on rebuild. I just installed SimpleComments tonight so I could display trackback data on my individual entry page without the pop-up. It works beautifully after a rebuild (see but if I don't notice from my main page that an entry has a trackback the individual page stays at "No Trackbacks Yet" until I login and rebuild the individual archives. My comments are updating correctly on the individual page without my intervention (I'm not using SimpleComments there). Any clue what's wrong?

Adam Kalsey
September 15, 2003 10:19 AM

You don't need to use SimpleComments to show TrackBack pings on your individual archive pages. You can do that with the built-in template tags. SimpleComments is for merging your comment and TrackBack display. If you don't want to do that, you don't need the plugin. The reason you don't see TrackBacks appear until you rebuild is that MT doesn't rebuild the individual archive pages when someone sends a TrackBack. See for the reasons for this and a solution.

Posicionamiento en buscadores
September 30, 2003 5:38 PM

How I can list 10 entries which are recently commented (including the trackback) ?

John Hoke
July 26, 2004 4:44 AM

Is simplecomments supported in MT 3.01D? Thanks in advance! -=john=-

Josh Brown
August 5, 2004 7:13 AM

Very nice, but it doesn't like the MTPingEntry plugin at all. I have this "> On , replied to with "..." (#comment-" title="Read the rest of 's comment and replies.">Link.) "> On , trackbacked our article And the trackbacks aren't appearing. Obviously, i'm using these tags outside of the IEA.

Adam Kalsey
August 5, 2004 9:03 AM

That makes sense since SimpleComments treats pings as comments. So if you use a plugin that tries to load things from the list of pings and you place that plugin's tags inside a SimpleComments container, there are no pings for the MTPingEntry plugin to handle.

Josh Brown
August 5, 2004 9:05 AM

Any possible workaround?

Josh Brown
August 5, 2004 9:08 AM

The creation of a MTSimpleCommentEntry tag is the best ultimate solution I suppose.

Adam Kalsey
August 5, 2004 9:09 AM

Sure. Since the MTPingEntry only works with pings anyway, use the standard MT ping containers instead of SimpleComments when you want to use that plugin. Other than that, you'd have to make some adjustments to the PingEntry plugin to get it to work with the comments stash instead of the pings stash.

Henrik Gemal
November 22, 2004 6:53 AM

I think you forgot to add MTSimpleCommentNumber to the dynamic published code

Mike Steinbaugh
November 29, 2004 8:44 AM

Yes I get errors when trying to use MTSimpleCommentNumber as well.

December 18, 2004 11:46 AM

I can't seem to get this to work. I'm using EXACTLY the same code as in the example above, with MT3.12 and PHPSimpleComments and static rebuild of individual archive pages. But I keep getting this error when trying to post a comment: An error occurred: Rebuild failed: Build error in template 'Individual Entry Archive': Error in tag: You used an 'MTCommentID' tag outside of the context of a comment; perhaps you mistakenly placed it outside of an 'MTComments' container? If I take out the MTCommentID tag, I get the same error with $MTCommentAuthorLink$ or $MTCommentBody$ Is this a problem with the code or am I doing something wrong?

December 21, 2004 1:51 PM

BUG REPORT: The latest version (1.32) gives the following error when scheduled posts are being built: Undefined subroutine MTPlugins::simplecomments::SimpleCommentCount at lib/MT/ line 139 Archive templates are created and publish correctly, except for the index files. (At least one other person has reported the same issue on their blog) Any suggestions for a fix would be appreciated.

Joshua Kaufman
December 23, 2004 1:52 AM

I'm having the same problems getting my dynamic templates to work with MTSimpleCommentNumber.

December 28, 2004 5:18 PM

There are TWO different versions of included in the Simplecomments Version 1.32 Zip file. Does anyone know which one should be used? One is in the main folder and is 6KB, the other in the PlugIns folder and is 7 K.

Joe D'Andrea
February 28, 2005 7:24 PM

Wishlist request (or if this is pilot error, let me know that too): Would like to be usable outside of individual entries (and give the total tally), just like can be used in a similar fashion. (Nice job with the plugin BTW!)

Daniel A. Munz
March 5, 2005 10:16 PM

Moderation question: It seems like if I have your plugin designed to list the last 10 comments, and my last 9 comments have been blocked pending moderation, the plugin only shows one comment. Is there a way to have the plugin only display the last X *non-moderated* comments? Thanks!

March 6, 2005 6:31 AM

Just wondering if the: Undefined subroutine MTPlugins::simplecomments::SimpleCommentCount at lib/MT/ line 139 bug was fixed. I'm currently setting up a photoblog with posts set as future as far as one month from now and my indexes aren't being rebuilt, which really makes me using scheduled posting useless. Thanks!

Red Wolf
April 22, 2005 9:43 PM

I've also just started getting the bug... Undefined subroutine MTPlugins::simplecomments::SimpleCommentCount at lib/MT/ line 139 ...since the upgrade to 3.16. But there's a post on the MT Support Forum reporting it happening in 3.14...

Kory Doszpoly
May 6, 2005 12:42 AM

I am pretty new to this stuff, but this blog has answered questions that had me run up the wall! Thanks a bunch.

August 27, 2005 10:40 PM

Just tried this with MT3.2 as it was one of my fav plugins up until now.. unfortunately, when listing all X recent comments/trackbacks, it includes all the junk comments and trackbacks as well, which is utterly useless. I hope you'll have time to look at a new release in the near future, I'm sure a lot of people would appreciate it. Cheers.

September 7, 2005 8:04 PM

Awesome! I just implemented it on my site, so I can mix all the comments and trackbacks together into one listing. One request that, with MT 3.2 now out, is semi-important: is there a way to make SimpleComments adhere to the new junk scoring system used in MT 3.2? Right now, it only includes approved comments, but TrackBacks are a problem -- any TrackBacks that are deemed junk by MT 3.2 (and thus not displayed) are still included in the SimpleComments container. I think it'd be as simple as checking the tbping_visible column in the mt_tbping table.

September 8, 2005 10:35 AM

Hi Adam! Just a couple notes: 1) SimpleComments 1.32 with MT 3.2 seems to be publishing trackbacks in the new "junk" folder. 2) Brad's PHP version of MTSimpleCommentCount is producing empty text -- I read a reference elsewhere on the web that said it seems to work only inside MTSimpleComments blocks and that seems to jibe with what's happening on my blog. I had to move to the unofficial 1.31 version of that tag to get the right behavior.

Joe D'Andrea
September 8, 2005 9:52 PM

Greetings! I've tried my hand at a SimpleComments mod (Perl version) that gets it living in harmony with MT 3.2's SpamLookup suite:

Gary LaPointe
November 29, 2005 9:35 AM

So I've got MTSimpleComments working and I'm doing a "Recent Commenters + Pingers" list in my blog sidebar. BUT what what I've got it to say for a ping is "J.A.S.O.N. pinged from What Sort of Intellectual Are You?" The title of the post is his post and it links back to his post. What I want is for it to be the name of my post that he pinged and the link to that same post (I'll liknk their name back to their post). That's the way my comment links are like: "kazza on Christmas Tree Assembly" Any tips? I thought I had it working but then I realized the name of the post they pinged from was identical to my post name... I'm using MT3.2 and my site supports php and mySQL and SimpleComments 1.32. THANKS! I'll keep trying but I'm considering it might not be possible.

March 16, 2006 8:56 AM

looks cool

Matt Moore
July 12, 2006 7:11 PM

The link to doesn't seem to be working.

Henrik Gemal
July 13, 2006 10:21 AM

You forgot to change the version number to 1.33. It still says 1.32 in

September 6, 2006 3:34 PM

well, it seems like someone fixed it, thank you.

Michael Croft
October 3, 2006 9:01 PM

MTSimpleCommentCount off by one in 1.34? It looks like it on my first entry. Not sure what's going on, will look at that and see if I can help trace it down.

This discussion has been closed.

Recently Written

Mastery doesn’t come from perfect planning (Dec 21)
In a ceramics class, one group focused on a single perfect dish, while another made many with no quality focus. The result? A lesson in the value of practice over perfection.
The Dark Side of Input Metrics (Nov 27)
Using input metrics in the wrong way can cause unexpected behaviors, stifled creativity, and micromanagement.
Reframe How You Think About Users of your Internal Platform (Nov 13)
Changing from "Customers" to "Partners" will give you a better perspective on internal product development.
Measuring Feature success (Oct 17)
You're building features to solve problems. If you don't know what success looks like, how did you decide on that feature at all?
How I use OKRs (Oct 13)
A description of how I use OKRs to guide a team, written so I can send to future teams.
Build the whole product (Oct 6)
Your code is only part of the product
Input metrics lead to outcomes (Sep 1)
An easy to understand example of using input metrics to track progress toward an outcome.
Lagging Outcomes (Aug 22)
Long-term things often end up off a team's goals because they can't see how to define measurable outcomes for them. Here's how to solve that.


What I'm Reading


Adam Kalsey

+1 916 600 2497


Public Key

© 1999-2024 Adam Kalsey.