<< วิธีแก้ไขให้คลิกกระทู้แล้วขึ้นหน้าเว็บใหม่ >>
เขียนโดย คุณ TinaCat
 
แก้ไขที่ไฟล์ Sources/MessageIndex.php ค่ะ
หาโค้ดส่วนนี้ออกมาค่ะ
 
[tt]'time' => timeformat($row['firstPosterTime']),
'timestamp' => forum_time(true, $row['firstPosterTime']),
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['firstSubject'] . '</a>'[/tt]


แทรกคำสั่ง target="_blank" ไว้ในส่วนของ <a href="...">
จะได้แบบนี้ค่ะ
 

[tt] 'time' => timeformat($row['firstPosterTime']),
'timestamp' => forum_time(true, $row['firstPosterTime']),
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0" target="_blank">' . $row['firstSubject'] . '</a>'[/tt]


Save ไฟล์  แล้ว Refresh หน้าเว็บ
ลองคลิกที่กระทู้  จะเปิดหน้าใหม่ให้เองเลยค่ะ