Extension:Forum extension

=Forum extension=

I wrote a small Forum extension for MediaWiki 1.4. It's still very crappy code and my first PHP code at all. It has no native language support yet, and it is written for german users.

It contains 3 Special pages:


 * Special:Forum : a list of active Threads
 * Special:Thread : a view of Postings in a Thread
 * Special:WriteArticle : writing an article

The extension uses 2 tables:


 * forum_thread : to hold the thread data
 * forum_article : to hold the articles itself

It is useable to communicate between the Wiki users in an "old" forum manner without installing a seperate application, seperate navigationbars and seperate user logins.

It is now possible to link a thread directly into a discussion page, with

number

If you want to see, visit: wiki.wagendorf.de It's a german page of course. ;-)

The sourcecode is now available at http://wiki.wagendorf.de/downloads/forum_0.1.tar.gz

The sourcecode of version 0.2 is now available at http://wiki.wagendorf.de/downloads/forum_0.2.tar.gz

Version 0.3 has an action=purge in the showthread part, so the LIMIT/OFFSET bar is working now http://wiki.wagendorf.de/downloads/forum_0.3.tar.gz

Version 0.4

 * A lot of code moved to ForumClass
 * small bugfixes made on table names
 * tag has now less debugging output ;-)
 * Preview while editing new articles
 * See the last posts of a thread while editing
 * Download: http://wiki.wagendorf.de/downloads/forum_0.4.tar.gz

Version 0.5
coming soon...

Questions
Hi, overall, it is a nice extension and fits my needs... I found a small bug because a user is not able to edit his own contributions with the appropriate buttons (edit/delete). Calling the function renderArticleButtons from ForumClass.php, a variable ($user_name) is missing.

Therefore, the request if the current user is the author goes wrong. What I have done:

added value at call function renderArticleButtons ($id, $thread, $user_name); and in function showThread(..., this was added: ''$output.=$this->renderArticleButtons($row->id, $thread, $row->user_name);''.

I'm not a real php-coder, just someone, who tinkers around, so I want to ask for some more functions:
 * Could the issues be searchable (added to the wiki search)?
 * Could you set up an rss-feed of entries and replies or
 * extend the extension for having a modul to show new entries?

Thanks, Peter