Extension:DiscussionThreading

What can this extension do?
When a new post is created, automatically tags with user information and posting date. Much like a threaded discussion listserv, it allows response to individual posts and organizes. Still allows user standard user editing. Tags do not appear on article or other pages, limited to discussion.

Once installed it can be enabled or disabled using the global variable: $wgSectionThreadingOn = True; /* Enabled */

Usage
Using Wikis for project management and collaboration. Many of the older users were much more comfortable with the listserv approach. This is a transitional path for them.

Installation
Installation has been greatly simplified. Link below describes, but can now be done by downloading files, manually patching linker.php, copying linker.php (REL1_10 and REL1_9_3 only), or applying downloaded patches.

See Extension:DiscussionThread_Article

Changes to LocalSettings.php
require_once("$IP/extensions/DiscussionThreading/DiscussionThreading.php");

Code
Has been fairly comprehensively tested. Has the following hooks:

$wgHooks['EditPage::showEditForm:initial'][] = 'efDiscussionThread'; $wgHooks['EditPage::attemptSave'][] = 'efStampReply'; $wgHooks['EditPage::showEditForm:initial'][] = 'efDiscussionThreadEdit'; $wgHooks['editSectionLinkForOther'][] = 'efDiscussionLink4other'; $wgHooks['editSectionLink'][] = 'efDiscussionLink'; $wgHooks['AlternateEdit'][] = 'efDiscussionThreadEdit';
 * 1) custom created hooks in linker.php

Patches required to Linker.php

Release Notes

 * 1.0
 * greatly reduces patching - completely dependent on hooks, although needs 2 hooks in linker.php to execute
 * Added [new] link in section header that starts a new thread at the bottom
 * Defaults to add new comment when discussion page first entered
 * If previous patches applied, EditPage.php can be reverted to appropriate release version - patches no longer required
 * Between Version 0.0 and 0.1, changed to use the name 'DiscussionThreading' instead of the 'AddCommentSection'. The comment was vestigial and not fully descriptive.