Hide "Statistics" and "Who is online"

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
jz2007
Registered User
Posts: 6
Joined: Fri Dec 07, 2007 4:47 pm

Hide "Statistics" and "Who is online"

Post by jz2007 »

Hi,

I'm try to create a style from ProSilver available in RC8. To hide both "Statistics" and "Who is online" on board index, I've removed the following code inside in template/index_body.html. It works but I was wondering if there was another way to do it for "Who is online" because of the IF S_DISPLAY_ONLINE_LIST condition. I don't see any on/off toggle in administation panel.

Thanks a lot for any advice.

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

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
Last edited by Raimon on Tue Nov 04, 2008 7:18 pm, edited 1 time in total.
Reason: Topic icon changed
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Hide "Statistics" and "Who is online"

Post by Raimon »

jz2007 wrote:Hi,

I'm try to create a style from ProSilver available in RC8. To hide both "Statistics" and "Who is online" on board index, I've removed the following code inside in template/index_body.html. It works but I was wondering if there was another way to do it for "Who is online" because of the IF S_DISPLAY_ONLINE_LIST condition. I don't see any on/off toggle in administation panel.

Thanks a lot for any advice.
Yes,

Login into your administrationpanel
click on the left bottom side on the link ; Load settings
Search for the text ; Enable online user listings:
And select NO , new is the online list invisible ;)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
webmestre
Registered User
Posts: 90
Joined: Sun Jun 17, 2007 7:17 am
Location: Catalonia
Contact:

Re: Hide "Statistics" and "Who is online"

Post by webmestre »

What about STATISTICS?

How can we hide Total posts 1 • Total topics 1 • Total members 1 • Our newest member?
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Hide "Statistics" and "Who is online"

Post by prototech »

Remove

Code: Select all

<!-- IF NEWEST_USER -->
   <h3>{L_STATISTICS}</h3>
   <p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
jz2007
Registered User
Posts: 6
Joined: Fri Dec 07, 2007 4:47 pm

Re: Hide "Statistics" and "Who is online"

Post by jz2007 »

Thanks a lot.

Another question, is it possible to hide "Who is online" except for moderators ?
copy112
Registered User
Posts: 18
Joined: Tue Apr 03, 2007 8:29 pm

Re: Hide "Statistics" and "Who is online"

Post by copy112 »

Yes in index_body.html

Find:

Code: Select all

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
Replace whit:

Code: Select all

<!-- IF MODERATORS -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
That should do it.
Last edited by Raimon on Tue Nov 04, 2008 7:18 pm, edited 1 time in total.
Reason: Code tags added.
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Hide "Statistics" and "Who is online"

Post by prototech »

That doesn't work... and you're using the wrong code...

Change:

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 U_MCP -->
	<!-- 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 -->
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
nizewow
Registered User
Posts: 3
Joined: Sat Sep 27, 2008 3:33 pm

Re: Hide "Statistics" and "Who is online"

Post by nizewow »

this doesn't work with version 3.0.2, does anyone have a solution that works to make this entire line visible only to moderators and admins?

STATISTICS
Total posts 1 • Total topics 1 • Total members 1 • Our newest member NewMember
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Hide "Statistics" and "Who is online"

Post by prototech »

In index_body.html, find:

Code: Select all

<!-- IF NEWEST_USER -->
Replace with:

Code: Select all

<!-- IF NEWEST_USER and U_MCP -->
Then refresh your template - ACP => Styles => Style Components => Templates.
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
nizewow
Registered User
Posts: 3
Joined: Sat Sep 27, 2008 3:33 pm

Re: Hide "Statistics" and "Who is online"

Post by nizewow »

hah, that worked! thank you very much prototech !
edoctoor
Registered User
Posts: 2
Joined: Wed Mar 25, 2009 9:15 pm

Re: Hide "Statistics" and "Who is online"

Post by edoctoor »

I have phpbb3 and Subsilver2 installed; I am not a programmer but this worked for me:

CREATE BACKUP

Code: Select all

One: Open your FTP and go to the following directory:
/domains/<your_sub_domain>.izfree.com/public_html/forum/styles/subsilver2/template

Two:
Transfer "index_body.html" to your local computer to rename it to "index_body.org.html"

Three:
Transfer "index_body.org.html" back to the 
/domains/<your_sub_domain>.izfree.com/public_html/forum/styles/subsilver2/template
EDIT FILE

Four:
Transfer "index_body.html" to your computer and then open with notepad it on the local computer side

Five:

Find

Code: Select all

<br clear="all" />

<table class="tablebg" width="100%" cellspacing="1">
<tr>
	<td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
</tr>
<tr>
	<td class="row1"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_STATISTICS}" /></td>
	<td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>
Change to

Code: Select all

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

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
	</tr>
	<tr>
		<td class="row1"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_STATISTICS}" /></td>
		<td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
	</tr>
	</table>
<!-- ENDIF -->

Six:
Transfer "index_body.html" back to the
/domains/<your_sub_domain>.izfree.com/public_html/forum/styles/subsilver2/template

Seven:
Log on with admin; Styles; Templates; select subsilver2 [REFRESH]

TEST

Eight:
Log out
Refresh browser and it should be gone.
Last edited by edoctoor on Fri May 01, 2009 8:47 pm, edited 1 time in total.
edoctoor
Registered User
Posts: 2
Joined: Wed Mar 25, 2009 9:15 pm

Re: Hide "Statistics" and "Who is online"

Post by edoctoor »

As per my last instructions; do this to hide "whos online"

Find

Code: Select all

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

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
	</tr>
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" 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 -->
	</table>
<!-- ENDIF -->
Change to

Code: Select all

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

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
	</tr>
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" 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 -->
	</table>
<!-- ENDIF -->
admin: refresh template:

I hope this helps

Code: Select all

For those that figured it out I imagine that you can also change the lines:
<!-- IF U_MCP --> to <!-- IF S_DISPLAY_ONLINE_LIST --> 
toggle for all using [Load setting][Enable online user listings:]
jnmann
Registered User
Posts: 136
Joined: Mon Dec 28, 2009 5:42 pm

Re: Hide "Statistics" and "Who is online"

Post by jnmann »

Is it possible to edit the wording "x users online based upon last 15 minutes" etc. to something different?
User avatar
Lumpy Burgertushie
Registered User
Posts: 68282
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Hide "Statistics" and "Who is online"

Post by Lumpy Burgertushie »

jnmann wrote:Is it possible to edit the wording "x users online based upon last 15 minutes" etc. to something different?
yep, look in your language files

language/yourlang/common.php

be sure that you download the file using a ftp program and edit it using a good text editor.
the ones that come with windows will corrupt the file.

get notepad++ or edipad lite ( google , they are free )
then search for the bit of text you want.

only edit the actual text on the right hand side. leave the single quotes/apostrophes in place.
if you need to make a new line, do NOT use your return/enter key on the keyboard. use <br /> instead.

save the file, upload it back using your ftp

admin panel/general tab/purge the cache
you are done.

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?
ali12345
Registered User
Posts: 183
Joined: Sat Dec 07, 2013 10:52 am

Re: Hide "Statistics" and "Who is online"

Post by ali12345 »

How can i hide only Who was online last 24 hours
Locked

Return to “[3.0.x] Styles Support & Discussion”