Extension:Comments

Comments extension adds the &lt;comments&gt; parser hook tag to allow commenting on articles where the tag is present.

Comment actions are logged to Special:Log/comments, but by default they're hidden, just like patrol log entries. You can set  to show comments log entries in Special:RecentChanges (available in version 2.8+).

Majority of the code fixes were done by Misza and Jack Phoenix.

Installation

 * 1) Download the files into $IP/extensions/Comments
 * 2) Create the three required database tables by running, the MediaWiki core updater script
 * 3) Add  into the wiki's LocalSettings.php
 * 4) Installation can now be verified through the wiki's Special:Version

Usage

 * &lt;comments /&gt; — basic comment form, sufficient for most things
 * — only allows the users Derfel, Jack Phoenix and Misza to submit comments
 * — prevents users from rating comments negatively (thumb down), allowing only positive (thumb up) votes

Comments of the Day
The extension also comes with a "Comments of the Day" feature (&lt;commentsoftheday /&gt;), which by default is not enabled. You can enable this feature in the wiki's LocalSettings.php, by adding the following after the require_once line:

If the nocache argument is passed to the parser hook (like this: &lt;commentsoftheday nocache=true /&gt;), the parser hook will not use memcached and will just fetch the data from the database instead of cache. This is useful if you want to show the most up-to-date data, but it can be very server-intensive.

User rights
This extension adds three new user rights, comment (which allows posting comments), commentlinks (which allows posting external links in comments) and commentadmin (which allows deleting user-posted comments).

By default, everyone, even anonymous users, can post comments, but posting comments that contain external links is limited to autoconfirmed users.

Only users in the commentadmin</tt> group can delete comments.

User points

 * $wgUserStatsPointValues['comment_plus']</tt> &mdash; amount of points to give out when another user gives "thumbs up" to your comment.
 * $wgUserStatsPointValues['comment_ignored']</tt> &mdash; amount of points to give out when another user adds your comments to their ignore list (Special:CommentIgnoreList).

Parameters

 * $wgCommentsDefaultAvatar</tt> &mdash; path to an image which will be displayed instead of an avatar if social tools (SocialProfile extension) aren't installed. Should be 50x50px.
 * $wgCommentsInRecentChanges</tt> &mdash; by default, this variable is set to . Set it to   to display comments log entries in Special:RecentChanges, too, in addition to the comments log at Special:Log/comments.

Magic words/Parser functions
Comments includes 2 magic words and a parser function:


 * gives the entire number of comments on the wiki.
 * gives number of comments on the current page.
 * gives number of comments on the given page.

Hooks
Comments extension adds three hooks,,   and.

Internationalization
The Comments extension currently has (partial or full) support for 68 different languages, including English. Please visit translatewiki.net if you want to translate Comments into your language.

TODO list

 * 1) HTML output is not valid XHTML - would be nice if it were but we can live without that
 * 2) Would be nice if there was a special page that gives a overview of all uses of the Comments extension on all pages (for an adminstrator to be able to moderate easier)