FundraisingPlugin
This plugin defines %FUNDRAISINGMESSAGE%, using a few variables defined on
FundraisingPlugin ; this can be used as %BROADCASTMESSAGE% on
TWikiPreferences.
Examples
Behaviour
%FUNDRAISINGMESSAGE% is not defined when one of the following conditions is verified:
- %ENDDATE% is in the past;
- %GOAL% has already been reached;
- the configuration variables (defined below) values are not consistent.
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%
, i.e.
%INTERWIKIPLUGIN_SHORTDESCRIPTION%
- Debug plugin: (See output in
data/debug.txt
)
- End date of the fundraising:
- Message to display before the progress bar
- #Set PREMSG = GNHLUG a besoin d'argent :
- Set PREMSG = GNHLUG needs money:
- How to display the already pledged amount
- Set PLEDGEDMSG = $200
- #Set PLEDGEDMSG = 200 €
- How to display the amount to raise in the progress bar (
TOGO
will be replaced by the missing amount)
- Set TOGOMSG = $%FUNDRAISINGPLUGIN_TOGO% to go
- #Set TOGOMSG = manque TOGO €
- Message to display after the progress bar
Plugin Installation Instructions
- Download the ZIP file from the Plugin web (see below)
- Unzip
FundraisingPlugin.zip
in your twiki installation directory. Content:
File: | Description: |
data/TWiki/FundraisingPlugin.txt | Plugin topic |
data/TWiki/FundraisingPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/FundraisingPlugin.pm | Plugin Perl module |
- Edit FundraisingPlugin to suit your needs.
- Write-protect FundraisingPlugin against modifications (
Set ALLOWTOPICCHANGE = TWikiAdminGroup?
).
- To enable it, set %BROADCASTMESSAGE% to %FUNDRAISINGMESSAGE% in TWikiPreferences topic.
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins
--
TWiki:Main.BenVoui - 21 Aug 2005
to top