Who is Online on forum index

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
jonano
Registered User
Posts: 184
Joined: Wed Mar 31, 2004 9:34 am
Contact:

Who is Online on forum index

Post by jonano »

how to display who is online at the bottom ? to everybody ? I wait your answer, you can respond during all the day. Who is Online on forum index.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Who is Online on forum index

Post by Oyabun1 »

Admin Control Panel > General tab > Server Configuration > Load settings > Enable online user listings
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Lumpy Burgertushie
Registered User
Posts: 68294
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Who is Online on forum index

Post by Lumpy Burgertushie »

which is the default setting so someone must have changed it if members and guests can not see it.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
P_I
Registered User
Posts: 1323
Joined: Tue Mar 01, 2011 8:35 pm
Location: Staying home - Western Canada
Contact:

Re: Who is Online on forum index

Post by P_I »

Is there a method to allow logged in users to see who is Online, but prevent Guests and Bots from seeing the information? I know it is possible via a change to the index_body.html template, but we'd rather do it via ACP.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10416
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Who is Online on forum index

Post by Noxwizard »

Admin Control Panel > Permissions > Groups' permissions > Guests > Advanced Permissions > Profile > Can view profiles, memberlist and online list > No
Then do the same for the Bots usergroup.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
P_I
Registered User
Posts: 1323
Joined: Tue Mar 01, 2011 8:35 pm
Location: Staying home - Western Canada
Contact:

Re: Who is Online on forum index

Post by P_I »

I double checked our settings and for Guests the indicated settings match ours.

When a guest user hits the Board index page, (index.php), they see "WHO IS ONLINE" which shows some counts and then the "Registered users: " list shows the members who are currently online. If they attempt to click on a user, they get the message "The board requires you to be registered and logged in to view profiles."

We'd like to stop guests from seeing the 'Registered users' list. Our solution has been to change index_body.html

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
    <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
    <p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
    <!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
to

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
    <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
    <p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br />
<!-- Only show Registered users list to non-bot, logged in users -->
    <!-- IF S_USER_LOGGED_IN and not S_IS_BOT -->
        <br />{LOGGED_IN_USER_LIST}
    <!-- ENDIF -->

    <!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
P_I
Registered User
Posts: 1323
Joined: Tue Mar 01, 2011 8:35 pm
Location: Staying home - Western Canada
Contact:

Re: Who is Online on forum index

Post by P_I »

I picture's worth a thousand words they say, so here goes, using this site as the example.
phpbb.com - Who is online.PNG
phpbb.com - Who is online.PNG (29.43 KiB) Viewed 593 times
I'm trying to prevent bots and guests from seeing the Registered Users: list. From the settings discussed above, I don't think any of them control displaying this information, so we've have to resort to changing the template.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
Locked

Return to “[3.0.x] Support Forum”