MediaWiki PayPal's buttons support
From EnneEnneWiki
Contents |
If you wish using PayPal's buttons inside your MediaWiki site maybe you can find useful this code.
Original version of IpbWiki_Paypal.php is by Peter De Decker and his site is at http://www.ipbwiki.com/IpbWiki_Paypal_Extension. I just made some patches to his code... :)
[edit]
About
IpbWiki Paypal is a Mediawiki Extension which adds a new <paypal> tag which allows you to add a paypal button to your wiki pages.
[edit]
Downloading the code
You can get IpbWiki Paypal source code here (don't try to see the code but just download it).
[edit]
Installation
- Create a directory
ipbwikiin theextensionsdirectory. - Place
IpbWiki_PayPal.phpin theextensions/ipbwikidirectory (see code below) - Open the file
LocalSettings.php, search for:
?>
and change this to:
require_once('extensions/ipbwiki/IpbWiki_PayPal.php'); // IpbWiki PayPal Extension
?>
- In the same directory place one file for each PayPal's buttons you need. Files must have "
.button" extension. For example I have defined a PayPal button for my Project LinuxPPS calledLinuxPPS.buttonwith inside the PayPal code as shown by the PayPal creation tool.
[edit]
Usage
- the tag
<paypal></paypal>is translated to the button defined by the filedefault.buttoninside the directoryextensions/ipbwiki(note that that file could be also a symbolic link). - the tag
<paypal>LinuxPPS</paypal>is translated to the button defined by the fileLinuxPPS.button. - the tag
<paypal>LinuxPPS description</paypal>is translated to the button defined by the fileLinuxPPS.button, additionaly the text "description" is placed next to the paypal button.
[edit]
Donate
| If you like this extension make a donation with PayPal - it's fast, free and secure! |
