Hide 'hidden'!

Started by Col, April 01, 2005, 04:44:13 PM

Previous topic - Next topic

Col

Hi,

How would I go about removing the 'admins are spying on you, or don't wish to talk to you' ('hidden') notice that appears on 'user online' when an admin wants to be hidden. Seems like a damn silly function to me.

Thanks.

klumy

right

or count the hidden users to the guests

Ben_S

Quote from: Col on April 01, 2005, 04:44:13 PM
Hi,

How would I go about removing the 'admins are spying on you, or don't wish to talk to you' ('hidden') notice that appears on 'user online' when an admin wants to be hidden. Seems like a damn silly function to me.

Thats because you are misunderstanding how it works, when you choose to be hidden, it doesn't show anything on users online.
Liverpool FC Forum with 14 million+ posts.

Col

Ahum, yes it does. My fellow admin hid her account on our SMF test board, and I observed with a test member account.

Ben_S

You might want to try again, having admined an SMf board for over a year, I can say with confidence that it does not report users who are hidden as being online anywhere, unless the member concerned has moderate forum member permissions.

There is a hidden message for some actions on whos online, but it is not connected to that option.
Liverpool FC Forum with 14 million+ posts.

Col

I think we are talking cross purposes. I'm talking about the 'hidden' notice in 'users online'. If you don't have this option for all, it's a certain indicator that an admin is logged in. On some forums that could be just one possible person.

Thantos

Thats not technically in the who's online (aka ?action=who)

Though to fix:

Open $themedir/BoardIndex.template.php
Find

                        <a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />


replace

                        <a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], '</a><br />

Ben_S

#7
There isn't anything that even says hidden on the whos online page, there is only

$txt['who_hidden'] = '<em>Nothing, or nothing you can see...</em>';

Which in a version a long time ago, probably beta, read hidden IIR, and caused lots of confusion because people assumed it meant the member had chosen to hide their online status, when in reality, it means t hey were doing something like viewing the admin pages.

Users who have elected to hide their online status, are not shown on the whos online page.

What version are you running?


Ok, I see you are refering to the number of users on the whos online bit on the board index rather than whos online page.
Liverpool FC Forum with 14 million+ posts.

Thantos

Ben_S I think he meant at the bottom of the board index where is says ## Members, ## Guests (## Hidden).

Ben_S

Just realised and edited my post.
Liverpool FC Forum with 14 million+ posts.

Col

Thanks MikeMill, I'll try that.

Ben_S, I dunno what to say.

It displays in 'users online' in the info centre: 0 Guests, 2 Users (1 Hidden)
Users active in past 15 minutes: membertest.

I don't know what you mean by 'users online page'.

Col

Quote from: Ben_S on April 01, 2005, 05:26:00 PM
Just realised and edited my post.

That's OK, I thought we must be at cross purposes somewhere.

Ben_S

I thought you meant ?action=who

Sorry :).
Liverpool FC Forum with 14 million+ posts.

spiros

#13
How do you do it in SMF 1.1?

Edit: I found it, just remove this bit:

      // How about hidden users?
      if (!empty($context['num_users_hidden']))
         echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

Col

Hi,

I only tried this hack briefly a long time ago. As I recall, it didn't work exactly as I wanted it to, but I could be mistaken, it's been too long. You should have a look at this thread - I think the code posted there was what I ended up using.

spiros

Hi Col,

Yes, I tried this as well, the only problem is that when one is reading a certain post, you still get x guests and 1 hidden is reading this post.

Col

I didn't realise that's possible with SMF. It's not an option I like - I can't find the option anywhere! Can't you just turn off the option? Alternatively, you could make similar code changes to the board template file.


Advertisement: