Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Moonwolf Moonwolf is offline
Developer Last Online: Nov 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-11-2002 Last Update: Never Installs: 18
 
No support by the author.

(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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-12-2002, 05:34 PM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #3  
Old 01-12-2002, 05:38 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is almost what I suggested...

Would you be able to make it so you can do it on a per-user basis?
Reply With Quote
  #4  
Old 01-12-2002, 06:27 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #5  
Old 01-12-2002, 06:52 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 01-12-2002, 07:09 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks for yours.
Reply With Quote
  #7  
Old 01-14-2002, 01:18 AM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #8  
Old 01-14-2002, 02:07 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 01-14-2002, 02:18 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 01-14-2002, 02:35 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 PM.


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.04309 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete