Skip to content

Redwall MUCK Site

Sections
Personal tools
You are here: Home » Members » Riverdale's Home » Code Examples » MPI Message Board
« January 2009 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 

MPI Message Board

An MPI Message Board

I wrote this message board as part of a twenty-four hour challenge to myself. I wanted to create a fully-functional inn, complete with room keys, a bellweasel, a clerk, and a few other odds and ends. Incidentally, that project was successful, but I also during that time ended up writing this code when I was too sleepy to do any real description work. I'm happy enough with the result to share the code here, though another MPI coder could no doubt make something much more elaborate out of this. With that said, however, know that this is really a no-frills message board, with only the bare basics. A future version may incorporate such features as search

This was actually the first major piece of code I've done in a long time, so... I make no guarantees, express or implied, as to the success of this code. As always, YMMV.

Installation

I scripted installation so that you can just cut and paste from this file, unless you want multiple message boards, in which case you must change the reg-names appropriately (in NMC). Ask your local builder for help.

The first few lines of the script will install the wrap macro, so you can ignore them if you've already installed {wrap} somewhere up the region.

Instructions

This message board comes with four commands: post, read, view, and delete. Each is explained briefly below. ([]s denote optional items, items in angle brackets should be replaced with the appropriate values)

post <subject>=[<modifiers>]=<text>
Post a new message on the board with the subject <subject> and the provided <text> as the body. Valid <modifiers> are A, which will cause the post to be anonymous; and N, which disallows comments for that message.
post <message>/[<subject>]=[<modifiers>]=<text>
Post a comment on an existing message with body <text>. The only valid modifier is A, to post an anonymous comment.
read <message>
Displays the selected message.
view [<page #>]
Display a list of posted messages (10 per page).
delete <message>
Deletes the given message, provided you are either a moderator or the original writer of the message.

Further Support

I don't guarantee any further help or support with the use of this message board, but you are free to page me with questions, comments, feature suggestions (although I don't really plan to maintain this code beyond how I use it).

Created by Riverdale
Last modified 2004-08-26 10:21 PM
 

Powered by Plone

This site conforms to the following standards: