Extension:DonateBoxInSidebar

From Linux Web Expert

Revision as of 16:23, 22 December 2023 by imported>Pppery (If the problem is SkinBuildSidebar then it broken in 1.39 not 1.37, right?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
DonateBoxInSidebar
Release status: unmaintained
px
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
$onSidebarDonateBoxContent
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

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

  • <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>DonateBoxInSidebar</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>composer install --no-dev</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab><translate> task <tvar name=1>T173141</tvar></translate></tvar> for potential complications.)</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'DonateBoxInSidebar' );
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • Configure if required
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration

  1. Add your PayPal button/box code in your LocalSettings.php file using:
$wgDonateBoxInSidebarContent = 'Put your PayPal code here';