|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
很多站长系统对论坛中的悬赏主题在确定了最佳答案时自动将主题分类变更成“已解决”或其他指定分类!
解决方法如下
修改文件:source\module\forum\forum_misc.php
找到代码
- updatemembercount($post['authorid'], array($_G['setting']['creditstransextra'][2] => $thread['price']), 1, 'RAC', $_G['tid']);
复制代码
在下方第二行
- C::t('forum_thread')->update($_G['tid'], array('price'=>$thread['price']));
复制代码 修改为
- C::t('forum_thread')->update($_G['tid'], array('price'=>$thread['price'],'typeid'=>数字,'close'=>1));
复制代码 此处 数字 要换成你的目标分类的typeid
以上修改方法,仅针对只有一个悬赏主题版块的论坛!
如果您网站开启了多个版块的悬赏主题,可以价格if判断,不同版块设置不同的typeid;
|
|