開啟 topicadmin.php
找$postcredits = $forum['postcredits'] ? $forum['postcredits'] : $creditspolicy['post'];[/php]
上面加上
[php]if (!empty($tid) && $thread && $thread['authorid'] == $discuz_uid) {
$reasonpmcheck = '';
}[/php]
開啟 moderation.inc.php
找
[php]while($thread = $db->fetch_array($query)) {
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
$thread['dblastpost'] = $thread['lastpost'];
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$threadlist[$thread['tid']] = $thread;
$tid = empty($tid) ? $thread['tid'] : $tid;
}[/php]
改為
[php]$reasonpmcheck2 = 0;
while($thread = $db->fetch_array($query)) {
if ($reasonpmcheck && $thread['authorid'] != $discuz_uid) {
$reasonpmcheck2 = 1;
}
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
$thread['dblastpost'] = $thread['lastpost'];
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$threadlist[$thread['tid']] = $thread;
$tid = empty($tid) ? $thread['tid'] : $tid;
}
$reasonpmcheck = $reasonpmcheck2 ? $reasonpmcheck : ''; |