IsaacZ 发表于 2009-12-21 18:53:13

帖子内容编辑后自动提升主题 for DZ7.2

首先要在 include/editpost.inc.php找以下代码: smileyoff='$smileyoff', subject='$subject' ".($db->result_first("SELECT aid FROM {$tablepre}attachments WHERE pid='$pid' LIMIT 1") ? ", attachment='1'" : '')." $anonymousadd ".($auditstatuson && $audit == 1 ? ",invisible='0'" : ", invisible='$pinvisible'")." WHERE pid='$pid'");
然后在它的后面加上:
$db->query("UPDATE {$tablepre}threads SET lastpost='$timestamp' WHERE tid='$tid' AND fid='$fid'");
最后到后台更新一下缓存!OK

转贴来源:http://www.discuz.net/forum.php?mod=viewthread&tid=1505317
页: [1]
查看完整版本: 帖子内容编辑后自动提升主题 for DZ7.2