SimpleComments 1.1

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

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: --- simplecomments.pm.orig 2003-04-23 20:26:28.000000000 -0700 +++ simplecomments.pm 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!

ScottMcG
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

SimpleComments

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


Your comments:

Text only, no HTML. URLs will automatically be converted to links. Your email address is required, but it will not be displayed on the site.

Name:

Not your company or your SEO link. Comments without a real name will be deleted as spam.

Email: (not displayed)

If you don't feel comfortable giving me your real email address, don't expect me to feel comfortable publishing your comment.

Website (optional):

Follow me on Twitter

Best Of

  • How not to apply for a job Applying for a job isn't that hard, but it does take some minimal effort and common sense.
  • Movie marketing on a budget Mark Cuban's looking for more cost effective ways to market movies.
  • California State Fair The California State Fair lets you buy tickets in advance from their Web site. That's good. But the site is a horror house of usability problems.
  • Customer reference questions. Sample questions to ask customer references when choosing a software vendor.
  • Comment Spam Manifesto Spammers are hereby put on notice. Your comments are not welcome. If the purpose behind your comment is to advertise yourself, your Web site, or a product that you are affiliated with, that comment is spam and will not be tolerated. We will hit you where it hurts by attacking your source of income.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

Assumptions and project planning (Feb 18)
When your assumptions change, it's reasonable that your project plans and needs change as well. But too many managers are afraid to go back and re-work a plan that they've already agreed to.
Feature voting is harmful to your product (Feb 7)
There's a lot of problems with using feature voting to drive your product.
Encouraging 1:1s from other managers in your organization (Jan 4)
If you’re managing other managers, encourage them to hold their own 1:1s. It’s such an important tool for managing and leading that everyone needs to be holding them.
One on One Meetings - a collection of posts about 1:1s (Jan 2)
A collection of all my writing on 1:1s
Are 1:1s confidential? (Jan 2)
Is the discussion that occurs in a 1:1 confidential, even if no agreed in the meeting to keep it so?
Skip-level 1:1s are your hidden superpower (Jan 1)
Holding 1:1s with peers and with people far below you on the reporting chain will open your eyes up to what’s really going on in your business.
Do you need a 1:1 if you’re regularly communicating with your team? (Dec 28)
You’re simply not having deep meaningful conversation about the process of work in hallway conversations or in your chat apps.
What agenda items should a manager bring to a 1:1? (Dec 23)
At least 80% of a 1:1 agenda should be driven by your report, but if you also to use this time to work on things with them, then you’ll have better meetings.

Subscribe to this site's feed.

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

Twitter, etc: akalsey

Resume

PGP Key

©1999-2019 Adam Kalsey.