Version 51 (modified by 15 years ago) (diff) | ,
---|
Discussion Forum Plugin
Notice: This plugin is unmaintained and available for adoption.
Description
The DiscussionPlugin adds discussion forums to Trac. An arbitrary number of forums can be added, organised to forum groups. Users can create topics in forums and reply to them which together creates discussion threads. Threaded or flat view to topics and its replies is supported. Each forum has a list of moderators who can delete topics, replies, etc. Plugin is administrated directly or via WebAdminPlugin with apropriate rights. Appending new forums and topics either as new replies shows up in timeline. Searching capability in topics and replies is supported too.
Live Example
To get an idea how the forums look, see BlackTrac discussion.
Bugs/Feature Requests
Existing bugs and feature requests for DiscussionPlugin are here.
If you have any issues, create a new ticket but read BugReporting page first, please.
Download
You can download zipped sources [download:discussionplugin here].
Source
You can check out DiscussionPlugin from here using Subversion, or browse the source with Trac.
Dependencies
DiscussionPlugin depends on WebAdminPlugin since many configuration options are available only on appropriate WebAdminPlugin's pages.
Plugin Versions
As many other plugins in this site even this plugin names its branches according to Trac versions. Here is a simple table explaining this convention for DiscussionPlugin:
Plugin Branch | Trac Branch | Plugin Version |
0.9 | 0.9-stable | 0.5 |
0.10 | 0.10-stable | 0.5 |
0.11 | trunk | 0.6 |
Main difference between 0.5 and 0.6 version is that 0.6 uses Genshi templates and 0.5 ClearSilver ones.
Installation
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] # For 0.11 branch. API object is component since then. tracdiscussion.api.DiscussionApi = enabled tracdiscussion.admin.DiscussionWebAdmin = enabled tracdiscussion.core.DiscussionCore = enabled tracdiscussion.init.DiscussionInit = enabled tracdiscussion.search.DiscussionSearch = enabled tracdiscussion.timeline.DiscussionTimeline = enabled tracdiscussion.wiki.DiscussionWiki = enabled tracdiscussion.notification.DiscussionNotifyEmail = 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.
Permissions
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
Macros
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.
[[ViewTopic(<topic_subject>)]]
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. Currently there is a limitation of post length using this macro because of using GET method of HTML form.
Example
Discuss this on the [forum:5 Trac Development forum]. Useful threads are [topic:23 this one] and [topic:96 this one].
Planned Features
- Better permission system (maybe using 0.11 permissions policies).
- Better email notification. (make notification a component and more configurable)
Notes
- Branch 0.9 of plugin is considered as deprecated and not developed anymore.
Feedback
Change Log
- 17854 by rjollos on 2020-08-21 20:44:35
-
TracDiscussion 1.2.2dev: Make compatible with Trac 1.4+
Fixes #13877.
- 17713 by rjollos on 2020-04-30 01:50:36
-
TracDiscussion 1.2.2dev: Use
authorinfo
to format name in topic list
Refs #13778.
- 17637 by rjollos on 2019-12-19 09:35:13
-
TracDiscussion 1.2.1: Publish to PyPI
Refs #13659.
- 16775 by rjollos on 2017-08-26 03:49:19
-
TracDiscussion 1.2: Update copyright info
- 16671 by rjollos on 2017-06-19 05:05:51
-
TracDiscussion 1.2dev: Fix incorrect username in input fields
format_author
should not be used in input fields.
(more)
Author/Contributors
Attachments (3)
-
discussion_list.png (101.9 KB) - added by 11 years ago.
Screenshot of discussion listing.
-
admin.png (139.7 KB) - added by 11 years ago.
Screenshot of administration interface.
-
thread.png (144.1 KB) - added by 11 years ago.
Screenshot of message list in a thread.
Download all attachments as: .zip