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... :)

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.

Downloading the code

You can get IpbWiki Paypal source code here (don't try to see the code but just download it).

Installation

  • Create a directory ipbwiki in the extensions directory.
  • Place IpbWiki_PayPal.php in the extensions/ipbwiki directory (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 called LinuxPPS.button with inside the PayPal code as shown by the PayPal creation tool.

Usage

  • the tag <paypal></paypal> is translated to the button defined by the file default.button inside the directory extensions/ipbwiki (note that that file could be also a symbolic link).
  • the tag <paypal>LinuxPPS</paypal> is translated to the button defined by the file LinuxPPS.button.
  • the tag <paypal>LinuxPPS description</paypal> is translated to the button defined by the file LinuxPPS.button, additionaly the text "description" is placed next to the paypal button.

Donate

If you like this extension make a donation with PayPal - it's fast, free and secure!
Personal tools