ชมรมนิติกรองค์กรปกครองส่วนท้องถิ่น:เว็บไซท์อันดับ๑ของวงการท้องถิ่น

ส่วนของเว็บมาสเตอร์ => เว็บที่เรานำมาให้แก้ไขเว็บไซท์ => หัวข้อที่ตั้งโดย: admin เมื่อ 21-04-2018, 04:28:48

ชื่อ: วิธีทำให้เปิดหน้าต่างใหม่หรือแท็บใหม่ เมื่อคลิ๊กที่กระทู้ ใน SMF 2.0.1 และ 2.0.2
โดย: admin เมื่อ 21-04-2018, 04:28:48
เปิดไฟล์ ./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 (http://www.doothaithai.com/read.php?tid-993.html)