![]() |
(AKA Nosey Bugger Blocker :) )
This is an expansion on Firefly's mod to online.php It'll allow you to individually set Admins, Super Mods, and Mods, to not show their activity in online.php, and allow you to use a default message, or enter a custom one for each group via the control panel. It might be going out under my name, but since the idea was firefly's, and he fixed my really stupid mistake, he should get most of the credit for it. All I did was kludge :p To Install: Place the install_stealth.php file in your admin directory, and run it. It'll set up the necessary variables in your control panel, then give you a list of changes to make to your online.php file. Once you've got it all in place, go to Admin Control Panel -> vBulletin Options -> Who's Online and you can set the appropriate stuff up. For the text strings that show when a usergroup is stealthed, you can use the following variables in the string: $bbuserinfo[username] - Prints the name of the user viewing the online list $userinfo[username] - Prints the name of the admin/super mod/mod being stealthed You can change the default stealthed message by changing the line in the hack that reads "In The Shadows" in online.php to whatever suits you. Demo: http://www.underlight.com/VBB/online.php (when there's an admin or Super Mod online) Kathi |
Great little addition. Only one minor problem is the installer is missing a few line breaks cause some of the lines to add come out as
case 'admin': if($WOLadstr) { $userinfo[where] = $WOLadstr; } else { $userinfo[where] = "No peeking"; } break; case 'smod': if($WOLsmodstr) { $userinfo[where] = $WOLsmodstr; } else { $userinfo[where] = "No peeking"; } break; case 'mod': if($WOLmodstr) { $userinfo[where] = $WOLmodstr; } else { $userinfo[where] = "No Peeking"; } break; where they should be: case 'admin': if($WOLadstr) { $userinfo[where] = $WOLadstr; } else { $userinfo[where] = "No peeking"; } break; case 'smod': if($WOLsmodstr) { $userinfo[where] = $WOLsmodstr; } else { $userinfo[where] = "No peeking"; } break; case 'mod': if($WOLmodstr) { $userinfo[where] = $WOLmodstr; } else { $userinfo[where] = "No Peeking"; } break; |
This is almost what I suggested...:)
Would you be able to make it so you can do it on a per-user basis? |
I always manage to forget -something- :)
Thanks, fixed the installer. Kathi Quote:
|
Looks like this hack has no effect when firefly's mini hack "ah ha peeking..." is installed, because this it what it is showing for admin...
|
It works for every other admin and mods, but one: the one who is defined in firefly's mini hack (great hack btw but you'll never find it unless you are nice to him :D ).
Thanks for yours. |
top hack
i have a problem though (just a tiny one) i made the relevant changes to my online.php but then the page didnt work. I think i had a space where i shouldnt. so i decided to start from scratch and make the changes again. to do this i had to install the hack again. Obviously though this has added the hack twice and i now have two of everything in my options menu. on top of this, you cant niew where a guest is now how would i fix this?? :confused: |
Paste this code into a file in your admin directory, then run it, it should clear the extra fields for you. Then run step 1 of the install_stealth.php file to re-add the extra fields.
PHP Code:
Kathi |
hey moonwolf
thanks for helping me out when i run the file i get this error PHP Code:
|
Fixed, my mistake with the syntax, re-do the snippet I posted above, I've edited it to fix my mistake.
On this one I plead too many meds after a long night of ER hopping :p Kathi Quote:
|
Great hack, thanks.
|
ok i have 2 admins on my board. me and another guy. is there a way i can set it so we can each have diffrent messages?
|
thanks moonwolf
youve bailed me out again :D |
You'd probably be better off using FireFly's version, which works on userid's instead of usergroupid's.
Kathi Quote:
|
@ moonwolf
where can fireflys hack for whos online be found ? :confused: |
<a href="https://vborg.vbsupport.ru/showthread.php?postid=197196#post197196" target="_blank">https://vborg.vbsupport.ru/showt...196#post197196</a>
The two hacks, Firefly's original for specific users, and this one for usergroups, should be able to run side by side on the same board. Kathi |
what happen if you want to uninstall this hack and try it again...can sombody please tell me how to do this....thank you
|
Go to Post #8. Follow the instructions about creating a file with the included code, run the file with that code. Remove the lines in online.php that the original installer tells you to add, and you're back to where you started. You should only need to remove the lines in online.php since nothing was replaced in the hack.
Kathi |
I have added your changes, and uploaded. I had a couple errors, but fixed those (my own fault - I added another usergroup).
But, while I no longer receive errors, nothing seems to have changed on the 'who's online'. It still shows everyone like normal. I created a test user since guests can't view the who's online at my forum. The test user was just a regular member. I had a moderator log onto the board, and I logged in as the test user. But I could still see where the mod was and what they were doing. :( |
Only two things can think of if you're getting this.
Kathi Quote:
|
Erm, if one was to accidently install this hack twice, how would you go about uninstalling a part of it? ((I have double the 'fun' (options) in my admin cp - but I dont' know how to go backwards to undo it since I used the installer))
Any suggestions? |
Can this be made so the admin can see where the mods are?
|
Quote:
Chris |
thank you for the hack Moonwolf :)
it would be nice if admins could see the location like the above 2 posts say. but its a nice hack anyway :) |
I changed around the code a bit to have some fun with my users... :devious:
Code:
$userinfo[where] = "Reading thread <a href='online.php?s=$session[sessionhash]'>Naughty Pics of $bbuserinfo[username]</a>"; |
Lmao...
Good hack... Satan |
hmm... $bbuserinfo[username] doesn't seem to work for me... any ideas?
|
how can I uninstall this? I accidently added it to the database twice... any help?
edit: nm, I just went into the database and deleted the extras manually. |
I would like to hide the locations of a usergroup that is not a moderator, supermod or admin. How can I do this?
The usergroupid is 9 and the name of the group is sybermom. |
Nice hack! :)
I love it and my users hate it :D |
Quote:
I'd be interested, also. As admin, I'd like to see what the mods are up to. *hehe* |
Bumpity bump bump? Anyone? Please?
*sits with a book* |
Quote:
1. Firefly's hack to hardcode a WOL location for specific user (specifically, me). That little goodie can be found in the Lounge here. 2. Next to that, I'm also using this hack (thanks, Moonwolf!). 3. And I took Tungsten's suggestion for the location I'm using. The problem we're having is regular members and unregistered guests are also be shown with the custom locations. Previously, Firefly gave us code that was supposed to fix that. And I see, Moonwolf included that portion in this hack. But that didn't fix it. To make this as easy as possible for you guys to help, I'll show here what the code is. Hope someone can solve this for us. In online.php ....... before this: PHP Code:
PHP Code:
Then, before this: PHP Code:
PHP Code:
So..... can anyone figure out how our guests and members are showing up on the WOL with these custom locations, too? Thanks everyone..... please feel free to PM me for more information if you need to. Cheers! |
*bump*
Someone, please help with this request? The custom locations set for admins/mods only are showing up for regular members and unregistered guests, as well. I've been through all the related threads and still don't know why. The fix Firefly offered in his thread (which is included in Moonwolf's hack as well) doesn't prevent this from happening. Thanks. |
Don't seem to have much choice .......... uninstalled.
|
So, I've installed this, however, the option to turn WOL is gone, and somehow they got disabled. I'm figuring the field got erased during the addition.
Also, I ran the code you posted, Kathi, but I got an error. I'm assuming I'm being dumb and that wasn't a query to run, but your directions were a little fuzzy as to what file to paste and run it in. At least to me. :\ Any help would be greatly appreciated. |
*cough* Bump.
With every post here, I lose faith in the vb.org team and their ability to help users. Someone mind proving me wrong? |
this is pretty old and all but have a tough problem my forum lost the switch that says Whos online turned on or off..and now its automaticlly turned off..help!.
|
Quote:
|
running 2.3.2 myself and I also have the prob that Airs and bexie are having. Help!
|
All times are GMT. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|