10 กุมภาพันธ์ 2555, 04:55:27
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. 08-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Disable Decrease Post Count Option ถูกลบแต่ไม่ลด!  (อ่าน 919 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general เมื่อ: 13 กรกฎาคม 2553, 17:00:37
  • ชื่อ: Disable Decrease Post Count Option
  • ผู้เขียน: BK-S-M-F Modding Team
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 10 กุมภาพันธ์ 2552
  • ต้นฉบับ: Disable Decrease Post Count Option

รายละเอียด
      โดยปกติกระทู้ของสมาชิกที่ถูกลบออกไปจะทำให้จำนวนกระทู้จะลดลง แต่ mod นี้จะปิดการทำงานการลดจำนวนกระทู้ของสมาชิกที่ถูกลบ ให้คงอยู่เท่าเดิม แต่จะลดในสถิติบอร์ดเท่านั้น

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Reporting of personal messages?
array('check', 'enableReportPM'),

แก้เป็น -->>
โค๊ด: [Select]
// Reporting of personal messages?
array('check', 'enableReportPM'),
'',
// Decrease post count option.
array('check', 'disablePostDecreasePostCount'),
array('check', 'disableTopicDecreasePostCount'),
'',

file $sourcedir/RemoveTopic.php

ค้นหา -->>
โค๊ด: [Select]
function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)
{
global $db_prefix, $sourcedir, $modSettings;

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Disable decrease post count when topic removed check.
if(isset($modSettings['disableTopicDecreasePostCount']) && $modSettings['disableTopicDecreasePostCount'])
$decreasePostCount = false;

ค้นหา -->>
โค๊ด: [Select]
if (empty($message) || !is_numeric($message))
return false;

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Disable decrease post count when post removed check.
if(isset($modSettings['disablePostDecreasePostCount']) && $modSettings['disablePostDecreasePostCount'])
$decreasePostCount = false;

file $languagedir/ModSettings.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['disablePostDecreasePostCount'] = 'จำนวนกระทู้ไม่ลดเมื่อถูกลบ';
$txt['disableTopicDecreasePostCount'] = 'จำนวนหัวข้อไม่ลดเมื่อถูกลบ';

การตั้งค่า: ผู้ดูแล -->> ส่วนปรับแต่งค่าการใช้งาน

ลิงค์หัวข้อ: http://dexmore.com/topic/2382
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 13 กรกฎาคม 2553, 17:10:00
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Stats, compression, cookies.... server type stuff.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// Decrease post count option.
array('check', 'disablePostDecreasePostCount'),
array('check', 'disableTopicDecreasePostCount'),
'',

file $sourcedir/RemoveTopic.php

ค้นหา -->>
โค๊ด: [Select]
[function removeTopics($topics, $decreasePostCount = true, $ignoreRecycling = false)
{
global $sourcedir, $modSettings, $smcFunc;

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Disable decrease post count when topic removed check.
if(isset($modSettings['disableTopicDecreasePostCount']) && $modSettings['disableTopicDecreasePostCount'])
$decreasePostCount = false;

ค้นหา -->>
โค๊ด: [Select]
if (empty($message) || !is_numeric($message))
return false;

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
//Disable decrease post count when post removed check.
if(isset($modSettings['disablePostDecreasePostCount']) && $modSettings['disablePostDecreasePostCount'])
$decreasePostCount = false;

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
$txt['disablePostDecreasePostCount'] = 'จำนวนกระทู้ไม่ลดเมื่อถูกลบ';
$txt['disableTopicDecreasePostCount'] = 'จำนวนหัวข้อไม่ลดเมื่อถูกลบ';

ลิงค์หัวข้อ: http://dexmore.com/topic/2382
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 22 มกราคม 2555, 22:19:10

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla