News:

Join the Facebook Fan Page.

Main Menu

Hiding Admin completely

Started by rhizome, May 27, 2005, 06:06:33 AM

Previous topic - Next topic

rhizome

Hi

tried searching but no luck

Is it possible to hide the main Admin completely when online, so for the users online status, doesn't show up as a hidden user, or anywhere else on a board? Complete stealth  :)

thanks

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

rhizome

#2
Thanks for the link - but I think what I'm asking for is slightly different.

It would be for completely hiding/stealthing the main site Admin (me) from showing up anywhere on the board, (not another user with admin privileges which I believe the link is discussing).

I would still like users online to show up, and on each of the forums, but not in the case of the site Admin



[Unknown]

If you dont care about other admins seeing you, why do you mind if it says one hidden user?

-[Unknown]

rhizome

I've set up the forum so no users can be hidden. It's a politics orientated site so want things to be open as possible (apart from hiding me  :) )

I reckon it would it look really weird to all the other users seeing 'hidden user' on the board - and some of them would work outs its the site Admin

Thunderace

#5
Make a new user called "wholely unpolitical Aardvark"

:D

No-one will no it's you  :D

rhizome

Quote from: Thunderace on May 27, 2005, 06:33:43 PM
Make a new user called "wholely unpolitical Aardvaak"

:D

No-one will no it's you  :D

I wish that was true  ;D

Edit: So can it be done, or am I asking you all for a whole heap of hassle?
thanks

xenovanis

I guess in BoardIndex.template.php you'll need to edit these lines:


<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>


and remove the part that shows the hidden users. Because you will be the only hidden user it won't be disturbing, right?

What's an Aardvaak?
"Insanity: doing the same thing over and over again and expecting different results."

[Unknown]


xenovanis

lol, this is an english word? The dutch word is 'Aardvarken'. I'd love to hear how you pronounce this...  ;D
"Insanity: doing the same thing over and over again and expecting different results."

[Unknown]

Technically, it should be prounounced more like "airdvark" I guess, but that's not how I learned to pronounce it... I pronounce it "Rd vark" as in the letter R, then the sound d, v and ark.

-[Unknown]

IchBin™

Leave it to Unknown to explain anything....
IchBin™        TinyPortal

Amacythe

Quote from: IchBin on May 27, 2005, 09:17:23 PM
Leave it to Unknown to explain anything....

He is good at it though, don't you think? ;)

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

rhizome

Quote from: xenovanis on May 27, 2005, 06:50:43 PM
I guess in BoardIndex.template.php you'll need to edit these lines:


<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>


and remove the part that shows the hidden users. Because you will be the only hidden user it won't be disturbing, right?

What's an Aardvaak?

Well the Aardvaak question has been covered  ;D

And thanks xenovanis for the pointer. I did a bit of searching, and my query was sort of also answered before: http://www.simplemachines.org/community/index.php?topic=32067.0

Though the solution isn't quite perfect. Eg. if there are are two users, one normal, one stealthed admin, it still says 2 users, though only lists the normal users name. Will do I guess, unless someone can make the effort to modify the way the users are counted which excludes hidden users.

[Unknown]

Replace this:

', $context['num_users_online'], '

With:

', $context['num_users_online'] - $context['num_users_hidden'], '

-[Unknown]

rhizome

8)
Many thanks [Unknown]

I think I better learn php...erm, one day  :)

Dunno how you guys manage to keep up the support, an occasional click on the 'show unread posts' always lists a stack load of queries!

Gregory

Hi, I searched threads to research this. I also wanted to hide from my users but not have them know anything about hidden users.

Rather than use the provided help I thought I'd have a go at making a modification myself. So I might aswell share it with everyone who is going to search and find this in the future. (sorry for bumping an old thread).
This edit will count hidden users as guests, let me know if I have done something bad.

In the template directory /BoardIndex.template.php find
// "Users online" - in order of activity.
and above it add
    //Count any hidden users as guests.
   $context['num_guests'] = $context['num_guests'] + $context['num_users_hidden'];
   $context['num_users_online'] = $context['num_users_online'] - $context['num_users_hidden'];
   $context['num_users_hidden'] = 0;
Ant's Life - My morpg that is integrated with SMF for good communications between players and staff.

DangerGirl

#18
Editing this, as I've finally figured out how to do this the way I want it, and I figured I'd take everything and post it all in a format guys like me can understand.  If I am incorrect on any of this, please do let me know.  It is 3am now and I've been at it too long. :P

This is the good stuff, the one I wanted, which will keep Hidden Users from showing up under any of the counts.  This was by Unknown, in this thread:

In BoardIndex.template.php
Replace this:
', $context['num_users_online'], '

With:
', $context['num_users_online'] - $context['num_users_hidden'], '

Now, as opposed to not showing up in any of the counts at all, you may be so inclined to have the Hidden guys show up in the Guests count.  Guest won't show up in the Who's Online list, but there will be higher number listed than there will be names or Guests for, so users will know there are hidden people.  This is the above post by Gregory:

In the template directory /BoardIndex.template.php find
// "Users online" - in order of activity.
and above it add
    //Count any hidden users as guests.
   $context['num_guests'] = $context['num_guests'] + $context['num_users_hidden'];
   $context['num_users_online'] = $context['num_users_online'] - $context['num_users_hidden'];
   $context['num_users_hidden'] = 0;



Do note that Hidden Users will still be seen by Admins, and possibly global mods (I haven't tested GMs yet).

Which leads me into this other edit by Unknown, which makes Hidden Users hidden to even Global Mods that have moderate forum members privs.

Quote from: [Unknown] on January 02, 2005, 08:03:35 PM
Sources/BoardIndex.php:
Find:
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))

Replace:
elseif (!empty($row['showOnline']))

Find, Themes/yourtheme/Profile.template.php:
echo '
<tr>
<td><b>', $txt[233], ': </b></td>
<td>', $context['member']['registered'], '</td>
</tr><tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';


Replace:
echo '
<tr>
<td><b>', $txt[233], ': </b></td>
<td>', $context['member']['registered'], '</td>
</tr>';
if (!$context['member']['is_admin'])
echo '
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';


I have tested and used all of these above on my 1.05 forum, and I'm not sure if anything has changed in 1.06 and the RCs.

Now, if only we could get help to figure out a way to take away "Last Active:" in the profiles of those that are hidden users.  They should be shown to admins and maybe global mods, but to no one lower.  While my users can't see that I am online, they can most certainly go to my profile in the members list, from a post, or even Users Online Today and see that I was on about 15 seconds ago.  I think that if we could get help on this one, we could have ourselves a complete Hidden Admin mod.  I'd even finally put together my first actual mod if we could get that information.

profile

Quote from: [Unknown] on May 28, 2005, 10:28:36 AM
Replace this:

', $context['num_users_online'], '

With:

', $context['num_users_online'] - $context['num_users_hidden'], '

-[Unknown]

$txt['guests'], ', ' . $context['num_users_online'],' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Am I missing something?  My line is different.

Advertisement: