This plugin supports a +1 -1 voting scheme.

Version 2.1.x and above.#

Parameters #

  • none

I have modify the VotePlugin,you can add any key to the vote,
the source in the attachment,I'm using jspwiki-2.2.28,
you can build the VotePlugin,and put it into JSPWiki.jar
and put the vode.jsp in you webroot.
enjoy it

Example#

This page has Plugin insertion failed: Could not find plugin VotePluginPlugin insertion failed: Could not find plugin VotePlugin positive and Plugin insertion failed: Could not find plugin VotePluginPlugin insertion failed: Could not find plugin VotePlugin negative votes.

Vote yes. Vote no. The page VoteOk is displayed when a vote is submitted.


TODO: How to refer to Vote.jsp without hard-linking to the site?
Is there any doc on how to use this? I've had requests for this feature. Is there a way of listing pages by votes?

Note that this is probably not what you want if your site is accessible on the internet: Spiders will follow those "GET" links also and vote (if you want to say so). (OlafKock)


Problems#

There is no way to reset the votes, since the values are stored as VotePlugin.properties, and there is currently no way of deleting attachments.

It would also be good if users could specify arbitrary voting values, instead of being locked into just "yes" and "no" parameters.

Finally, the most conceptually difficult request, would be a way to screen users so that any ID/IP can only submit one vote. -- CaesarWong (Zzyss)

Take care: Previous comment implies to some people, that you allow only one vote from e.g. proxy.aol.com -- OlafKock


Note that in 2.2, it is possible to delete attachments.

VotePlugin would need quite a lot of enhancements - it is mostly abandoned now (it was originally designed for a very particular purpose, but I never took it off the distribution). There would be a need for a wise hacker to take this plugin and polish it :-)

-- JanneJalkanen


Would it not be possible to simply edit and re-attach voteplugin.properties?

#JSPWiki Votes plugin stores its votes here.  Don't modify!
#Fri Mar 24 09:07:05 EET 2006
yes=345
no=171


Since no one is actively maintaining the plugin, shouldn't it be moved out of the core distro? Or, should it remain for backward compatibility?

It would be nice to It is nice to have plugin that supports a simple Apache voting structure.

Capturing user names and votes in an audit trail would be very cool. Maybe use a variation on the weblog idea? Or insert text for the vote to a page and use the version history of the page as the audit trail? Just some ideas...


03/24/2006

where should we put the VotePlugin.properties? The following dir was automatically created: /VotePlugin-att/VotePlugin.properties-dir but the votes aren't shown in the website...


06/20/2007

Is there a way to have the vote plugin redirect to the same page rather then the voteok page?


Back to JSPWikiPlugins.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 24-May-2008 13:26 by -jim