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:

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

Lijit Search

Best Of

  • Embrace the medium The Web is different than print, television, or any other medium. To be successful, designers must embrace those differences.
  • Customer reference questions. Sample questions to ask customer references when choosing a software vendor.
  • 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.
  • Debunking predictions Read/Write Web's authors have some goofy predictions.
  • The best of 2006 I wrote a lot of drivel in 2006. Here's the things that are less crappy than the rest.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

Ideas, Risk, and Investors (Jan 1)
Over at SacStarts, I have piece up discussing a common question I get from entrepreneurs....
VoiceXML for web developers (Dec 17)
Building voice applications isn't hard at all. Any web developer can do it.
De-skunking a dog (Oct 27)
How to clean up your pet after a skunk attack.
Pressure sales via Twitter (Oct 16)
Sticking an ad in my face when we first meet is a good way to lose my interest.
Loma Prieta, 20 years later (Oct 13)
Looking at the earthquake from October 17, 1989
Red light cameras don't work (Oct 13)
Cameras installed to catch people running red lights aren't about traffic safety at all.
Jack-o-lantern pumpkin carving patterns (Oct 12)
It's a tradition, what can I say?
SEO realities (Oct 12)
The real search engine optimization. Works every time.

Subscribe to this site's feed.

Elsewhere

IMified
Build instant messaging applications. (My company)
SacStarts
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey

Resume

PGP Key

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