Release status: stable |
|
|---|---|
![]() |
|
| Implementation | Skin |
| Description | Adds a PayPal donate button to the sidebar |
| Author(s) | Suriyaa Sundararuban (Suriyaa Kudotalk) |
| Maintainer(s) | Suriyaa Sundararuban |
| Latest version | 1.4 (2020-04-21) |
| MediaWiki | 1.31+ |
| PHP | 5.6+ |
| Database changes | No |
| License | GNU General Public License 2.0 or later |
| Download | GitHub: Note: |
|
Parameters
$onSidebarDonateBoxContent |
|
|
Hooks used
|
|
The DonateBoxInSidebar extension allows an automatic addition of a PayPal donate button or box to a wiki's sidebar. (This extension is a further development of the SidebarDonateBox extension.)
Installation
- Download and place the file(s) in a directory called
DonateBoxInSidebarin yourextensions/folder. - Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-devin the extension directory. (See task T173141 for potential complications.) - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'DonateBoxInSidebar' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
- Configure if required
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.25 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.25 and earlier), instead of wfLoadExtension( 'DonateBoxInSidebar' );, you need to use:
require_once "$IP/extensions/DonateBoxInSidebar/DonateBoxInSidebar.php";
Configuration
- Add your PayPal button/box code in your LocalSettings.php file using:
$wgDonateBoxInSidebarContent = 'Put your PayPal code here';
| This extension was migrated from git.suriyaa.tk code and checked into a GitHub software repository. |
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.
