Page 1 of 1

Who is Online on forum index

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

Re: Who is Online on forum index

Posted: Fri Dec 02, 2011 5:17 am
by Oyabun1
Admin Control Panel > General tab > Server Configuration > Load settings > Enable online user listings

Re: Who is Online on forum index

Posted: Sat Dec 03, 2011 2:06 am
by Lumpy Burgertushie
which is the default setting so someone must have changed it if members and guests can not see it.


robert

Re: Who is Online on forum index

Posted: Sun Dec 04, 2011 2:30 am
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.

Re: Who is Online on forum index

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

Re: Who is Online on forum index

Posted: Sun Dec 04, 2011 4:20 am
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 -->

Re: Who is Online on forum index

Posted: Tue Dec 06, 2011 1:53 am
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 586 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.