ติดต่อลงโฆษณา [email protected]

ผู้เขียน หัวข้อ: เพิ่มปุ่มเมนูอย่างไรครับ  (อ่าน 2955 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ techtoy

  • New Member
  • *
  • กระทู้: 2
    • ดูรายละเอียด
คือจะแก้ให้ ปุ่ม home ไปที่หน้าแรกของ website แล้วเพิ่มปุ่ม webboard ให้เข้าที่หน้าแรกกระทู้น่ะครับ :)

ลองดูที่ท่าน hackpro สอนไว้ http://smf.rcweb.net/index.php?topic=16.msg50#msg50
มันไม่ตรงกันครับ ตอนนี้ RC3 มันเปลี่ยน code ไปเลย นั่งไล่อยู่ 2 วันแล้วยังหาไม่เจอว่าต้องเปลี่ยนตรงไหน
เพราะจาก Code ตรง $current_action == 'home' ก็ไม่เห็นจะบอกว่ามัน
ลิ้งไปได้อย่างไร หรือไปที่ไฟล์ไหนครับ งง ???
โค้ด: [เลือก]
// Show the start of the tab section.
echo '
<table height="21" cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="menutab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="menutab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="menutab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="menutab_active_' . $last . '">&nbsp;</td>' : '';