Version 27 (modified by Blackhex, 10 years ago) (diff)


Discussion forum plugin


The DiscussionPlugin adds discussion forums to Trac. An arbitrary number of forums can be added, and each forum has a list of moderators who can block posts, etc. Plugin is administrated directly with apropriate rights for now but WebAdminPlugin support is planned.

Bugs/Feature Requests

Existing bugs and feature requests for DiscussionPlugin are here.

If you have any issues, create a new ticket.




You can check out the source for DiscussionPlugin from Subversion at


After installing plugin's egg you can set in trac.ini configuration file following variables:

title = Discussion

If you run Trac in environment which needs to enable plugins explicitly put in trac.ini these lines:

tracdiscussion.init.discussioninit = enabled
tracdiscussion.timeline.discussiontimeline = enabled = enabled
tracdiscussion.admin.discussionwebadmin = enabled
tracdiscussion.core.discussioncore = enabled

The next step is to upgrade your environment:

# trac-admin <path_to_environment> upgrade


Discussion plugin defines four permissions. With DISCUSSION_VIEW permission you can view all topics and you can post replies to them with DISCUSSION_APPEND permission. DISCUSSION_MODERATE permission gives you rights to delete replies or topics where are you defined as moderator. DISCUSSION_ADMIN permission gives you administrator rights to create, modify or delete forum groups, forums and topics. You can add these permissions by typing following commands from commandline or you can use WebAdminPlugin to do it for you.

# trac-admin <path_to_environment> permission add <user> DISCUSSION_VIEW
# trac-admin <path_to_environment> permission add <user> DISCUSSION_APPEND
# trac-admin <path_to_environment> permission add <user> DISCUSSION_MODERATE
# trac-admin <path_to_environment> permission add <user> DISCUSSION_ADMIN


There are few wiki macros available:

[forum:<forum_id> <text>]

Displays link to forum with id <id> and text <text>. Second argument is optional.

[topic:<topic_id> <text>]

Displays link to topic with id <id> and text <text>. Second argument is optional.

[message:<message_id> <text>]

Displays link to reply with id <id> and text <text>. Second argument is optional.


Displays content of topic with subject <topic_subject>. If no subject given displays content of topic with same subject as name of current wiki page.


Discuss this on the [forum:trac-dev Trac Development forum]. 
Useful threads are [topic:23 this one] and [topic:96 this one].


Because of that DiscussionPlugin code is growing up, I've made testing sheet for controling if some feature had't been broken sine last commits. You can find this sheet in plugin's SVN repository.


Are you using this plugin?
  • Yes, it's usefull.
  • No, it's useless.
  • No, I don't need it.

  • You don't have permission to vote. You may need to login.

Change Log

15151 by rjollos on 2016-01-22 05:53:14
0.10dev: Implement change that was overlooked in [14884]

Refs #10593, #12640.

15097 by rjollos on 2015-12-03 05:31:07
0.10dev: Remove tag_svn_revision from setup.cfg

The attribute is not supported in setuptools >= 10.

14885 by rjollos on 2015-08-14 01:07:12
0.10dev: Better styling for Trac 1.0. Fixes #10593.

Patch by sdegrande.

14884 by rjollos on 2015-08-14 00:25:17
0.10dev: Use equivalent functions passed in chrome dictionary. Refs #10593.
14883 by rjollos on 2015-08-13 23:59:31
0.10dev: Support Trac 1.3.1 and later. Refs #12477.

The db arguments will be removed from the API in trac:#11901.



Author: athomas
Contributors: Blackhex

Attachments (3)

Download all attachments as: .zip