Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Elijah Bliss on December 30, 2004, 07:26:14 PM

Title: Admin "spy mode?"
Post by: Elijah Bliss on December 30, 2004, 07:26:14 PM
Is there a way were an admin can be hidden from everyone including Global Moderators?
Title: Re: Admin "spy mode?"
Post by: [Unknown] on January 02, 2005, 02:02:00 AM
Well, yes, if the Global Moderators don't have permission to moderate forum members.

-[Unknown]
Title: Re: Admin "spy mode?"
Post by: Elijah Bliss on January 02, 2005, 03:20:42 AM
Quote from: [Unknown] on January 02, 2005, 02:02:00 AM
Well, yes, if the Global Moderators don't have permission to moderate forum members.

-[Unknown]

I take it that is requires quite a bit of code modification if Global Moderators have permission to moderate forum members.

I know it's a low priority but I think it would be pretty useful for admins who are constantly hassled trying to get work on their forums, and also somehow remove of hide "Last Active" in the admin's profile, or make it not visible for other members to see, because eve though you can hide your status the "Last Active" in the profile gives you away.
Title: Re: Admin "spy mode?"
Post by: [Unknown] on January 02, 2005, 08:03:35 PM
Sources/BoardIndex.php:

elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))

Replace:

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

Find, Profile template:

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


-[Unknown]
Title: Re: Admin "spy mode?"
Post by: Elijah Bliss on January 03, 2005, 02:59:08 AM
Quote from: [Unknown] on January 02, 2005, 08:03:35 PM
Sources/BoardIndex.php:

elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))

Replace:

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

Find, Profile template:

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


-[Unknown]

Thanks! I'm going to tinker with this and see is I can make a spy mod.
Title: Re: Admin "spy mode?"
Post by: Red on April 15, 2005, 10:45:25 AM
Quote from: [Unknown] on January 02, 2005, 08:03:35 PM

Find, Profile template:

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


-[Unknown]

i cant find this code in Sources/Profile.php, am i lookin in the wrong place?
Title: Re: Admin "spy mode?"
Post by: [Unknown] on April 15, 2005, 10:56:50 AM
Themes/yourtheme/Profile.template.php.

-[Unknown]
Title: Re: Admin "spy mode?"
Post by: KERA on December 02, 2006, 12:49:31 PM

how can I see if it works??

I did all the above but it doesnt work I think
Title: Re: Admin "spy mode?"
Post by: KERA on December 03, 2006, 03:27:33 AM
 ??? ???
Title: Re: Admin "spy mode?"
Post by: Oldiesmann on December 06, 2006, 07:10:33 PM
It will work. You just have to test it from the viewpoint of another user. To accomplish this, create a test account on your board. Log in to your forum as an admin and make sure you've set SMF to hide your online status. Then log out and log in using the test account. As long as you do it quickly enough, it should work. You may have to try it using two different browsers though - login as an admin from one browser, then login to the test account in another browser...
Title: Re: Admin "spy mode?"
Post by: crappyday on December 09, 2006, 06:42:23 AM
This isn't working for me with 1.1 Final.  I used my test account and I could still see my admin account in italics.

Interesting though, what it did do was make everyone invisible to me as an administrator.  I use Tiny Portal so the users online in the TP block worked like normal, but the one on the board index showed everyone online as hidden.

I reversed this and went back to the old codes, it didn't work.
Title: Re: Admin "spy mode?"
Post by: KERA on December 12, 2006, 02:11:17 AM
Quote from: Oldiesmann on December 06, 2006, 07:10:33 PM
test account on your board. Log in to your forum as an admin and make sure you've set SMF to hide your online status.

For all the members the hidden status is not allowed..

the spy mode doesnt work. I tried what u said and still I can see me!! >:(
Title: Re: Admin "spy mode?"
Post by: KERA on December 13, 2006, 10:04:17 AM
Quote from: KERA on December 12, 2006, 02:11:17 AM
Quote from: Oldiesmann on December 06, 2006, 07:10:33 PM
test account on your board. Log in to your forum as an admin and make sure you've set SMF to hide your online status.

For all the members the hidden status is not allowed..

it can work with that?
Title: Re: Admin "spy mode?"
Post by: Kaptin on December 15, 2006, 10:23:00 PM
If I may, why would you want to hide from your Global Mods?  I would assume you would assign people you trust as a GM, so you should not have to hide.  But that's only my opinion.
Title: Re: Admin "spy mode?"
Post by: crappyday on December 27, 2006, 04:05:44 AM
I can tell you why and it's sad but true.  Your GMs see you online while you're doing something you absolutely do NOT want to be bothered while doing it (i.e. coding or db type things), or if you are taking a day off or two and don't want to be bugged by them but they see you online and suddenly it's question after question and you don't have time for it.
Title: Re: Admin "spy mode?"
Post by: Dannii on December 27, 2006, 06:22:43 AM
If your GMs bug you, then you need to find some better GMs.
Title: Re: Admin "spy mode?"
Post by: crappyday on December 31, 2006, 01:04:23 AM
This is not going to go over well but I think that's a poor assumption to make.

I want my moderators to be as active and involved as possible.  Having them bug me with questions and problems are things I WANT them to do, normally.  Do you want moderators that sit on their hands and have only a cute name and color and stars?  Have you ever taken a few days break from a site you run and still check in but not wanting the headaches of your moderators asking a billion questions or saying "Hey you're back, I'm glad because this and this and this and this?"

I'm not saying I absolutely need this to work for me but I tired it, it didn't work and life goes on.  I'm just stating the reasons why a Site Administrator might want to appear invisible to everyone.  There are other things a person could do like turning off all messengers and such but if there were another way then I would have done it but it did not work.
Title: Re: Admin "spy mode?"
Post by: KGIII on February 01, 2007, 11:47:34 PM
It sucks but they should respect your privacy. Can you code it? The code is above and should work. If you can't trust 'em to leave you alone then ask nicer. (Not us, them.) If they STILL can't leave you along maybe rethinking your choices will work?

For now there are no really good methods at getting around it - someone can almost always figure out who is online even if it is just looking and seeing who is invisible.
Title: Re: Admin "spy mode?"
Post by: crappyday on February 08, 2007, 06:07:51 AM
This wasn't important to me really, for the most part I was playing devil's advocate but whenever I don't want to be bothered, I log off messengers or go invisible anyway :)
Title: Re: Admin "spy mode?"
Post by: xyxis_fahim on March 31, 2007, 01:02:49 PM
Sorry, but the code isn't working for me. I tested it with another GM username and still no luck..
I really wanted this to work.
Title: Re: Admin "spy mode?"
Post by: Piggie on April 18, 2007, 12:13:25 PM
Hi,

I'm not sure if this is the complete answer, but I'm pretty sure thats it's the nearest thing: http://www.simplemachines.org/community/index.php?topic=37029.0
Title: Re: Admin "spy mode?"
Post by: N3RVE on March 03, 2008, 11:16:19 AM
[unknown] hasnt said a word!
Title: Re: Admin "spy mode?"
Post by: Fatality- on March 03, 2008, 10:42:03 PM
the easier way is to just create another account to surf the forum when you are taking a break.
Title: Re: Admin "spy mode?"
Post by: metallica48423 on March 06, 2008, 04:44:46 PM
what kind of 'hidden' are we talking about? can someone explain what this should be doing?
Title: Re: Admin "spy mode?"
Post by: Piggie on November 12, 2008, 10:00:15 AM
Unless I'm mistaken, there would be no indication of the Admin being logged in on who's online, in their profile, or with their posts in threads. Additionally, it will not indicate in users online that anyone is 'hidden'. If the forum is set up so that members cannot set themselves as hidden, then 'hidden' can only mean 'hidden admin'. This defeats the object, surely?
Title: Re: Admin "spy mode?"
Post by: Oldiesmann on December 13, 2008, 11:29:57 PM
Even if you prevent SMF from showing hidden users at all, users could still figure it out by looking at your profile to see when you were last online, and faking that would prevent other features from working properly (notably the "unread posts since last visit" feature, and possibly also the "mark as read" stuff).
Title: Re: Admin "spy mode?"
Post by: Father Luke on December 17, 2008, 01:04:28 AM
Quote from: Elijah Bliss on December 30, 2004, 07:26:14 PM
Is there a way were an admin can be hidden from everyone including Global Moderators?


Well, there is this:

http://www.simplemachines.org/community/index.php?topic=253702.0

--
Okay,
Father Luke
Title: Re: Admin "spy mode?"
Post by: OnemanDH on January 29, 2009, 10:03:20 AM
This subject is exactly why I made the account here. (First post so I can't start a request thread).

As has been said already, the "Last Online" part of profiles is the dead giveaway.

What I would like is an option to hide/show "Last Online" on a profile.

The option to use a different account is there ofc but then the user (me in this case) can't check messages or do other things on the main account, so it's not really a viable solution.

As admin I would like to be able to be able to choose when to admin and when to be just a user, and the option to hide "Last Online" would free me from the "but I saw you online and you didn't do X/Y/respond/edit etc etc".


Edit: to clarify, I recently took over as admin on a board with 1.1.4 and as yet I am far from familiar with SMF. An upgrade to 2.0 is in the pipeline but not an immediate happening.
Title: Re: Admin "spy mode?"
Post by: LPChip on January 29, 2009, 10:21:15 AM
The best option still is to work with more users.

You can create a user and even give it admin privledges without it being seen as admin by the system.

To do this, make sure that the primairy usergroup isn't set to administrator. You don't even need to set a primairy usergroup. To do this, login using the admin account and edit the profile of your other account.

Go to Account related settings, and click the link: show additional membergroups. Its important to set the admin here instead of the combobox above. This will hide that you have admin privledges from the users but you'll still get all options, like an admin. Do note, that in the admin panel, you will be listed as admin. If a global moderator doesn't have any access rights to the admin panel, they will simply not know. If its a problem to be listed there, then simply create a new usergroup that has the same rights as the admingroup and place your subuser in there. Also, it can reveal you having admin status if you're in the admin panel, and someone clicks the "who's online link". It'll probably say: User location is unknown or hidden.
Title: Re: Admin "spy mode?"
Post by: OnemanDH on January 29, 2009, 10:28:40 AM
That's a good workaround for the admin but unfortunately doesn't resolve the issue of using the main account and having access to all info contained therein such as PMs etc.

Surely the show/hide option is "easily" changed/incorporated and thereafter available to all users?

Edit: (I know this thread is re: admin spy mode but I was unable to make a new thread on this subject so threw it in here)
Title: Re: Admin "spy mode?"
Post by: Rumbaar on March 10, 2009, 10:28:35 PM
You might want to try this mod:
Super Admin (http://custom.simplemachines.org/mods/index.php?mod=1306)
It adds a lot of features that can hide information, etc.
Title: Re: Admin "spy mode?"
Post by: gbsothere on June 28, 2009, 05:08:32 PM
Someone helped me with this once and it works beautifully for me.  I just had to remember to mark my status hidden in my profile.  I can also keep my test accounts hidden and no one can tell when I'm online testing the forum from a user's perspective (going into the test account as the admin and hiding that online status as well).  This is where it was resolved for me (and thanks, again, to Gazmanafc):

http://www.simplemachines.org/community/index.php?topic=303764 (http://www.simplemachines.org/community/index.php?topic=303764)


When I'm online, there's not even a reference to "hidden user" at the bottom of the forum page.   :)
Title: Re: Admin "spy mode?"
Post by: Blinker on July 12, 2009, 02:16:29 AM
gbsothere - thanks for posting that, and thanks to gazmanafc for providing the only semi-workable solution to this problem.

So far, it's the only quick and easy way to remove the (1 Hidden) from the boardindex that I've found. SuperAdmin caused too many issues for me, plus I want to log my time online and it prevents that in spy mode.

gazmanafc's solution still has a couple of issues though - on the boardindex it still shows the total number of users online.

For e.g. in testing I am logged in as myself with my main admin account and as a regular user with my test account (in a different browser). In the past (before I found this workaround) it would say "0 Guests, 2 Users, (1 Hidden)". Now it says "0 Guests, 2 Users", with only one user, being my test account, showing up. As far as I'm concerned, it defeats the purpose of removing the hidden user reference as it's still obvious I'm logged in as admin.

The other issue is with SimplePortal. I have a "Who's Online" block on the portal page and it still shows Hidden: 1,  Users: 2. I'm guessing it's because it doesn't pull that data from the boardindex template the way the forum index does.

Any ideas guys? Is what I'm asking even possible?
Title: Re: Admin "spy mode?"
Post by: Antechinus on August 17, 2009, 02:06:16 AM
You'd have to ask Simple Portal how they code their blocks.

It should be possible to do what you want with a conditional statement. Basically something like if($context('user_aint_hidden')) echo ' etc. (and yes I did just make that up)
Do you still need help with this?
Title: Re: Admin "spy mode?"
Post by: Tamsin on August 28, 2009, 05:59:17 PM
I would like to ask gazmanafc a question. I am after the same as everyone else on this thread ie hiding 'hidden' status from forum members. I am using Orangeline theme. Could you tell me what do I need to modify?

I am also keen to exclude admin from appearing in stats tables such as the number of hours logged in etc. Do you know of any way of achieving this?
Title: Re: Admin "spy mode?"
Post by: Arantor on September 21, 2009, 05:33:26 AM
The modifications as outlined in the first couple of posts would hide the admin from other members - and don't generally touch the theme.

If you require something more please advise.