Not a developer? Go to MovableType.com

Plugin and Theme Directory

Comment Author Context v1.0

By Brad Choate
Posted April 21, 2009, in MT Tags, Templates, Widgets.

Details

Overview

In the context of a comment, all <$mt:AuthorSOMETHING$> function tags refer to the author of the entry or page where the comments were left. This default behavior in Movable Type (as of MT4.25) creates a situation where it is never possible to output author data for a commenter.

Description

The CommentAuthorContext plugin creates a block tag called <mt:CommentAuthorContext> in which <$mt:AuthorSOMETHING$> function tags will refer to the author of the comment.

Usage

  1. Create a "user" CustomField. We'll use <$mt:AuthorDataTwitter$> for this example.
  2. Place the <mt:CommentAuthorContext> block tag inside the <mt:Comments> tag block (typically in the entry or page detail template).
  3. Place your "user" CustomFields inside the <mt:CommentAuthorContext> tag block.

Final code might look something like this:

<mt:Comments>
    <mt:CommentAuthorContext>
        <a href="http://twitter.com/<$mt:AuthorDataTwitter$>/"><$mt:AuthorDataTwitter$></a>
    <mt:Else>
        I'm an anonymous commenter
    </mt:CommentAuthorContext>
</mt:Comments>

This could also be achieved without the plugin through this more processing intensive code:

<mt:Comments>
    <$mt:CommentAuthor setvar="display_name"$>
    <mt:Authors display_name="$display_name" need_entry="0" need_association="0">
        <a href="http://twitter.com/<$mt:AuthorDataTwitter$>/"><$mt:AuthorDataTwitter$></a>
    </mt:Authors>
</mt:Comments>

Compatibility

Movable Type versions: 4.35.05.15.26.0 Verified


Back

29 Comments

sizegenetics on June 14, 2012, 5:04 a.m. Reply

Very handy, i’m not really all that technical but managed to get this done so thanks!

mick on June 25, 2012, 8:17 a.m. Reply

Thanks for the marvelous posting!I have never read such a wonderful article and I am coming back tomorrow to continue reading. Christian Louboutin Online I feel fervently about this and I like learning about this subject.Enjoy yourself.

classified ads on July 16, 2012, 7:04 a.m. Reply

I’ve try It work well… Thank you!

Bros

Bros on July 10, 2016, 6:22 a.m. Reply

It is one of the trick that helps many users on their comments, really love and use on a daily basis to keep track…
צוואות הסכם ממון צוואה הסכמי ממון

Mark Carey

Mark Carey on February 11, 2015, 10:32 p.m. Reply

Download link broken, any one know of an alternate link?

newstart028

newstart028 on July 6, 2016, 6:49 a.m. Reply

Commenter can include a title for their comment.

newstart028

newstart028 on July 6, 2016, 6:49 a.m. Reply

Easily and quickly close comments on an entry from the Manage Entries screen.192.168.1.1

monica123

monica123 on August 18, 2016, 10:24 a.m. Reply

Intriguing post. I Have Been pondering about this issue, so much obliged for posting. Thanks scalp psoriasis

Manoj singh rathore

Manoj singh rathore on September 10, 2016, 4:04 a.m. Reply

Hello sir , I am looking to integrate this with my website but i am not able to find out how can i do this. please help me in this. best digital marketing institute in delhi | online marketing courses

rahulkhanna

rahulkhanna on September 28, 2016, 10:00 a.m. Reply

navratri wishes

navratri images

dandiya songs

dona rosa

dona rosa on September 30, 2016, 8:35 p.m. Reply

psoriasis I’m not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your website to come back down the road.

seorankbuilder

seorankbuilder on October 10, 2016, 5:07 p.m. Reply

You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! Calgary Movers

seorankbuilder

seorankbuilder on October 25, 2016, 12:05 p.m. Reply

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks… brickell restaurants

seorankbuilder

seorankbuilder on October 28, 2016, 8:37 a.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. cmedeiros

seorankbuilder

seorankbuilder on October 29, 2016, 8:31 a.m. Reply

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! marcelo carvalho cordeiro

seorankbuilder

seorankbuilder on October 29, 2016, 3:46 p.m. Reply

Great post, you have pointed out some excellent points, I as well believe this is a very superb website. ventilation

seorankbuilder

seorankbuilder on October 31, 2016, 7:17 a.m. Reply

This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. familia muda tudo

seorankbuilder

seorankbuilder on November 1, 2016, 8:02 a.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information… car covers

seorankbuilder

seorankbuilder on November 6, 2016, 11:22 a.m. Reply

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that “The content of your post is awesome” Great work. gia xe mercedes e400

seorankbuilder

seorankbuilder on November 9, 2016, 8:38 a.m. Reply

Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. Removals

seorankbuilder

seorankbuilder on November 21, 2016, 2:04 p.m. Reply

Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!! print design

seorankbuilder

seorankbuilder on November 29, 2016, 7:53 a.m. Reply

This is my first time i visit here and I found so many interesting stuff in your blog especially it’s discussion, thank you. escritorio de advocacia rj

seorankbuilder

seorankbuilder on November 29, 2016, 7:19 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information… vba

seorankbuilder

seorankbuilder on December 4, 2016, 11:05 a.m. Reply

This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! pheromones for men

seorankbuilder

seorankbuilder on December 6, 2016, 3:40 p.m. Reply

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! reputacao online

seorankbuilder

seorankbuilder on December 7, 2016, 6:26 p.m. Reply

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. effects of androstenone pheromone

seorankbuilder

seorankbuilder on December 9, 2016, 8:23 a.m. Reply

Thank you for such a well written article. It’s full of insightful information and entertaining descriptions. Your point of view is the best among many. sidra payment plan

Leave a Comment