久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: Discuz! X3.4如何設置編輯主題后自動提升? [打印本頁]

作者: T-MACegg    時間: 2022-7-12 11:09
標題: Discuz! X3.4如何設置編輯主題后自動提升?
Discuz! X3.4如何設置編輯主題后自動提升?

作者: dashen    時間: 2022-7-12 23:21
有個免費的插件:https://addon.dismall.com/plugins/study_editthread_promote.html
作者: 專家    時間: 2022-7-13 03:58
看來未來可以考慮加一個按編輯時間排序的功能
作者: delete    時間: 2024-3-18 00:51
帖子內容編輯后自動提升主題
修改文件:
source\include\post\post_editpost.php
修改方法:
搜索
$modpost->editpost($param);
在下方加入一行
DB::update('forum_thread',array('lastpost'=>TIMESTAMP),array('tid'=>$_G['tid']));
帖子被訪問后自動提升主題
修改文件:
\source\module\forum\forum_viewthread.php
修改方法:
搜索
viewthread_updateviews($archiveid);
在下方加入一行
DB::update('forum_thread',array('lastpost'=>TIMESTAMP),array('tid'=>$_G['tid']));
帖子被支持/反對(頂/踩)后自動提升主題
修改文件:
\source\module\forum\forum_misc.php
修改方法:
搜索
if($_G['setting']['recommendthread']['daycount'])
在上方加入一行
DB::update('forum_thread',array('lastpost'=>TIMESTAMP),array('tid'=>$_G['tid']));
帖子被評分后自動提升主題
修改文件:
\source\module\forum\forum_misc.php
修改方法:
搜索
showmessage('thread_rate_succeed', dreferer());
在上方加入一行
DB::update('forum_thread',array('lastpost'=>TIMESTAMP),array('tid'=>$_GET['tid']));
帖子被收藏后自動提升主題
修改文件:
\source\include\spacecp\spacecp_favorite.php
修改方法:
搜索
C::t('forum_thread')->increase($id, array('favtimes'=>1));
在下方加入一行
DB::update('forum_thread',array('lastpost'=>TIMESTAMP),array('tid'=>$id));

網上搜到的,但我需要的是主題被購買后提升主題,搜索無果,哎~




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0