Show Users Browsing Topic แสดงผลว่า User ใช้ Browsing อะไรในการใช้งาน

แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

ภาพประจำตัวสมาชิก
M004
PHP VIP Members
PHP VIP Members
โพสต์: 1323
ลงทะเบียนเมื่อ: 01/01/1970 7:00 am

Show Users Browsing Topic แสดงผลว่า User ใช้ Browsing อะไรในการใช้งาน

โพสต์ที่ยังไม่ได้อ่าน โดย M004 »

รายละเอียดเกี่ยวกับ Show Users Browsing Topic แสดงผลว่า User ใช้ Browsing อะไรในการใช้งาน
พัฒนาโดย : nanothree
Version : 1.0.0RC1
phpBB Version(s) : phpBB 3.0.5 ขึ้นไป
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2185141
2.jpg
2.jpg (8.74 KiB) Viewed 919 times
ขั้นตอนติดตั้ง
เปิดไฟล์ viewtopic.php
ค้นหา

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

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id); 
แทนที่

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

/* nanothree - users viewing topic mod */
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $topic_id, 'topic');
/* nanothree - end users viewing topic mod */ 
เปิดไฟล์ includes/session.php
ค้นหา

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

'forum'                => (isset($_REQUEST['f']) && $_REQUEST['f'] > 0) ? (int) $_REQUEST['f'] : 0, 
เติมหลังค้นหา

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

 /* nanothree - users viewing topic mod */
 'topic'                => (isset($_REQUEST['t']) && $_REQUEST['t'] > 0) ? (int) $_REQUEST['t'] : 0,
 /* nanothree - end users viewing topic mod */ 
ค้นหา

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

$sql_ary['session_forum_id'] = $this->page['forum'];
 
เติมหลังค้นหา

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

/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */ 
ค้นหา

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

unset($sql_ary['session_forum_id']);
 
เติมหลัง

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

/* nanothree - users viewing topic mod */
unset($sql_ary['session_topic_id']);
/* nanothree - end users viewing topic mod */ 
ค้นหา

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

$sql_ary['session_forum_id'] = $this->page['forum']; 
เติมก่อน

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

/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */ 
ค้นหา

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

$sql_ary['session_forum_id'] = $this->page['forum']; 
เติมหลัง

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

/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */ 
ค้นหา

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

$sql_ary['session_forum_id'] = $this->page['forum'];
 
เติมหลัง

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

/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */ 
เปิดไฟล์ includes/functions_display.php
ค้นหา

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

$last_post_url = append_sid( 
แทนที่

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

$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id']; 
เปิดไฟล์ language/en/common.php
ค้นหา

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

'BROWSING_FORUM_GUESTS'    => 'Users browsing this forum: %1$s and %2$d guests', 
เติมหลัง

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

/* nanothree - users viewing topic mod */
        'BROWSING_TOPIC'        => 'Users viewing this topic: %1$s',
    'BROWSING_TOPIC_GUEST'    => 'Users viewing this topic: %1$s and %2$d guest',
    'BROWSING_TOPIC_GUESTS'    => 'Users viewing this topic: %1$s and %2$d guests',
        /* nanothree - end users viewing topic mod */ 
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 66