รายละเอียด โดยปกติกระทู้ของสมาชิกที่ถูกลบออกไปจะทำให้จำนวนกระทู้จะลดลง แต่ mod นี้จะปิดการทำงานการลดจำนวนกระทู้ของสมาชิกที่ถูกลบ ให้คงอยู่เท่าเดิม แต่จะลดในสถิติบอร์ดเท่านั้น
ตัวอย่าง
สำหรับ SMF 1.1.xxแก้ไขไฟล์:file $sourcedir/ModSettings.php
ค้นหา -->>
// Reporting of personal messages?
array('check', 'enableReportPM'),
แก้เป็น -->>
// Reporting of personal messages?
array('check', 'enableReportPM'),
'',
// Decrease post count option.
array('check', 'disablePostDecreasePostCount'),
array('check', 'disableTopicDecreasePostCount'),
'',
file $sourcedir/RemoveTopic.php
ค้นหา -->>
function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)
{
global $db_prefix, $sourcedir, $modSettings;
เพิ่มไว้หลัง -->>
//Disable decrease post count when topic removed check.
if(isset($modSettings['disableTopicDecreasePostCount']) && $modSettings['disableTopicDecreasePostCount'])
$decreasePostCount = false;
ค้นหา -->>
if (empty($message) || !is_numeric($message))
return false;
เพิ่มไว้หลัง -->>
//Disable decrease post count when post removed check.
if(isset($modSettings['disablePostDecreasePostCount']) && $modSettings['disablePostDecreasePostCount'])
$decreasePostCount = false;
file $languagedir/ModSettings.thai-utf8.php
เพิ่ม -->>
$txt['disablePostDecreasePostCount'] = 'จำนวนกระทู้ไม่ลดเมื่อถูกลบ';
$txt['disableTopicDecreasePostCount'] = 'จำนวนหัวข้อไม่ลดเมื่อถูกลบ';
การตั้งค่า: ผู้ดูแล -->> ส่วนปรับแต่งค่าการใช้งาน
ลิงค์หัวข้อ:
http://dexmore.com/topic/2382