WebEngine's 6th Anniversary

On December 19th, 2018 we will be celebrating 6 years of WebEngine CMS!
The event is here!

Modification zTeam credits (class.common.php)

Lautaro

Administrator
Developer
#1
Here's the modified 1.0.7 PL1 class.common.php for clients using zTeam files.

The only modification that has been made is to the addcredits() and substractCredits() functions. The queries have been changed so the web uses the following table definitions:
PHP:
define('_TBL_MC_', 'MEMB_CREDITS');
    define('_CLMN_MC_ID_', 'memb___id');
    define('_CLMN_MC_CREDITS_', 'Credits');
    define('_CLMN_MC_TEMPCREDITS_', 'TempCredits');
So that should be changed to:
PHP:
define('_TBL_MC_', 'GameShop_Data');
    define('_CLMN_MC_ID_', 'MemberGuid');
    define('_CLMN_MC_CREDITS_', 'WCoinC');
    define('_CLMN_MC_TEMPCREDITS_', 'none'); //not used
With that modification plus the attched class.common.php your web's credits system should work with no problem.

WebEngine 1.0.8 will have full support for zTeam database.
 

Attachments

Top