Forum Plugin (Under construction)#

First off, all credit for this forum goes to Ikonboard. Most of the styling, html, css stylesheets and whatnot were borrowed from their forums. I sincerely wish I could have just installed their free forum software, but it's too self-contained for my purposes, I really wanted a forum that was contained within the wiki.

Secondly, please be patient. I will be posting code and instructions here, but I recommend against trying it out on anything but a test environment. Please, feel free to take the code and run with it. It is only the idea I really wish to communicate, my implementation is not that good. One major problem is that I am using JSP pages for the forum pages, so it's not entirely a plugin. (yet)

Zipped Example(info) Ok, to simplify things I've done all of the following steps on an fresh install of jspwiki-2.1.86, tested it, and zipped up the whole directory. If you have any questions please feel free to email me. (millejos at

Also, looks like I forgot a file in the template folder, addTopic.jsp, so you will need to add that attached file into templates/default/

Full Instructions: (This is currently very convoluted)

1. In your template folder, add the following lines to ~ViewTemplate.jsp: <wiki:CheckRequestContext context="forum"> <wiki:Include page="Forum.jsp" /> </wiki:CheckRequestContext>

2. Copy the following files in the zipfile into your template folder: Forum.jsp, Forum_Edit.jsp, Forum_Save.jsp, ikonboard.css

3. Copy Forum.jar into your WEB-INF/lib/ folder.

4. Copy the other Forum.jsp into your base folder.

5. In the WEB-INF/lib/ folder replace JSPWiki.jar with the one in the zipfile. You have to do this because I changed the WikiContext class to include the Forum.

6. Also, copy mysql-connector-java-3.0.9-stable-bin.jar into your WEB-INF/lib/ folder. (MySQL connector)

7. There are a bunch of images in the images folder that should be copied over...

8. Lastly, install MySQL and create the following tables in a database called forum:

# Host: localhost
# Database: forum
# Table: 'post'
  `index` int(11) NOT NULL auto_increment,
  `topic_index` int(11) NOT NULL default '0',
  `text` text NOT NULL,
  `user` varchar(100) NOT NULL default '',
  `timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`index`)

# Host: localhost
# Database: forum
# Table: 'topic'
CREATE TABLE `topic` (
  `index` int(11) NOT NULL auto_increment,
  `forum_title` varchar(255) NOT NULL default '0',
  `title` varchar(255) NOT NULL default '',
  `starter` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`index`)



Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java 8.3 kB 1 16-Mar-2004 21:19
Test 2,104.7 kB 1 16-Mar-2004 22:43
addTopic.jsp 17.6 kB 2 11-Sep-2007 15:10
forum1.png 101.8 kB 1 16-Mar-2004 21:11
forum2.png 45.5 kB 1 16-Mar-2004 21:15
v.txt 0.0 kB 2 10-Nov-2007 23:58 changed file for testing
« This page (revision-24) was last changed on 11-Nov-2007 00:04 by