vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who's Online Stealth (Micro?)-Hack (https://vborg.vbsupport.ru/showthread.php?t=34047)

Moonwolf 01-11-2002 10:00 PM

(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

GeorgeofCS 01-12-2002 05:34 PM

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;

DarkReaper 01-12-2002 05:38 PM

This is almost what I suggested...:)

Would you be able to make it so you can do it on a per-user basis?

Moonwolf 01-12-2002 06:27 PM

I always manage to forget -something- :)

Thanks, fixed the installer.

Kathi

Quote:

Originally posted by GeorgeofCS
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;


Lionel 01-12-2002 06:52 PM

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

Lionel 01-12-2002 07:09 PM

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.

fonzerelli_79 01-14-2002 01:18 AM

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:

Moonwolf 01-14-2002 02:07 PM

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:

<?php
require("./global.php");
cpheader();
$DB_site->query("DELETE FROM setting WHERE varname='WOLsadmin'");
$DB_site->query("DELETE FROM setting WHERE varname='WOLadstr'");
$DB_site->query("DELETE FROM setting WHERE varname='WOLsmods'");
$DB_site->query("DELETE FROM setting WHERE varname='WOLsmodstr'");
$DB_site->query("DELETE FROM setting WHERE varname='WOLsmod'");
$DB_site->query("DELETE FROM setting WHERE varname='WOLmodstr'");
echo 
"Records erased!";
cpfooter();
?>

As for guests being stealthed, I'm not sure. Guests don't have usergroupid's, so they shouldn't get stealthed. Are your guests getting usergroupid 5, 6, or 7? Go to Admin Control Panel -> User Groups -> Modify, put your mouse over the "edit" link of your admins, super mods, and mods groups, and look at the URL that link goes to, the last part of the URL should contain the usergroupid.

Kathi

fonzerelli_79 01-14-2002 02:18 PM

hey moonwolf
thanks for helping me out

when i run the file i get this error

PHP Code:

Invalid SQLDELETE FROM setting WHERE varname='WOLsadmin'
mysql errorYou have an error in your SQL syntax near '* FROM setting WHERE varname='WOLsadmin'' at line 1 

what could this be?

Moonwolf 01-14-2002 02:35 PM

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:

Originally posted by fonzerelli_79
hey moonwolf
thanks for helping me out

when i run the file i get this error

PHP Code:

Invalid SQLDELETE FROM setting WHERE varname='WOLsadmin'
mysql errorYou have an error in your SQL syntax near '* FROM setting WHERE varname='WOLsadmin'' at line 1 

what could this be?



All times are GMT. The time now is 12:34 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
  • Page Generation 0.01140 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete