- ชื่อ: DexMore Subordinate
- ผู้เขียน: UnclEo
- นำเสนอโดย: DexMoreGroup
- ประเภท: Socialization
- รองรับ: SMF 1.1.xx, 2.0.xx
- ปรับปรุงล่าสุด: 24 มิถุนายน 2553
รายละเอียด เห็นหลายๆ บอร์ดที่ทำด้วย SMF มักนิยมติดลิงค์เพื่อนบ้านกัน บางบอร์ดก็มีการแลกกันหลายๆ บอร์ดทำให้พื้นที่ๆ มีน้อยนิดไม่เพียงพอกับความต้องการ ก็เลยคิด mod นี้มาแก้ปัญหานี้ ต่อไปมีเว็บเพื่อนบ้านจำนวนเท่าไหร่ๆ เราก็ใส่เข้าไปได้หมดเลย และไม่ต้องเพิ่มด้วยการแก้ไขโค้ด แต่จัดการใน Admin Control Panel (ACP) ได้แบบชิวๆ เลยครับ
แก้ไขไฟล์:file Settings.template.php
ค้นหา -->>
array(
'id' => 'number_recent_posts',
'label' => $txt['number_recent_posts'],
'description' => $txt['number_recent_posts_desc'],
'type' => 'number',
),
เพิ่มไว้ก่อน -->>
array(
'id' => 'dex_sub',
'label' => $txt['dex_sub'],
'description' => $txt['dex_sub_desc'],
'type' => 'text',
),
file BoardIndex.template.php
ค้นหา -->>
// Show the login bar. (it's only true if they are logged out anyway.)
เพิ่มไว้ก่อน -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comfile $anguagesdir/Settings.thai-utf8.php
เพิ่ม -->>
$txt['dex_sub'] = 'เว็บเพื่อนบ้าน';
$txt['dex_sub_desc'] = 'ที่นี่คุณสามารถเพิ่มเว็บลิงค์เพื่อนบ้านได้โดยใช้ BBCode ปล่อยว่างไว้หากไม่ใช้งาน';
file $anguagesdir/index.thai-utf8.php
เพิ่ม -->>
$txt['dex_sub_title'] = 'เว็บเพื่อนบ้าน';
รูป dex_sub.gif อัพโหลดไปไว้ใน $themesdir/images
วิธีใช้งาน: ผู้ดูแล -->> ตั้งค่าธีมปัจจุบัน -->> เว็บเพื่อนบ้าน
[url=your_url][img]your_images[/img][/url]
ลิงค์หัวข้อ:
http://dexmore.com/topic/1960