- ชื่อ: RulesOnPost
- ผู้เขียน: 4kstore
- นำเสนอโดย: DexMoreGroup
- ประเภท: Posting
- รองรับ: SMF 1.1.xx, 2.0.xx
- ปรับปรุงล่าสุด: 25 กรกฏาคม 2553
- ต้นฉบับ: RulesOnPost
รายละเอียด เพิ่มกฏกติกา มารยาท หรืออะไรก็ได้ที่ต้องการใส่ในหน้าโพสต์ข้อความ โดยใช้ข้อความปกติหรือ BBCode ก็ได้ รูปแบบเดิมๆ ที่มากับ mod นี้ยังไม่ดูไม่ค่อยสวยสักเท่าไหร่ แต่ไม่ใช่ปัญหาส่วนนี้เราสามารถแก้ไขเพิ่มเติมได้ด้วยตัวเอง
ตัวอย่าง---
สำหรับ SMF 1.1.xxแก้ไขไฟล์:file $sourcedir/ModSettings.php
ค้นหา -->>
array('int', 'max_signatureLength'),
'',
เพิ่มไว้หลัง -->>
array('check', 'rulesonpost_enable'),
array('large_text', 'rulesonpost_message', '20'),
array('int','rulesonpost_posts'),
file $themedir/Post.template.php
ค้นหา -->>
// If the user wants to see how their
เพิ่มไว้ก่อน -->>
global $user_info, $user_settings;
if (!empty($modSettings['rulesonpost_message']) && !empty($modSettings['rulesonpost_posts']) && $user_info['posts'] < $modSettings['rulesonpost_posts'] && !empty($modSettings['rulesonpost_enable']))
echo '
<div class="titlebg2">',$modSettings['rulesonpost_message'],'</div>';
file $themedir/languages/Modifications.thai-utf8.php
เพิ่ม -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comลิงค์หัวข้อ:
http://dexmore.com/topic/2681