<$mt:CommentAuthorLink$>

A linked version of the comment author name, using the comment author's URL if provided in the comment posting form. Otherwise, the comment author name is unlinked. This behavior can be altered with optional attributes.

Attributes:

  • show_email (optional; default "0")

    Specifies if the comment author's email can be displayed.

  • show_url (optional; default "1")

    Specifies if the comment author's URL can be displayed.

  • new_window (optional; default "0")

    Specifies to open the link in a new window by adding target="_blank" to the anchor tag. See example below.

  • default_name (optional; default "Anonymous")

    Used in the event that the commenter did not provide a value for their name.

  • no_redirect (optional; default "0")

    Prevents use of the mt-comments.cgi script to handle the comment author link.

  • nofollowfy (optional)

    If assigned, applies a rel="nofollow" link relation to the link.

This page was last updated on 2008-07-15, 16:10.  

2 Notes

This doesn't appear to be correct.

By default, in the Comment Detail template, the above example is: <$MTCommentAuthorLink defaultname="Anonymous" showemail="0"$> <MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty>

Which results in, in my case: "Fullman [Link Icon]" ...that is linked

Fullman (the display name for the CommentAuthor) is not linked, while a separate icon is shown next to the CommentAuthor, which is linked.

Any modification of that original code (for example, removing the MTIfNonEmpty block) results in just a CommenterName without a link (and no linked icon).

[Based on MT 4.0 Final with default templates.]

Missing: the no_redirect attribute.

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.