SMF, Web Design

วิธีการเพิ่มเมนูใน SMF 2.0.6

อ่าน: 2,565 ครั้ง
Advertising

วิธีการเพิ่มเมนูใน SMF 2.0.6

ในที่นี่จะลองทำเพิ่มเมนู “ติดต่อเรา” ให้กับเว็บบอร์ดที่ใช้ SMF 2.0.6

 

 

smf 2.0.6

– แก้ไขไฟล์ Subs.php ในโฟลเดอร์ Sources > Subs.php

– เปิดไฟล์ Subs.php ขึ้นมา  

1. หา (จะอยู่ประมาณบรรทัดที่ 4,005) หรือใครใช้โปรแกรม EditPlus ก็ใช้ Search เอา
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),

 

 

2. เพิ่มโค๊ดด้านล่าง หลังที่หา

'contact_us' => array(
'title' => 'ติดต่อเรา',
'href' => 'http://www.urlเว็บของแต่ละท่าน.com/contact_us.html',
'show' => true,
'sub_buttons' => array(
),
),

3. บันทึกและอัพโหลดไปไว้ที่เดิม

 

 
Advertising