MyBB Community Forums

Full Version: Remove time spent online [ADMINS]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
Do any of you know how to hide online time for the admin usergroup only? I have googled a little and I only know how to hide all of it. It's nice to have as statistics though. So only for admins?
Install PHP In templates plugin and then in your theme's Member Templates > member_profile > find the following;
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
and Change it into;
<if $memprofile['usergroup'] != "4" then>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
</if>
Quote:Install PHP In templates plugin

How do I do that? I can't find such a plugin.

Thank you!

- Freezing