SMF Thailand.

General Community => General Community => ข้อความที่เริ่มโดย: bb ที่ 20/04/06, 21:07:49

หัวข้อ: ต้องแก้ตรงใหนครับ (มือซิง)
เริ่มหัวข้อโดย: bb ที่ 20/04/06, 21:07:49
(http://img163.imageshack.us/img163/6524/gfhgfhgfh7ia.jpg)

อยากได้แบบกดคำว่าหน้าแรกแล้วไปโผล่หน้าเวปของผมน่ะครับ
สงสารคนความรู้น้อยช่วยตอบหน่อยครับ ขอบคุณครับ
หัวข้อ: Re: ต้องแก้ตรงใหนครับ (มือซิง)
เริ่มหัวข้อโดย: TodRacing ที่ 21/04/06, 19:12:19
เข้าไป แก้ ใน index.template.php นะครับ

หาตรง

โค้ด: [เลือก]

// Work out where we currently are.
$current_action = 'home';


แก้ เป็น

โค้ด: [เลือก]

// Work out where we currently are.
$current_action = 'webboard';


แล้วหา ตรง    // Show the start of the tab section.  อ่ะคับ

แล้ว ลบ อันนี้ ออก

โค้ด: [เลือก]

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



แล้ว เพิ่มอันนี้ เข้าไป



โค้ด: [เลือก]

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="ตรงนี้แก้เป็น part ที่ต้องการนะครับ">หน้าแรก</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

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