本帖最后由 sw08 于 2011-8-22 16:31 编辑
powerpigs 发表于 2011-8-22 14:04
这个没关系,发现刷分的可以自己另外去设置扣分。
沙发奖励要怎么修改?
SQL:- INSERT INTO `pre_common_credit_rule` ( `rid` ,
- `rulename` ,
- `action` ,
- `cycletype` ,
- `cycletime` ,
- `rewardnum` ,
- `norepeat` ,
- `extcredits1` ,
- `extcredits2` ,
- `extcredits3` ,
- `extcredits4` ,
- `extcredits5` ,
- `extcredits6` ,
- `extcredits7` ,
- `extcredits8` ,
- `fids`
- )
- VALUES ( NULL , '抢沙发', 'getsofa', '4', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', ''
- );
复制代码 打开source/include/post/post_newreply.php
找到:- !empty($_G['uid']) && updatepostcredits('+', $_G['uid'], 'reply', $_G['fid']);
复制代码 在下面加:- if(!$thread['replies'] && $thread['authorid'] != $_G['uid'])updatecreditbyaction('getsofa', $_G['uid']);
复制代码 找到:- if($_G['forum']['status'] == 3) {
复制代码 在上面加:- if(!$thread['replies'] && $thread['authorid'] != $_G['uid'])updatecreditbyaction('getsofa', $_G['uid']);
复制代码 |