SMF – Adding menu to SMF
ทำการแก้ไขไฟล์ index.template.php ใน Template ปัจจุบันที่ใช้งานอยู่
– ค้นหา function template_menu() แล้วเรื่อยลงมายังตำแหน่งที่ต้องการเพิ่มเมนู
– เพิ่มเมนูโดยการแทรก code นี้เข้าไป
โชว์ทั้งหมด
// Advertising
[php]
echo ‘<li><a href="<a href="//www.susethailand.com/index.php/en/advertising" target="_blank">//www.susethailand.com/index.php/en/advertising</a>" target="_blank">’ , Advertising , ‘</a></li>’;
[/php]
โชว์เฉพาะ guest
// Advertising
[php]
if ($context[‘user’][‘is_guest’])
echo ‘<li><a href="<a href="//www.susethailand.com/index.php/en/advertising" target="_blank">//www.susethailand.com/index.php/en/advertising</a>" target="_blank">’ , Advertising , ‘</a></li>’;
[/php]
Advertising คือ ชื่อเมนู
Adding tabs to SMF 2.0
//www.simplemachines.org/community/index.php?topic=261880.0
1 thought on “SMF – Adding menu to SMF”
ขอบคุณนะครับ หาอยู่นานเลยครับ