Comment Tags
Comment tags display the comments posted by visitors to your weblog.
Container Tags
- MTComments:
<MTComments>
- A container tag representing a list of the comments posted by visitors to your weblog. For each comment, you can use any of the tag variables below.
<MTComments> <a id="c<$MTCommentID$>"></a> <$MTCommentBody$> <p class="posted"><$MTTrans phrase="Posted by:"$> <$MTCommentAuthorLink spam_protect="1"$> | <$MTCommentDate$></p> </MTComments>
- MTEntryIfCommentsOpen:
<MTEntryIfCommentsOpen>
- A container tag whose contents will only be shown if the comment setting for the post is Open. This is used to display the comment posting form.
<MTEntryIfCommentsOpen>
<h2><$MTTrans phrase="Post a comment"$></h2>
<form onsubmit="handleSubmit(this)" method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form">
<input type="hidden" name="static" value="1" />
<input type="hidden" name="entry_id" value="<$MTEntryID$>" />
<div id="comment-data">
<p>
<label for="author"><$MTTrans phrase="Name:"$></label>
<br />
<input onchange="handleChange(this)" tabindex="1" id="author" name="author" />
</p>
<p>
<label for="email"><$MTTrans phrase="Email Address:"$></label>
<br />
<input onchange="handleChange(this)" tabindex="2" id="email" name="email" />
</p>
<p>
<label for="url"><$MTTrans phrase="URL:"$></label>
<br />
<input onchange="handleChange(this)" tabindex="3" id="url" name="url" />
</p>
</div>
<p>
<label>
<input tabindex="5" onclick="handleCheck(this)" type="checkbox" id="bakecookie" name="bakecookie" value="1" />
<$MTTrans phrase="Remember personal info?"$>
</label>
</p>
<br style="clear: both;" />
<p>
<label for="comment-text"><$MTTrans phrase="Comments:"$></label>
<br />
<textarea tabindex="4" id="comment-text" name="text" rows="10" cols="50"></textarea>
</p>
<div align="center">
<input tabindex="6" type="submit" name="preview" value=" <$MTTrans phrase="Preview"$> " />
<input tabindex="7" style="font-weight: bold;" type="submit" name="post" value=" <$MTTrans phrase="_POST_VERB"$> " />
</div>
</form>
</MTEntryIfCommentsOpen>
Variable Tags
- MTCommentID:
<$MTCommentID$>
- the numeric ID of the comment.
- MTCommentBody:
<$MTCommentBody$>
- the text of the comment.
- MTCommentAuthorLink:
<$MTCommentAuthorLink$>
- the name of the comment author, linked to their URL if they submitted one, otherwise to their email address.
- MTCommentDate:
<$MTCommentDate$>
- the date that the comment was posted.
- MTCommentAuthor:
<$MTCommentAuthor$>
- the name of the comment author.
- MTCommentEmail:
<$MTCommentEmail$>
- the email address of the comment author.
- MTCommentURL:
<$MTCommentURL$>
- the URL submitted by the comment author, if one was.
- MTCommentOrderNumber:
<$MTCommentOrderNumber$>
- the numeric order of a particular comment in the list of comments for an entry, starting at 1. Note that the order is dependent on the sort order (ascending or descending)..
Copyright © 2003-2005 Six Apart