News:

Join the Facebook Fan Page.

Main Menu

Hide user statistics

Started by joker, September 25, 2004, 04:47:33 AM

Previous topic - Next topic

joker

Some of my 'power-users' would like to hide their statistics
- in the board index (total time logged in)
- in the user profile
Is it possible to make this information visible only for mods/admins?
joker ;-)

A.M.A

you can modify all groups permission to not see others profile .. in the Boardindex it is already shown to them only.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

joker

Quote from: A.M.A on September 25, 2004, 05:41:51 AM
in the Boardindex it is already shown to them only.
I know. But they even do not want to see it themselves (or have it watched by sb in their back) ;)
joker ;-)

joker

Would the line disappear if i draw this:

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}

from the index.template?
joker ;-)

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Advertisement: