コメント関係の機能について

エントリー内にコメントを投稿したり、投稿したコメントを編集・削除するための機能です。
また、これらの機能はプラグインの設定で有効/無効を切り替えられます。

タグ

MTNekorumPostCommentPath

コメント投稿用スクリプトアドレスに変換されます。
MTEntries・MTComments 内でのみ使用可能です。
コメント投稿の権限で書き込みできます。
テンプレートモジュール「Nekorum Comment」を使用してページを構成します。
[quote]を指定することで、引用付返信になります。また、引用時は「blockquote」で囲われます。

<$MTNekorumPostCommentPath quote="1"$>

MTNekorumEditCommentPath

コメント編集用スクリプトアドレスに変換されます。
MTComments 内でのみ使用可能です。
投稿者のみ編集できます。
テンプレートモジュール「Nekorum Comment」を使用してページを構成します。

<$MTNekorumEditCommentPath$>

MTNekorumRemoveCommentPath

コメント削除用スクリプトアドレスに変換されます。
MTComments 内でのみ使用可能です。
投稿者とブログ管理者のみ削除できます。

<$MTNekorumEditTopicPath$>

Nekorum Comment のサンプル
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="nekorum-template"> <head> <$mt:include module="HTMLヘッダー"$> <MTIf name="mode" eq="_post_topic"> <title>返信 - <$MTBlogName encode_html="1"$></title> <MTElse> <title>コメントの編集 - <$MTBlogName encode_html="1"$></title> </MTElse></MTIf> </head> <body id="<$mt:BlogTemplateSetID$>" class="mt-entry-archive <$MTVar name="page_layout"$>"> <div id="container"> <div id="container-inner"> <$mt:include module="バナーヘッダー"$> <div id="content"> <div id="content-inner"> <div id="alpha"> <div id="alpha-inner"> <div id="entry-new-post" class="entry-asset asset hentry"> <div class="asset-header"> <MTIf name="mode" eq="_post_topic"> <h1 id="page-title" class="asset-name entry-title">返信</h1> <MTElse> <h1 id="page-title" class="asset-name entry-title">コメントの編集</h1> </MTElse></MTIf> </div> <div class="comments-open" id="comments-open"> <div class="comments-open-content"> <mt:ignore> <!-- Display greeting for users if blog allows users to register locally --> </mt:ignore> <div id="comment-greeting"></div> <$MTTinyMCE$> <form name="entry_form" id="entry_form" method="post" action="<$MTNekorumScriptPath$>"> <input type="hidden" id="blog_id" name="blog_id" value="<$mt:var name="blog_id"$>" /> <input type="hidden" id="author_id" name="author_id" value="<$mt:var name="author_id"$>" /> <input type="hidden" id="category_id" name="category_id" value="<$mt:var name="category_id"$>" /> <input type="hidden" id="entry_id" name="entry_id" value="<$mt:var name="entry_id"$>" /> <input type="hidden" id="comment_id" name="comment_id" value="<$mt:var name="comment_id"$>" /> <input type="hidden" id="parent_id" name="parent_id" value="<$mt:var name="parent_id"$>" /> <input type="hidden" id="mode" name="__mode" value="<$mt:var name="mode"$>" /> <div id="comments-open-text"> <label for="topic_text">コメント</label> <textarea id="topic_text" name="topic_text" style="width: 90%; height=50%;"><$mt:var name="topic_text"$></textarea> </div> <div id="comments-open-footer"> <input type="submit" accesskey="s" name="post" id="comment-submit" value="投稿" /> </div> </form> </div> </div> </div> </div> </div> <$MTInclude module="サイドバー"$> </div> </div> <$mt:include module="バナーフッター"$> </div> </div> </body> </html>
?

 Copyright © 2008 nekotama allrights reserved.