Skip to topic | Skip to bottom
Home
 
TWiki
TWiki.FundraisingPluginr1.2 - 31 Aug 2005 - 14:19 - BruceDawsontopic end

Start of topic | Skip to actions

FundraisingPlugin

This plugin defines %FUNDRAISINGMESSAGE%, using a few variables defined on FundraisingPlugin ; this can be used as %BROADCASTMESSAGE% on TWikiPreferences.


Examples

this-ngo.org needs money :

  120 €

30 € to go

before 2005-10-28 : give us money

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)
    • Set DEBUG = 0

  • End date of the fundraising:
    • Set ENDDATE = 2008-10-28

  • Total amount to raise:
    • Set GOAL = 1000

  • Amount already pledged:
    • Set PLEDGED = 200

  • 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 €

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

Plugin Author: TWiki:Main.BenVoui
Plugin Version: 21 Aug 2005 (0.1)
Change History:  
21 Aug 2005: Initial version (0.1)
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.0
License: GPL (GNU General Public License)
TWiki:Plugins/Benchmark: GoodStyle 96%, FormattedSearch 98%, FundraisingPlugin 100%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/FundraisingPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/FundraisingPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/FundraisingPluginAppraisal

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main.BenVoui - 21 Aug 2005
to top


You are here: TWiki > FundraisingPlugin

to top

All content is Copyright © 1999-2023 by, and the property of, the contributing authors.
Questions, comments, or concerns? Contact GNHLUG
Legal Notice (includes Terms of Service)