Extension:MiniDonation

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MiniDonation

Release status: stable

Implementation Tag
Description Adds <donationform> tag to support donations via PayPal
Author(s) Brion Vibber
MediaWiki 1.11+
License No license specified
Download
Check usage and version matrix

MiniDonation extension adds <donationform> parser hook which can be used to display a PayPal donation form on a page. It's Wikimedia-specific so you need to edit the MiniDonation.php file to make the extension suit your needs.

Note: Special:Version says the tag is <donateform;> but it is, in fact, <donationform> (a bug in MiniDonation.i18n.php )

Installation [edit]

  1. Download the files from SVN
  2. Add
    require_once("$IP/extensions/MiniDonation/MiniDonation.php");
    to your wiki's LocalSettings.php
  3. Installation can now be verified through Special:Version

Use [edit]

If you want to completely change the form then:

  1. Edit MiniDonation.php
  2. Get rid of everything between return <<<EOT and EOT;
  3. Replace it with your HTML (e.g. the HTML from paypal.com when you create a button there)

If you use <donationform> and nothing appears after the donation form on your page, then use <donationform/> instead.