Extension:Postcomment

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Postcomment

Release status: unknown

Implementation Page action
Description Allows users to post comments directly to discussion pages.
Author(s) Travis Derouin (TderouinTalk)
Last version 0.1 (2007-03-08)
MediaWiki 1.6+
License No license specified
Download

Check usage (experimental)

The Postcomment extension allows users to post comments directly to discussion pages directly from a form at the bottom of each discussion page. This extension is by no means meant to be an extensive solution to discussion page problems (I'll leave that to LiquidThreads), it's just a simple extension that works for smaller wikis. So far we've had over 150,000 talk page messages posted with it and our community seems to like its simplicity.

Contents

[edit] License

Copyright 2006 Travis Derouin, wikiHow

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

[edit] Author

Travis Derouin ( travis @ wikihow.com), wikiHow

[edit] Pre-requisites

This extension was tested with MediaWiki 1.9.1 and 1.6.7.


[edit] Configuration & Installation

  • Get the source via SVN
  • Add
require_once ('extensions/Postcomment/Postcomment.php');

to LocalSettings.php

  • Find a place in your skin where you'd like the comment form to appear and place a call to wfPostcommentForm(). For example, in MonoBook.php you could change
            <!-- end content -->
            <div class="visualClear"></div>

to:

            <!-- end content -->
            <div class="visualClear"></div>
            <?php wfPostcommentForm(); ?>
  • Add the following CSS to your main.css stylesheet - feel free to modify:
#discussion_entry {
        border: 1px solid #CED1FF; 
        padding: 5px;  
        margin-bottom:5px
}
 
td.discussion_entry_date {
        font-size: smaller;
}
 
td.discussion_entry_user {
        font-weight: bold;
}
 
td.discussion_entry_comment {
}

[edit] Modifications

  • The comment form can appear on article pages. Simply remove these lines in Postcomments.php and it will work. However, all users' comments will also be inserted into where the form appears directly.
// just for talk pages
if (!$wgTitle->isTalkPage() || $action != '')
return;

[edit] Bugs and enhancements

Bugs or feature requests can be sent to the author at travis @ wikihow.com.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox