Extension:AjaxComments

MediaWiki extensions manual
AjaxComments
Release status: stable
Implementation User interface
Description Replace Talk page functionality with comments at the bottom of the page.
Author(s)
Latest version 3.0.0 (2023-06-29)
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.39.x
PHP 8.0.x
Database changes Yes
Tables ajaxcomments
License GNU General Public License 2.0 or later
Download

  • $wgAjaxCommentsLikeDislike
  • $wgAjaxCommentsAvatars
  • $wgAjaxCommentsPollServer
  • $wgAjaxCommentsEmailNotify
  • $wgAjaxCommentsAdmins

The AjaxComments extension replaces the Talk page functionality with comments at the bottom of a page.

Usage

edit

This extension replaces the standard MediaWiki talk page functionality by allowing to add comments at the bottom of a page or replies to existing comments. Authors can edit or delete any of their comments without responses, and sysops can edit or delete any comments. Deleting a comment with replies will also remove all the answers to it.

Installation

edit
  • Download and place the file(s) in a directory called AjaxComments in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'AjaxComments' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Configure as required.
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

edit

This extension provides the following configuration parameters, which should be added below invoking the extension in your "LocalSettings.php" file:

Parameter Default value Meaning
$wgAjaxCommentsLikeDislike false Defines whether or not to add a like/dislike link to each comment
$wgAjaxCommentsAvatars true Defines whether or not to add avatars for users using the Gravatar service
$wgAjaxCommentsPollServer 0 Defines to poll the server to see if any changes to comments have been made and update if so
$wgAjaxCommentsEmailNotify true Defines whether or not to send notifications about replies and activity on watched pages to users by email
$wgAjaxCommentsAdmins sysop Defines the user groups that have admin privileges for comments