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.
Get Involved
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 » Fri Dec 02, 2011 4:39 am

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 » Fri Dec 02, 2011 5:17 am

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: 66738
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Who is Online on forum index

Post by Lumpy Burgertushie » Sat Dec 03, 2011 2:06 am

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.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
P_I
Registered User
Posts: 936
Joined: Tue Mar 01, 2011 8:35 pm
Location: Calgary
Contact:

Re: Who is Online on forum index

Post by P_I » Sun Dec 04, 2011 2:30 am

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: 10344
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 » Sun Dec 04, 2011 2:59 am

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: 936
Joined: Tue Mar 01, 2011 8:35 pm
Location: Calgary
Contact:

Re: Who is Online on forum index

Post by P_I » Sun Dec 04, 2011 4:20 am

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: 936
Joined: Tue Mar 01, 2011 8:35 pm
Location: Calgary
Contact:

Re: Who is Online on forum index

Post by P_I » Tue Dec 06, 2011 1:53 am

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 419 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”