最後編輯時間不會顯示在版主編輯的文章內.
In Sources/Post.php:
Find:
// Have admins allowed people to hide their screwups?
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
$modifiedTime = time();
Replace With:
// Administrator edits should not be logged!
if ($user_info['is_admin'])
$modifiedTime = 0;
// Have admins allowed people to hide their screwups?
elseif (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
$modifiedTime = time();
如果要把套用這個技巧之前的編輯時間也消失必須要改資料庫. 到SMF的資料庫裡面然後輸入下面這個SQL語法:
UPDATE smf_messages
SET modifiedTime = 0, modifiedName = NULL
WHERE modifiedName = 'Andrew';
然後把 'Andrew' 改成版主的帳號.