|Version 30 (modified by 10 years ago) (diff),|
Discussion forum plugin
Notice: This plugin is unmaintained and available for adoption.
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.
If you have any issues, create a new ticket.
You can download zipped sources [download:discussionplugin here].
After installing plugin's egg you can set in trac.ini configuration file following variables:
[discussion] title = Discussion
If you run Trac in environment which needs to enable plugins explicitly put in trac.ini these lines:
[components] tracdiscussion.init.discussioninit = enabled tracdiscussion.timeline.discussiontimeline = enabled tracdiscussion.wiki.discussionwiki = enabled tracdiscussion.admin.discussionwebadmin = enabled tracdiscussion.core.discussioncore = enabled
The next step is to upgrade your environment:
# trac-admin <path_to_environment> upgrade
For now sqlite version 3 or PostgreSQL is required as SQL backend for running this plugin.
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:
Displays link to forum with id <id> and text <text>. Second argument is optional.
Displays link to topic with id <id> and text <text>. Second argument is optional.
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.
- 16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code
- 16368 by rjollos on 2017-03-23 00:49:19
_get_tablesnot working with MySQL
- 16014 by rjollos on 2016-11-27 19:26:19
0.10.0: Bump version from 0.10dev
- 16013 by rjollos on 2016-11-27 19:24:56
1.2dev: Fix incorrect string formatting and comparisons, missing imports
Merge of r16012 from 1.0 branch.
- 16012 by rjollos on 2016-11-27 19:22:54
0.10dev: Fix incorrect string formatting and comparisons, missing imports