วิธีทำให้เปิดหน้าต่างใหม่หรือแท็บใหม่ เมื่อคลิ๊กที่กระทู้ ใน SMF 2.0.1 และ 2.0.2

  • 0 ตอบ
  • 1051 อ่าน
*

admin

  • *****
  • 505
    • ดูรายละเอียด
    • www.nitikon.com
เปิดไฟล์ ./Sources/MessageIndex.php

ค้นหา

คัดลอกโค้ดทั้งหมด

                  'time' => timeformat($row['first_poster_time']),
                        'timestamp' => forum_time(true, $row['first_poster_time']),
                        'subject' => $row['first_subject'],
                        'preview' => $row['first_body'],
                        'icon' => $row['first_icon'],
                        'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
                        'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
                        'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" target="_blank">' . $row['first_subject'] . '</a>'



เพิ่ม

คัดลอกโค้ดทั้งหมด

    target="_blank"



ลงไปหลัง '.0" ในส่วนของ

คัดลอกโค้ดทั้งหมด

    'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['first_subject'] . '</a>'




จะได้เป็น

คัดลอกโค้ดทั้งหมด

                  'time' => timeformat($row['first_poster_time']),
                        'timestamp' => forum_time(true, $row['first_poster_time']),
                        'subject' => $row['first_subject'],
                        'preview' => $row['first_body'],
                        'icon' => $row['first_icon'],
                        'icon_url' => $settings[$context['icon_sources'][$row['first_icon']]] . '/post/' . $row['first_icon'] . '.gif',
                        'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
                        'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" target="_blank">' . $row['first_subject'] . '</a>'



http://www.doothaithai.com/read.php?tid-993.html
อยากให้ชาตินี้เป็นชาติสุดท้ายของเรา