Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

Page Forum


Page Forum

A very early attempt at making a mini-forum in Confluence...

You can see this script in action on the XEN Wiki.

Requirements

This script makes use of Community Bubbles plugin to add in profile pictures and microformats (hCard). Without that plugin you'll get errors in the Author and Last Reply columns.

The plugin also uses the Builder Theme plugin's menuicon macro to display the icon. Without this plugin you'll see an error where the icon should appear.

Script: forum

Name: forum
Author(s): Guy Fraser
Scriptix Version: 1.1.1 or above
Scripting Engine: Mozilla Rhino
Components: subRenderer
Vectors: Wiki Macro

View source...

Known issues

  • New posts indicator relies on Confluence's .isRecentlyUpdatedFor() method which uses a basic check against your last login and any new edits or comments on the page - as such, you have to log-out and then log-in again to get it to update
  • New comments don't make topics go to the top of the list - this should be fairly simple to fix by creating an array of topics then sorting the array

To-Do

It would be nice to do the following:

  • Use a servlet to spit out XML so that the display could be AJAXified
  • Have a servlet spit out RSS feed
  • Get the "new posts" indicator working properly - this would likely involve storing data on the pages to say when each user last visited them, or find some way to hook in to Confluence's Activity Tracking plugin (ie. the Lucene search index it uses)
Toggle Sidebar
Added by Guy Fraser on Jun 15, 2007 17:38, last edited by Guy Fraser on Jan 30, 2008 13:49

Adaptavist Theme Builder Powered by Atlassian Confluence