Need someone to lead product or development at your software company? I lead product and engineering teams and I'm looking for my next opportunity. Check out my resume and get in touch.

SimpleComments 1.1

Freshness Warning
This article is over 17 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):

Recently Written

A framework for onboarding new employees (May 15)
There’s no single good way to onboard an employee that works for every role. Here's a framework for creating a process that you can adapt to each situation.
TV hosts as a guide for software managers (May 10)
Software managers can learn a lot from journalists or late night TV hosts and how they interview people.
The Improvement Flywheel (Apr 29)
An incredible flywheel for the improvement of a development team. Fix a few things, and everything starts getting better.
Managers and technical ability (Dec 26)
In technical fields, the closer you are to the actual work being done, the closer your skills need to resemble those of the people doing the work.
Dysfunctions of output-oriented software teams (Sep 17)
Whatever you call it, the symptom is that you're measuring your progress by how much you build and deliver instead of measuring success by the amount of customer value you create.
Evaluative and generative product development (Aug 30)
Customers never even talk to the companies that don't fit their needs at all. If the only product ideas you're considering are those that meet the needs of your current customers, then you're only going to find new customers that look exactly like your current customers.
Product Manager Career Ladder (Aug 19)
What are the steps along the product management career path?
Building the Customer-Informed Product (Aug 15)
Strong products aren't composed of a list of features dictated by customers. They are guided by strong visions, and the execution of that vision is the primary focus of product development.

Older...

Recently Read

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2020 Adam Kalsey.