|Version 18 (modified by hasienda, 3 years ago) (diff)|
Reddit-style voting on Trac resources
This plugin adds a context-navigation entry that lets users easily vote for a Trac resource, including Wiki pages, tickets, milestones, etc.
If a user has a valid session (created through the Preferences panel) and the VOTE_MODIFY permission, they will be able to vote.
If you have any issues, create a new ticket.
Download the zipped source from [download:voteplugin here].
Install the plugin:
If you get "error: Unexpected HTML page found at http://trac-hacks.org/svn/voteplugin/0.11", update setuptools:
sudo easy_install -U setuptools
Add the following to the [components] section of trac.ini:
[components] tracvote.* = enabled
Configure the list of URL paths to allow voting on in trac.ini. Globs are supported.
[vote] paths =
Grant users the VOTE_VIEW and VOTE_MODIFY permission where appropriate. Note that VOTE_MODIFY inherits view permission since tracvote-0.1.4.
You may need to run:
trac-admin /path/to/projenv upgrade
You will also need to restart your webserver for the plugin to be available, appear in the list of those installed, have the perms available, etc.
The SQL for creating a report, that sorts tickets based on the number of votes, can be found in the repository.