Extension:MiniDonation
From MediaWiki.org
|
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 |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
|
Check usage (experimental) |
|
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 )
[edit] Installation
- Download the files from SVN
- Add
to your wiki's LocalSettings.phprequire_once("$IP/extensions/MiniDonation/MiniDonation.php");
- Installation can now be verified through Special:Version
[edit] Use
If you want to completely change the form then:
- Edit MiniDonation.php
- Get rid of everything between return <<<EOT and EOT;
- 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.
|
|
This extension is being used on one or more of Wikimedia's wikis. This means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
