News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to hide forum Stats

Started by my_bk2000, February 12, 2010, 02:12:18 PM

Previous topic - Next topic

my_bk2000

 I am using SMF 2.0 RC2, How can I hide (not show) the stats:
like:

1) Forum Stats (showing how many Posts , how many topics and how many members etc)
and
2) Users Online stats :(showing how many users online, how many guest online, Most Online Today: XXX, Most Online Ever: XXX )

Thank you in advance

KensonPlays

Well, one of the possible ways would be to probably just comment out the code that makes it appear!
"//" at the beginning of each line that affects it...

Owner of Mesozoic Haven

my_bk2000

Thank you for your suggestion.

Is there any easy way to achieve this ?


gm112

Quote from: my_bk2000 on February 13, 2010, 03:12:11 PM
Thank you for your suggestion.

Is there any easy way to achieve this ?
In BoardIndex.template.php, find

<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '

';

And change it to

<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<!-- <a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a> -->' : '', '

';



That gets rid of [More Stats], I believe... why do you want #2 to be done?

Kratty256

To get #2 done go to Admin -> Configuration -> Features and Options -> Layout

Scroll down and uncheck Enable who's online list.

scotchmonster

The number 2 solution of unticking the box doesnt seem to work for me. The amount of users and who they are is still showing.

Any further suggestions? I've been requested this often for privacy

Deaks

go to admin -> permissions and you can set it so regular members cannot see the stats only admins.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: