If you are new to my blog, please let me first welcome you. If you've been here before and enjoy reading "Dr. Mike's Steak Dinner," please consider subscribing to our atom or rss feed as well as linking to us in your blogroll. Thanks. :)

Fixing the Comment Links

| | Comments (0) | TrackBacks (0)
Some thing that has bothered me for quite some time is how Movable Type does it's comment links. Instead of just a normal link to a website, it does this weird internal redirect. I'm sure the software does this to help prevent spam but with all of the protection built in, there's really no need for something like that.

It's easy to fix.  Here's the code for the Comment Detail template.  You'll find it under Design -> Templates -> Quickfilters -> Template Modules.

<div class="comment"<MTIfArchiveTypeEnabled archive_type="Individual"> id="comment-<$MTCommentID$>"</MTIfArchiveTypeEnabled>>
    <div class="inner">
        <div class="comment-header">
            <$MTCommentAuthorLink default_name="Anonymous" show_email="0"$> <MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty> said:
        </div>
        <div class="comment-content">
            <$MTCommentBody$>
        </div>
        <div class="comment-footer">
            <a href="#comment-<$MTCommentID$>" title="Permalink to this comment"><$MTCommentDate format="%x %X"$></a>
        </div>
    </div>
</div>

See the line up there with $MTCommentAuthorLink? That's where the "Commenter bla-bla says:" get generated along with the link. All you have to do to get rid of the weird redirect link is add in no_redirect="1" to the line.

So the new line will look like this:

<$MTCommentAuthorLink default_name="Anonymous" show_email="0" no_redirect="1"$> <MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty> said:

Why am I posting this? Because it's missing from the docs. Rather annoying actually. Almost like reading Wordpress' codex once again. There used to be a plugin for this but it's no longer needed.


Hopefully this will help someone else out. (And maybe get the docs edited to show this feature.)

Now I'm off to regenerate about 200 comments. :)

edit: Also considering that I don't use nofollow on this blog, I think it's important for folks to get credit for their comments.

reedit: You have to do the same to the Recent Comments widget.

0 TrackBacks

Listed below are links to blogs that reference this entry: Fixing the Comment Links.

TrackBack URL for this entry: http://drmikessteakdinner.com/cgi-bin/mt/mt-tb.cgi/1063

Leave a comment

Please feel free to leave a comment. Please note that we do have a comment policy and we do ask that you respect it.

June 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

About this Entry

This page contains a single entry by Dr. Mike published on April 30, 2008 9:39 PM.

Play a Daily Sudoku Puzzle was the previous entry in this blog.

Blogger.com gets some revenge on Mediamax is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments