Does it only show the number of users browsing the topic, or their usernames too?This MOD shows the number of other users browsing the same topic as the user.
Ok thanks a lot, I will make the modifications from the install_mod.xml now. If it works on 3.0.10 I will post what changes need to be done here just in case it ends up not being available on your board in the future.Jessica wrote:it shows the usernames too
Code: Select all
ALTER TABLE phpbb_sessions ADD session_topic_id INTEGER NOT NULL DEFAULT 0;
/viewtopic.php
Code: Select all
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
Code: Select all
/* 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
Code: Select all
'forum' => (isset($_REQUEST['f']) && $_REQUEST['f'] > 0) ? (int) $_REQUEST['f'] : 0,
Code: Select all
/* nanothree - users viewing topic mod */
'topic' => (isset($_REQUEST['t']) && $_REQUEST['t'] > 0) ? (int) $_REQUEST['t'] : 0,
/* nanothree - end users viewing topic mod */
Code: Select all
$sql_ary['session_forum_id'] = $this->page['forum'];
Code: Select all
/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */
Code: Select all
unset($sql_ary['session_forum_id']);
Code: Select all
/* nanothree - users viewing topic mod */
unset($sql_ary['session_topic_id']);
/* nanothree - end users viewing topic mod */
Code: Select all
$sql_ary['session_forum_id'] = $this->page['forum'];
Code: Select all
/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */
Code: Select all
$sql_ary['session_forum_id'] = $this->page['forum'];
Code: Select all
/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */
Code: Select all
$sql_ary['session_forum_id'] = $this->page['forum'];
Code: Select all
/* nanothree - users viewing topic mod */
$sql_ary['session_topic_id'] = $this->page['topic'];
/* nanothree - end users viewing topic mod */
/language/en/common.php
(analogous changes need to be made to common.php for other languages used on your board as well)Code: Select all
'BROWSING_FORUM_GUESTS' => 'Users browsing this forum: %1$s and %2$d guests',
Code: Select all
/* nanothree - users viewing topic mod */
'BROWSING_TOPIC' => 'Users reading this topic: %1$s',
'BROWSING_TOPIC_GUEST' => 'Users reading this topic: %1$s and %2$d guest',
'BROWSING_TOPIC_GUESTS' => 'Users reading this topic: %1$s and %2$d guests',
/* nanothree - end users viewing topic mod */
Code: Select all
$last_post_url = append_sid(
Code: Select all
$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'];
thanks for the fix!!Veeno wrote:UPDATE: (excuse the triple-post)
You might also want to do this:
In includes/functions_display.php find the line which containsand change that line toCode: Select all
$last_post_url = append_sid(
The topic id is missing from the original last post URL on the board index and even though the link works without it, the user who follows the link won't get added to the list of people reading the topic because the script can't obtain the id of the topic without it being in the URL. This fixes that.Code: Select all
$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'];
No problem! ^_^Jessica wrote:thanks for the fix!!
license.txt contains GNU GPL v2, so all I need to do is publish it under GPL v2 or v3, but I will credit him/her just because I think that's the polite thing to do.Jessica wrote:idk, don't we need the original author's permission to take over or something? (nanothree)