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

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

เริ่มโดย admin, 21-04-2018, 04:28:48

หัวข้อก่อนหน้า - หัวข้อถัดไป

admin

เปิดไฟล์ ./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
อยากให้ชาตินี้เป็นชาติสุดท้ายของเรา