User:MarkTraceur/FR-tech setup notes

These are Mark Holmquist's notes on the Fundraising setup he did in May of 2013 as part of his attempts to start QA'ing their setup.

Getting the right stuff
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git # Or, you know, clone core however you want cd core git checkout -b fundraising/1.22 origin/fundraising/1.22 git submodule update --init --recursive

Install MediaWiki
Installation

Configuring like a boss
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); require_once( "$IP/extensions/DonationEmailUnsubscribe/FundraiserUnsubscribe.php" ); require_once( "$IP/extensions/ContributionTracking/ContributionTracking.php" ); $wgDonationInterfaceEnableGlobalCollect = true; $wgDonationInterfaceEnablePaypal = true; require_once( "$IP/extensions/DonationInterface/donationinterface.php" ); $wgGlobalCollectGatewayAccountInfo['test'] = array(     'MerchantID' => 'test'  ); require_once( "$IP/DonationInterfaceFormSettings.php" );

Don't forget to update behind your ears
php maintenance/update.php --quick

Also, update your database:

alter table contribution_tracking modify anonymous tinyint(1) unsigned default null, modify optout tinyint(1) unsigned default null;

Replace according to your configuration!