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 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.

Screenshot

Recent Changes

[6784] by k0s on 10/21/09 19:21:42

handle condition where there are no votes

[6772] by k0s on 10/20/09 20:30:04

add utility function to get the max votes, votes on a realm, and total votes on a realm

[6769] by k0s on 10/20/09 19:50:23

reformat comments

[6409] by k0s on 08/21/09 20:30:40

fixes #3808; fixes #3298

Author/Contributors

Author: athomas
Contributors: k0s

Attachments