Resourcez

SMF => Treasury => FAQ => Topic started by: Resourcez on December 20, 2007, 11:11:23 PM

Title: Installing a Portal Block with Treasury
Post by: Resourcez on December 20, 2007, 11:11:23 PM
These instructions apply to Treasury v2.32 with any Portal version for SMF 1.1.x or SMF 2.x that supports the use of PHP blocks, as follows:

Treasury will automatically install the DonationBlock to the Sources directory as part of the package installation, so you just need to add the code to your Portal, or edit existing code.

Create a Portal php block with this code:
Quote
global $sourcedir;
include("$sourcedir/DonationBlock.php");