วันนี้ ขอเสนอการเพิ่ม button ใ้ห้กับ board ของเราครับ
1.อย่างแรกเลยนะครับ
หาภาพ มาเป็น button ใหม่ของเราก่อน
ซึ่งผม จะไปเอา button ที่ templates เราใช้อยู่แล้วมา แปรสภาพครับ
ไปเอาได้ที่ forums/Themes/Theme ที่เราใช้/images/button/
เลือกมาสัก ภาพ เอาไปแต่ง photoshop ครับ
----> 
2.หลังจาก ตกแต่ง ภาพ button ใหม่แล้วนะครับ ก็เอาไปเก็บไว้ืั้ ที่เดิมครับ
forums/Themes/Theme ที่เราใช้/images/buton/
3.จากนั้นเปิด ไฟล์ index.template.php
อยู่ที่ forums/Themes/Theme ที่เราใช้/
เปิดไฟล์กันเลยครับ แล้วหา // Show the [home] button (ปุ่ม home ทุก บอร์ดคงมีนะครับ)
// Show the start of the tab section.
echo '
<br /><div align="center" ', $context['browser']
['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"'
: '', '>
';
// Show the [home] button.
echo '<a href="', $scripturl, '?action=home"><img alt="" src="',
$settings['images_url'], '/buton/home.png" /></a>';
// Show the [help] button.
echo '<a href="', $scripturl, '?action=help"><img alt="" src="',
$settings['images_url'], '/buton/help.png" /></a>';
จากนั้นเราก็ใส่ โค้ด ลงไปตามที่ต้องการครับ เช่น จะไว้ปุ่มใหม่ไว้หน้าปุ่ม home ก็ใส่ ไว้ครับ
// Show the start of the tab section.
echo '
<br /><div align="center" ', $context['browser']
['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"'
: '', '>
';
// Show the [NEW] button.
echo '<a href="htxtp://xxxxx.net"><img alt="" src="', $settings
['images_url'], '/buton/NEW.png" /></a>';
// Show the [home] button.
echo '<a href="', $scripturl, '?action=home"><img alt="" src="',
$settings['images_url'], '/buton/home.png" /></a>';
// Show the [help] button.
echo '<a href="', $scripturl, '?action=help"><img alt="" src="',
$settings['images_url'], '/buton/help.png" /></a>';
โดย ภาพ NEW.png เป็น ภาพ button ที่เราเพิ่งแก้ แล้วใส่เข้าไปนะครับ
ส่วน htxtp://xxxxx.net ก็ คือ url ที่เราต้องการให้ลิ้งไป....
ก่อน

หลัง

หวังว่าจะมีประโยชน์นะครับ........
