邀请注册更新积分的文件修改
source\class\class_member.php
找到
updatemembercount($uid, array($this->setting['inviteconfig']['inviterewardcredit'] => $this->setting['inviteconfig']['inviteaddcredit'])
在后面添加
,1,'YQC',$uid
积分策略更新积分文件
source\class\class_credit.php
1.找到
$this->updatemembercount($creditarr, $uids, is_array($uids) ? false : true, $this->coef > 0 ? urldecode($rule['rulenameuni']) : '');
在上面添加
if ($rule['action']) { $_G['creditrulaaction'] = $rule['action']; }
2.找到
C::t('common_member_count')->increase($uids, $sql);
在前面添加
require_once libfile('function/credit');
if (in_array($_G['creditrulaaction'], array('promotion_register', 'reply'))) {
foreach ($sql as $k => $kdate) {
$datekey = array('extcredits4', 'extcredits5');
if (!empty($k) && $kdate && in_array($k, $datekey)) {
$datelog[$k] = $kdate;
credit_log($uids, 'YQC', $_G['uid'], $datelog);
}
}
}
添加用户语言
source\language\lang_spacecp.php
找到
'logs_credit_update_INDEX' => array(
在里面加上自己定义的语言选项例如' YQC'
在后面加上两行
'logs_credit_update_YQC' => '积分规则',
'task_credit_yqc' => '论坛积分规则变更积分',
source\include\spacecp\spacecp_credit.php
找到
switch($log['operation']) {
添加
case 'YQC':
$log['opinfo'] = lang('spacecp', 'task_credit_yqc');
break;
添加后台管理语言
source\language\lang_admincp.php
添加
'logs_credit_update_YQC' => '积分规则',
source\admincp\admincp_logs.php
找到
$operationlist = array(
添加
'YQC'
然后在找到
'member' => array(
添加
'YQC'