Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Shadowc on March 27, 2004, 02:09:11 AM

Title: Disable hidden users
Post by: Shadowc on March 27, 2004, 02:09:11 AM
How do i disable hidden users option  ???
Title: Re: Disable hidden users
Post by: Beaman on March 27, 2004, 10:37:14 AM
Admin/ Edit Features and Options/ Enable Who's Online (uncheck)

Title: Re: Disable hidden users
Post by: figmentium on April 28, 2004, 05:21:36 PM
It would be great if the admin could remove this feature from users... who enable themselves to be invisible on the forum...instead of disabling the "who's online" function.
Title: Re: Disable hidden users
Post by: Oldiesmann on April 28, 2004, 07:02:39 PM
I just don't see why this would be useful - if you're an admin, you can see who's online even if they're hidden, right?
Title: Re: Disable hidden users
Post by: Peter Duggan on April 28, 2004, 07:09:35 PM
Why shouldn't users stay hidden if that's what they want? Since the availability of so much information about what they're doing could be construed as some kind of spying, it's not just a simple case of stating who's 'online'.
Title: Re: Disable hidden users
Post by: babylonking on April 28, 2004, 07:53:38 PM
with the extra code below only admin can hide his status  :)

in Themes/default/profile.template.php

search for
echo '
<tr>
<td width="40%"><b>', $txt['show_online'], '</b></td>
<td><input type="hidden" name="showOnline" value="0" /><input type="checkbox" name="showOnline"', $context['member']['show_online'] ? ' checked="checked"' : '', ' value="1" class="check" /></td>
</tr>';


replaced with
if ($context['user']['is_admin'])
   {
echo '
<tr>
<td width="40%"><b>', $txt['show_online'], '</b></td>
<td><input type="hidden" name="showOnline" value="0" /><input type="checkbox" name="showOnline"', $context['member']['show_online'] ? ' checked="checked"' : '', ' value="1" class="check" /></td>
</tr>';
}
Title: Re: Disable hidden users
Post by: Shadowc on April 29, 2004, 01:24:25 PM
Tnx.. babylonking