How to hide "who is online"

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Post Reply
4mpb5
Registered User
Posts: 149
Joined: Wed Sep 08, 2021 9:34 pm

How to hide "who is online"

Post by 4mpb5 »

Is there anyway to hide the section below , shown on each PHPBB page ?

WHO IS ONLINE
In total there is 4 user online :: 3 registered, 1 hidden and 0 guests (based on users active over the past 15 minutes)
Most users ever online was 223 on Wed Oct 1, 2020 12:33 pm

Registered users: xyz7, er3werd


I want to temporarily hide it till later or for now I want to get rid of that section

I was able to get rid of Birthdays section by deleting code from index.php file but I could do it for Who is online
Random American
Registered User
Posts: 239
Joined: Sat Aug 10, 2019 4:45 am

Re: How to hide "who is online"

Post by Random American »

ACP - Users and Groups - Group Permissions - Select group - advanced permissions and set "Can view profiles, member-list, and online list" to no. This will restrict some of the information listed if you do this for both registered users and guests.

That would prevent users from seeing the full online list and the usernames of people online, though the summary of registered, hidden, and guest numbers will remain.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: How to hide "who is online"

Post by Mick »

4mpb5 wrote: Fri Oct 15, 2021 4:57 pmI was able to get rid of Birthdays section by deleting code from index.php
No need for that, you can disable the display of birthdays:

ACP> General> Board configuration> Board features> Allow birthdays: yes/no
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
4mpb5
Registered User
Posts: 149
Joined: Wed Sep 08, 2021 9:34 pm

Re: How to hide "who is online"

Post by 4mpb5 »

Random American wrote: Fri Oct 15, 2021 5:48 pm ACP - Users and Groups - Group Permissions - Select group - advanced permissions and set "Can view profiles, member-list, and online list" to no. This will restrict some of the information listed if you do this for both registered users and guests.

That would prevent users from seeing the full online list and the usernames of people online, though the summary of registered, hidden, and guest numbers will remain.
This is not what I want .I want the "Who is online" & statitics & birthdays sectin nopt shown at all on any of the pages ....."period".
I was able to do this by deleting some code on some page but index.php only has birthdays code but not code for "who is online: & statistics section

Can someone sell me which file contains the code for this
User avatar
warmweer
Jr. Extension Validator
Posts: 11195
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: How to hide "who is online"

Post by warmweer »

4mpb5 wrote: Wed Jun 22, 2022 3:31 am Can someone sell me which file contains the code for this
How much are you offering? ;-)

Check index_body.html: at the bottom there are sections:

<!-- IF S_DISPLAY_ONLINE_LIST --> (about whoisonline)

<!-- IF S_DISPLAY_BIRTHDAY_LIST --> (about birthdays)

<!-- IF NEWEST_USER --> (about statistics)

Comment those and they won't be shown.

You do realise you will have to redo that with each update, and for each style.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Tread
Registered User
Posts: 101
Joined: Thu Nov 14, 2019 9:52 pm

Re: How to hide "who is online"

Post by Tread »

Just add this to any css file

Code: Select all

.online-list, .statistics, .birthday-list { 
	display: none!important; 
}
Results in
Screenshot from 2022-06-22 10-45-53.png
4mpb5
Registered User
Posts: 149
Joined: Wed Sep 08, 2021 9:34 pm

Re: How to hide "who is online"

Post by 4mpb5 »

Tread wrote: Wed Jun 22, 2022 9:37 am Just add this to any css file

Code: Select all

.online-list, .statistics, .birthday-list { 
	display: none!important; 
}
Results in
Screenshot from 2022-06-22 10-45-53.png
Which css file (or files) ?
If you know from your experience.
Otherwise it is OK I will search ;)
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: How to hide "who is online"

Post by Mick »

He says “to any css file”.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Mannix_
Registered User
Posts: 1834
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: How to hide "who is online"

Post by Mannix_ »

The css will hide but it will still be accessible for tech savvy people ;)
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
warmweer
Jr. Extension Validator
Posts: 11195
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: How to hide "who is online"

Post by warmweer »

4mpb5 wrote: Fri Oct 15, 2021 4:57 pmI was able to get rid of Birthdays section by deleting code from index.php
I doubt that deleting code from index.php is a viable option: if template variables are still present in the style files they will show up (without the data of course)
Either remove/comment the sections from the style files or restrict access using the group template variable extension. (the latter being the easiest system allowing to undo changes later if needed).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: How to hide "who is online"

Post by david63 »

Why not just disable the birthday listing from the ACP?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6669
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: How to hide "who is online"

Post by HiFiKabin »

Following Davids suggestion above together with
will do all you need
Post Reply

Return to “Extension Requests”