This is a database based message board plugin for the TWiki system. Users can post and read messages from a database as if it was a message board fixed on the wall.
Use the TWiki Tag %MESSAGE_BOARD% with options:
| Option Name | Value Range | Description |
|---|---|---|
displayOnly | '0' or '1' | When set to 1 causes Message Board to just display messages, not allowing users to post new messages. When set to 0 will display posted messages and allow users to post new messages. Defaults to 0. |
messageOrder | 'ASC', 'DESC' | Chooses the order of messages, ASC meaning newer messages showing first, DESC meaning older messages showing first. Defaults to ASC. |
data/debug.txt)
Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
MessageBoardPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/MessageBoardPlugin.txt | Plugin topic |
data/TWiki/MessageBoardPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/MessageBoardPlugin.pm | Plugin Perl module |
pub/TWiki/MessageBoardPlugin/trashcan.png | Trash Can Icon |
pub/TWiki/MessageBoardPlugin/editicon.png | Pencil and Paper Icon |
CREATE DATABASE message_board;
CREATE TABLE message(
id INT PRIMARY KEY AUTO_INCREMENT,
author VARCHAR(50) NOT NULL,
due DATETIME NOT NULL,
posted DATETIME NOT NULL,
msg TEXT NOT NULL,
dropped ENUM( 'Y', 'N' ) NOT NULL DEFAULT 'N'
)
GRANT SELECT, INSERT, UPDATE, DELETE
ON messsage_board.message
TO board IDENTIFIED BY 'b0aRd'
%MESSAGE_BOARD{ messageOrder="DESC" }% into the topic. Preview, save and try to post a message.
| Plugin Author: | TWiki:LuisCamposDeCarvalho |
| Plugin Version: | 15/06/2004 (V1.000) |
| Change History: | |
| 15 Jun 2004: | Initial version |
| CPAN Dependencies: | DBI CGI |
| Other Dependencies: | none |
| Perl Version: | 5.6.1 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/MessageBoardPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/MessageBoardPluginDev |
Related Topics: TWikiPreferences, TWikiPlugins, DefaultPlugin?
-- TWiki:LuisCamposDeCarvalho - 15 Jun 2004
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| | trashcan.png | manage | 0.8 K | 16 Jun 2004 - 13:54 | Main.lcampos | |
| | editicon.png | manage | 2.0 K | 16 Jun 2004 - 13:55 | Main.lcampos |