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.

SimpleComments 1.1

Freshness Warning
This blog post is over 20 years old. It's possible that the information you read below isn't current and the links no longer work.

There’s a new SimpleComments for those that use that plugin.

Here’s what’s new:
SimpleComments can now be used outside an entry
Thanks to Mark Paschal, if you use SimpleComments outside an entry, you’ll get all comments in ascending or descending order, depending upon your blog config.

New tag: MTSimpleCommentNumber
The ordinal number of the current comment or TrackBack. Shows 1 for the first comment, 2 for the second, and so on. Thanks to Phillip Winn for the idea.

New tag: 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="commentbg<MTSimpleCommentOdd>" and create classes for commentbg0 and commentbg1. Thanks to Scott McGerik for the idea.

New container: MTSimpleCommentEntry
This container tag works just like the MTCommentEntry tag. It contains the entry that the current SimpleComment is from. Thanks to Luke Hutteman for the idea.

Go download it...

Alexei Kosut
April 24, 2003 10:26 AM

This is really nifty. I've been using SimpleComments on my weblog for a while, and it just keeps on getting better! However, I wasn't able to get MTSimpleCommentEntry to work with trackbacks outside of an entry context without this patch: --- 2003-04-23 20:26:28.000000000 -0700 +++ 2003-04-24 10:23:05.330032000 -0700 @@ -116 +116,3 @@ -    my $entry = MT::Entry->load($comment->entry_id) +    my $entry_id = $comment->entry_id  +        || MT::Trackback->load($comment->tb_id)->entry_id; +    my $entry = MT::Entry->load($entry_id)

Adam Kalsey
April 24, 2003 10:55 AM

That's why I didn't see the problem during testing. My SimpleCommentEntry block was always inside an entry context. I've added your patch to the code and released it as 1.11. Thanks!

April 24, 2003 2:17 PM

Thanks for the update! I had already hacked my copy to give me a MTSimpleCommentNumber tag, which I use to determine odd or even, but the best feature of your update is the ability to use it outside of an entry. :)

Brian Hess
October 18, 2003 8:20 PM

SimpleComment is showing a count of one comment, although there are no comments or trackbacks for the particular entry. My template looks like this: <MTEntryIfAllowComments> | <a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false"><MTSimpleCommentCount> Comments</a> </MTEntryIfAllowComments> Any idea what I'm doing wrong to give the false count?

Brian Hess
October 18, 2003 11:56 PM

Hai, carumba! I rebuilt my individual archives, and there was a trackback after all, so the count was/is right. Weirdness.

Bobby Magee
December 10, 2003 5:05 AM

Ok I am stupid. I like this feature and have uploaded the files(.pl and the directory) but now where do I place the coding. Maybe I am just too new to this. I have a standard MT site where people click on the comments to view them. Do I just paste it in anywhere.

Adam Kalsey
December 10, 2003 2:16 PM

You paste it anywhere you want the comments to show up. For what you're doing it should be in an entry context. This means that you'll have to have it on an individual archive page or in comment display template, or inside an MTEntries block. If you are using the stock MT templates with the comment popup, you'd put the template code in place of the MTEntryComments block of your comment display template.

Trackback from Urban Scrawl
July 26, 2004 8:02 AM

Changes to Urban Scrawl

Excerpt: If you visit here regularly you'll notice a few changes, particularly with the comment system. I decided against the major site redesign I mentioned recently and just made a few minor aesthetic changes as far as that goes. The more...

Trackback from Dany Shultis
March 27, 2005 11:22 AM


Excerpt: The ordinal number of the current comment or TrackBack. Shows 1 for the first comment, 2 for the second, and so on....

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.