Show all online users everywhere

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the phpBB 3.1.x discussion forum.
Gledo
New member
New member
Posts: 1
Joined: 17 Apr 2012, 19:27

Show all online users everywhere

Postby Gledo » 17 Apr 2012, 19:38

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

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Show all online users everywhere

Postby RMcGirr83 » 23 May 2012, 10:47

Within viewtopic.php you will find this toward the bottom of the file

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.


Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 2 guests