VotePlugin
This plugin might be used to establish an online-voting system. Votes are
collected in a separate file ... basically inspired by the
TWiki:Plugins/PollPlugin.
Example
%VOTE{id="FavoritMeal" style="bar" select1="Drink" options1="Beer,Wine,Milk,Water" select2="Food" options2="Steak,Bread,Pasta,Pizza"}%
Syntax Rules
The %VOTE{ ... }% macro defines a poll using the following options:
name |
description |
example |
id |
The identifier of a poll. This must be unique per topic. You can thus have multiple independent votes on the same topic page. |
FaroritMeal |
style |
Possible values are a combination of bar , perc , total and sum to specify the display style of the poll results (default bar,perc,total ). |
bar |
select<n> |
As you can see in the above example multiple decisions can be made within the same poll. This identifier must be unique within a poll. You can have up to 5 selects per vote (sorry hardcoded;)) |
Drinks |
options<n> |
Each select<n> corresponds to set of options that you must specify. |
Beer,Wine,Milk |
select
and
option
might use the pseudo variables
$percnt
,
$dollar
,
$quote
and
$doublequote
to render the respective characters in the vote output otherwise not allowed
in an argument to a TWiki tag.
The %VOTE{ ... }% will generate the selection box(es) and the poll results.
The plugin will count only you latest vote. You might only vote once a day.
Plugin Settings
- Set SHORTDESCRIPTION = Simple way to count votes
Plugin Installation Instructions
- Download the ZIP file from the Plugin web (see below)
- Unzip
VotePlugin.zip
in your twiki installation directory. Content: File: | Description: |
bin/vote | Plugin cgi script |
data/TWiki/VotePlugin.txt | Plugin topic |
lib/TWiki/Plugins/VotePlugin.pm | Plugin Perl module |
- (Dakar) Visit
configure
in your TWiki installation, and enable the plugin in the {Plugins} section.
Plugin Info
--
TWiki:Main.MichaelDaum - 9 Oct 2005
This topic: TWiki
> VotePlugin
Topic revision:
17 Oct 2012, UnknownUser
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback