Extension:SidebarDonateBox

From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
SidebarDonateBox
Release status: unmaintained
px
Implementation Skin
Description Adds a PayPal donate button to the sidebar
Author(s) Daniel Friesen (Dantmantalk)
Latest version 1.2.0 (2020-04-24)
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Download
  • $egSidebarDonateBoxContent
Translate the SidebarDonateBox extension if it is available at translatewiki.net

Check usage and version matrix.

The SidebarDonateBox extension allows an automatic addition of a PayPal donate button or box to a wikis sidebar.

Installation[edit]

  • Download and place the file(s) in a directory called SidebarDonateBox in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'SidebarDonateBox' );
    $wgSidebarDonateBoxContent = "Your PayPal code";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.34 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.34 and earlier), instead of wfLoadExtension( 'SidebarDonateBox' );, you need to use:

require_once "$IP/extensions/SidebarDonateBox/SidebarDonateBox.php";


See also[edit]