I have a Question regarding this article: http://phpbbmodders.net/articles/3.0/wh ... _anywhere/
I have a html file (a sidebar) witch is displayed everywhere in the Board. I added the {LOGGED_IN_USER_LIST} in the html and the online users show up, if I'm on the index page. If I go to a topic, in the sidbar I see the users browsing that topic. But I would like to see all online users no matter where I'm in the board rifht now.
eg
I'm on the index I see in the sidebar User 1, User 2 and User 3
if I go to a topic I only see User 1 cause he is browsing that topic but I would prefer to see User 1, User 2 and User 3 (all online Users) no matter where I'm on the board.
Do I need to create a new function in includes/function.php?
Best regards
Gledo
Show all online users everywhere
Forum rules
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Re: Show all online users everywhere
Within viewtopic.php you will find this toward the bottom of the file
by simply changing the above to
you will then see all users that are logged in when viewing a topic.
Code: Select all
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
by simply changing the above to
Code: Select all
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title']);
you will then see all users that are logged in when viewing a topic.