Jake Bunce
Well-known member
Jake Bunce submitted a new resource:
Run query on user upgrade (code example) (version 1.x) - Useful if you need to grant additional awards or status when a user pays for an upgrade.
Read more about this resource...
Run query on user upgrade (code example) (version 1.x) - Useful if you need to grant additional awards or status when a user pays for an upgrade.
You can edit the library/ExtendUserUpgrade/UserUpgradeModel.php file to set your own query or code to execute when a user pays for an upgrade. The file already includes a query that I used for the person I made this for:
Rich (BB code):<?php class ExtendUserUpgrade_UserUpgradeModel extends XFCP_ExtendUserUpgrade_UserUpgradeModel { public function upgradeUser($userId, array $upgrade, $allowInsertUnpurchasable = false, $endDate = null) { $retval = parent::upgradeUser($userId, $upgrade,...
Read more about this resource...