Hide who is online

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Hide who is online

Post by TheButcher2 »

Hi

Is there a way that only admins can see who is online.

Thanks
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52808
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Hide who is online

Post by stevemaury »

OPEN styles/prosilver/template/index_body.html

FIND:

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 -->
REPLACE WITH:

Code: Select all

<!-- IF U_ACP --><!-- 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 --><!-- ENDIF -->
Purge the cache.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

Thanks Steve, I probably should have said the theme I am using. 
It's Black pearl, I can't find it in the index_body page, any other place it could be?



This is my index_body.html code

Thanks


Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF U_MCP -->
	<div id="pageheader">
		<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
	</div>

	<br clear="all" /><br />
<!-- ENDIF -->

<!-- INCLUDE breadcrumbs.html -->

<!-- INCLUDE forumlist_body.html -->



<br clear="all" />





</div>
</div>

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<br clear="all" />

<form method="post" action="{S_LOGIN_ACTION}">

<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></div></div></div></div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
	<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/login.png" alt="{L_STATISTICS}" /></td>
	<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
</tr>
<tr><td class="cat-bottom" colspan="2">&nbsp;</td></tr>
</table>
<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>

{S_LOGIN_REDIRECT}
{S_FORM_TOKEN}
</form>
<!-- ENDIF -->



<!-- INCLUDE overall_footer.html -->
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52808
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Hide who is online

Post by stevemaury »

It's in a couple of places in that theme.

OPEN viewforum_body.html

FIND:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr><td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td></tr>
   <tr><td class="cat-bottom">&nbsp;</td></tr>
   </table>
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
<!-- ENDIF -->
REPLACE WITH:

<!-- IF U_ACP -->

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr><td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td></tr>
   <tr><td class="cat-bottom">&nbsp;</td></tr>
   </table>
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
<!-- ENDIF --> <!-- ENDIF --> 

OPEN index_body.html

FIND:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <div id="viewonline_h" style="display: none;">
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MAX}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr><td class="row1"><span class="gensmall">&nbsp;</span></td></tr>
   </table>
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
   </div>

   <div id="viewonline_nh">
   <script type="text/javascript">
   <!--
   tmp = 'viewonline';
   if(GetCookie(tmp) == '2')
   {
      ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');
   }
   //-->
   </script>
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MIN}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF -->
REPLACE WITH:

Code: Select all

<!-- IF U_ACP --><!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <div id="viewonline_h" style="display: none;">
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MAX}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr><td class="row1"><span class="gensmall">&nbsp;</span></td></tr>
   </table>
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
   </div>

   <div id="viewonline_nh">
   <script type="text/javascript">
   <!--
   tmp = 'viewonline';
   if(GetCookie(tmp) == '2')
   {
      ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');
   }
   //-->
   </script>
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MIN}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --><!-- ENDIF -->
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

Thanks Steve I did those 2 modifications and cleared the cache, it still shows the logged in users, just not there other details.

Peace
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

By that I mean, I see when I log in as a registered user the people on line, just not their ip,browser type and minor details it had before.

When I log in as admin I see the other details.


Peace
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52808
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Hide who is online

Post by stevemaury »

OK, try this, and if that doesn't do it, I have to refer you to the style author.

OPEN styles/black_pearl/template/viewonline_body.html

FIND:

Code: Select all

<h4>{TOTAL_REGISTERED_USERS_ONLINE}</h4>
<h4>{TOTAL_GUEST_USERS_ONLINE}
REPLACE WITH:

Code: Select all

<!-- IF USER_ACP --><h4>{TOTAL_REGISTERED_USERS_ONLINE}</h4>
<h4>{TOTAL_GUEST_USERS_ONLINE}<!-- ENDIF -->
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

Thanks for the help Steve but that sort of didn't work, now I see.

When I login as admin I see
There are 3 registered users and 1 hidden user online
There are 3 guest users online [ Display guests ]

Who is online
Username Last updated Forum location
Legend :: Administrators, Global moderators
Nothing about who is online.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52808
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Hide who is online

Post by stevemaury »

Then you'll have to ask the style author.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
Ibedejo
Registered User
Posts: 243
Joined: Tue Feb 21, 2012 12:12 am

Re: Hide who is online

Post by Ibedejo »

Hi,

I guess part of the code replacement as suggested by Steve wasn't enclosed by the code tags ;)

in index_body.html
find

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<div id="viewonline_h" style="display: none;">
	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MAX}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr><td class="row1"><span class="gensmall">&nbsp;</span></td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
	</div>

	<div id="viewonline_nh">
	<script type="text/javascript">
	<!--
	tmp = 'viewonline';
	if(GetCookie(tmp) == '2')
	{
		ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');
	}
	//-->
	</script>
	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MIN}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
		<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
	</tr>
	<!-- IF LEGEND -->
		<tr><td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td></tr>
	<!-- ENDIF -->
	<tr><td class="cat-bottom" colspan="2">&nbsp;</td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
	</div>
<!-- ENDIF -->
replace with

Code: Select all

<!-- IF U_ACP -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<div id="viewonline_h" style="display: none;">
	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MAX}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr><td class="row1"><span class="gensmall">&nbsp;</span></td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
	</div>

	<div id="viewonline_nh">
	<script type="text/javascript">
	<!--
	tmp = 'viewonline';
	if(GetCookie(tmp) == '2')
	{
		ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');
	}
	//-->
	</script>
	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MIN}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
		<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
	</tr>
	<!-- IF LEGEND -->
		<tr><td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td></tr>
	<!-- ENDIF -->
	<tr><td class="cat-bottom" colspan="2">&nbsp;</td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
	</div>
<!-- ENDIF -->
<!-- ENDIF -->
in viewforum_body.html
find

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr><td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td></tr>
	<tr><td class="cat-bottom">&nbsp;</td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
<!-- ENDIF -->
replace with

Code: Select all

<!-- IF U_ACP -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
	<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
	<tr><td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td></tr>
	<tr><td class="cat-bottom">&nbsp;</td></tr>
	</table>
	<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
<!-- ENDIF -->
<!-- ENDIF -->
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

Hi Ibedejo

I did those 2 changes, when i log in as a test registered member I can still see the se bots and users online,

thanks
User avatar
Ibedejo
Registered User
Posts: 243
Joined: Tue Feb 21, 2012 12:12 am

Re: Hide who is online

Post by Ibedejo »

Strange - these two edits do what they are supposed to do on a fresh test board.

Did you purge your style's template cache in ACP?
Sometimes you need to purge the browser cache as well.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26915
Joined: Fri Aug 29, 2008 9:49 am

Re: Hide who is online

Post by Mick »

stevemaury wrote:Then you'll have to ask the style author.
https://www.phpbb.com/customise/db/styl ... l/support/
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
TheButcher2
Registered User
Posts: 1037
Joined: Tue May 13, 2014 11:38 pm

Re: Hide who is online

Post by TheButcher2 »

Mick wrote:
stevemaury wrote:Then you'll have to ask the style author.
https://www.phpbb.com/customise/db/styl ... l/support/
Okay thanks I'll do that.

I sent you a PM just now Mick, you locked my other thread for the wrong reasons.

This thread viewtopic.php?f=46&t=2250386 is not a duplicate of the one here.

But that's fine, can anyone please tell me


Theme is Black Pearl

I edited this stuff out before but today after doing some editing it came back. The only 2 pages I edited today were.

viewforum_body.html and index_body.html


How do i remove all that stuff in the quote that appears at the bottom of the page, thanks.


Who is online
Who is online
Who is online In total there are 7 users online :: 3 registered, 1 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on Tue May 27, 2014 6:21 pm

Registered users: Google [Bot], Google Feedfetcher, Majestic-12 [Bot], TheButcher
Legend :: Administrators, Global moderators



Birthdays
Birthdays
Birthdays

No birthdays today



Statistics
Statistics
Statistics

Total posts 165 | Total topics 30 | Total members 37 | Our newest member mimi



Board index » Index page
It is currently Wed Jul 02, 2014 9:36 pm | All times are UTC - 5 hours [ DST ]
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26915
Joined: Fri Aug 29, 2008 9:49 am

Re: Hide who is online

Post by Mick »

Please ask the style author as has already been suggested at least twice.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧

Return to “[3.0.x] Support Forum”