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

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

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: RulesOnPost กฎกติกา มารยาทในหน้าโพสต์กระทู้  (อ่าน 654 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: RulesOnPost
  • ผู้เขียน: 4kstore
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Posting
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 25 กรกฏาคม 2553
  • ต้นฉบับ: RulesOnPost

รายละเอียด
      เพิ่มกฏกติกา มารยาท หรืออะไรก็ได้ที่ต้องการใส่ในหน้าโพสต์ข้อความ โดยใช้ข้อความปกติหรือ BBCode ก็ได้ รูปแบบเดิมๆ ที่มากับ mod นี้ยังไม่ดูไม่ค่อยสวยสักเท่าไหร่ แต่ไม่ใช่ปัญหาส่วนนี้เราสามารถแก้ไขเพิ่มเติมได้ด้วยตัวเอง

ตัวอย่าง
---

สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $sourcedir/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
array('int', 'max_signatureLength'),
'',

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
array('check', 'rulesonpost_enable'),
array('large_text', 'rulesonpost_message', '20'),
array('int','rulesonpost_posts'),

file $themedir/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
// If the user wants to see how their

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
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
Windows XP    Firefox 3.6.8   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

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

แก้ไขไฟล์:

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
array('check', 'rulesonpost_enable'),
array('large_text', 'rulesonpost_message', '20'),
array('int','rulesonpost_posts'),

file $themedir/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
// If the user wants to see how their

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
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
Windows XP    Firefox 3.6.8   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

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

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 5 ชั่วโมงที่ผ่านมา

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