Your Ad Here

SimpleComments 1.1

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->entryid) +    my $entryid = $comment->entryid  +        || MT::Trackback->load($comment->tbid)->entryid; +    my $entry = MT::Entry->load($entryid)

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:

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):

Lijit Search

Best Of

  • The importance of being good Starbucks is pulling CD burning stations from their stores. That says something interesting about their brand.
  • Movie marketing on a budget Mark Cuban's looking for more cost effective ways to market movies.
  • Rounded corners in CSS There lots of ways to create rounded corners with CSS, but they always require lots of complex HTML and CSS. This is simpler.
  • Embrace the medium The Web is different than print, television, or any other medium. To be successful, designers must embrace those differences.
  • Simplified Form Errors One of the most frustrating experiences on the Web is filling out forms. When mistakes are made, the user is often left guessing what they need to correct. We've taken an approach that shows the user in no uncertain terms what needs to be fixed.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

George Carlin (Jun 22)
"I'm always relieved when someone is delivering a eulogy and I realize I'm listening to it."
Business lessons from the Kitchen (Jun 9)
The Gordon Ramsay School of Business
Under The Radar twittering (Jun 3)
My live stream from Under the Radar
Measuring a CEO's mind (May 29)
Not everything that's important can be measured. Not everything that can be measured is important.
Golden 1: breaking customer expectations (May 25)
Take a potential new user and give them a poor signup experience, then call them a liar.
Sprout Test (May 7)
A test post for Sprout widgets.
Product Leadership (May 3)
An anthology of product leadership writing.

Subscribe to this site's feed.

Elsewhere

Feed Crier
Get alerted by IM when your favorite web sites and feeds are updated.
SacStarts
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks
Del.icio.us
My tagstream at del.icio.us.
Waddlespot
My son's Club Penguin community. News, blogs, tips, and tricks.

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey

Resume

PGP Key

©1999-2008 Adam Kalsey.
Content management by Movable Type.