Reddit-style voting on Trac resources

Description

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.

Bugs/Feature Requests

Existing bugs and feature requests for VotePlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out VotePlugin from here using Subversion, or browse the source with Trac.

Installation

Install the plugin:

easy_install http://trac-hacks.org/svn/voteplugin/0.11

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.

You may need to run:

trac-admin [trac environment pathname] 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.

Screenshot

Recent Changes

[11793] by rjollos on 07/26/12 03:17:54

Refs #8597: Redirect to URL accounts for path to Trac environment.

[11792] by rjollos on 07/26/12 02:50:06

Renamed 0.11 directory to trunk. Deleted empty 0.12 directory.

[8474] by rjollos on 08/28/10 00:17:53

Move location of SQL for Report file. Add svn:ignore property for *.egg-info directory.

[8473] by rjollos on 08/28/10 00:06:24

Added SQL query for a report that sorts tickets by the number of votes. SQL is taken from the t.e.o. site. Fixes #3655.

Author/Contributors

Author: athomas
Maintainer: rjollos
Contributors: k0s, PeterLawrence

Attachments