wiki:VotePlugin

Version 9 (modified by rjollos, 5 years ago) (diff)

Adding documentation about setting paths option in the [vote] section of trac.ini

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

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

Screenshot

Recent Changes

[13682] by rjollos on 2014-02-19 12:53:46
Trimmed whitespace using reindent.py.
[13094] by hasienda on 2013-05-13 00:59:50
VotePlugin: Make compact and top standard wiki macro arguments, refs #4546 and #7592.

List output for all three macros is limited to a maximum of 5 items, if not
explicitely specified by top=<n>, where in turn 'n=0' means unlimited.
The previous limit of 10 items (TopVoted only) looked like too much.

And rendering of resource links respects the compact argument too, what
yields significantly reduced output for milestones and tickets.

[13093] by hasienda on 2013-05-13 00:37:50
VotePlugin: Re-enable voting on milestones, refs #4546, #7592 and #10942.

delete_vote obviously needed to not depend on a req object to work.
That went unnoticed, because it is called only by change listeners for now.

set_vote was not ready for unversioned resources, and a subtle insanity in
resource_from_path surfaced during early testing with milestones too.

Method name changes are done for clarity, that a single method call probably
deals with multiple vote entries.

Author/Contributors

Author: athomas
Contributors: k0s

Attachments (1)

Download all attachments as: .zip