Invisible users for guests after updating to 3.2.1

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
nl1sms
Registered User
Posts: 127
Joined: Wed May 25, 2005 4:24 pm
Location: Holland

Invisible users for guests after updating to 3.2.1

Post by nl1sms »

After installing phpBB 3.2.1 i noticed that guests don't see the registered users who are online.

For example guests see:

In totaal zijn er 14 gebruikers online :: 2 geregistreerd, 0 verborgen en 12 gasten (gebaseerd op actieve gebruikers in de laatste 5 minuten)
Het grootste aantal gebruikers online was 319 op zo jul 01, 2007 12:19 pm

While before the 3.2.1 update guests could see who are online. I can change the settings in ACP, Permissions and guest user permissions and turn it on there but then they are also able to see the memberlist. I don't want that. I want guests to see who's online but not be able to view the memberlist. How can i do this? Years ago there was a mod for this but i guess these days it must be done with an extension?

I think it's strange because i haven't changed anything at all and suddenly this appears.

Can anyone help?
User avatar
KevC
Support Team Member
Support Team Member
Posts: 70003
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Invisible users for guests after updating to 3.2.1

Post by KevC »

Yes it's a new feature.
viewtopic.php?f=64&t=2429996
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"
User avatar
nl1sms
Registered User
Posts: 127
Joined: Wed May 25, 2005 4:24 pm
Location: Holland

Re: Invisible users for guests after updating to 3.2.1

Post by nl1sms »

Thx. Anyone know a solution? Probably have to mod something?
User avatar
KevC
Support Team Member
Support Team Member
Posts: 70003
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Invisible users for guests after updating to 3.2.1

Post by KevC »

If you see Jim's reply in that topic he mentions the discussion on it being that there is just a simple addition of a code switch so that if you don't want it hidden you can just remove the two added lines.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"
User avatar
nl1sms
Registered User
Posts: 127
Joined: Wed May 25, 2005 4:24 pm
Location: Holland

Re: Invisible users for guests after updating to 3.2.1

Post by nl1sms »

I'm sorry but I read the topic a couple of times but i can't find which 2 lines i have to remove and where?
User avatar
KevC
Support Team Member
Support Team Member
Posts: 70003
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Invisible users for guests after updating to 3.2.1

Post by KevC »

It's in the pull request he linked to.
https://github.com/phpbb/phpbb/pull/4782/files
It shows the lines removed (red) and the lines added (green) and the files they've come from.

You can also copy over the same sections from 3.2.0 and it should work fine.

I wouldn't be surprised if someone wrote and extension to turn it back on again. It might be a popular one, although there are good security reasons for having it. There's no real reason for the guests to be able to see who is online at the moment.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7763
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Invisible users for guests after updating to 3.2.1

Post by JimA »

Like Kevin said, this was an intentional change in 3.2.1, where we would actually respect the permission "Can see the memberlist, user profiles and online list". Guests have that set to No by default which is why the memberlist is hidden from them now when you keep that permission set to No.

To change that back, find the following code in your index_body.html template file:

Code: Select all

{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> 
<!-- IF U_VIEWONLINE -->
	<br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
<!-- ENDIF -->
Replace it with:

Code: Select all

{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
Afterwards, be sure to purge the cache at the front page of your ACP. :)
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
nl1sms
Registered User
Posts: 127
Joined: Wed May 25, 2005 4:24 pm
Location: Holland

Re: Invisible users for guests after updating to 3.2.1

Post by nl1sms »

Thanx Jim. That seems to work just fine. Me happy.
Post Reply

Return to “[3.2.x] Support Forum”