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
  #32  
Old 08-13-2002, 04:24 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by cditty


This is a good idea. I would really like to see this added if possible. Otherwise, good hack.

Chris

I'd be interested, also. As admin, I'd like to see what the mods are up to. *hehe*
Reply With Quote
  #33  
Old 09-21-2002, 07:14 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bumpity bump bump? Anyone? Please?

*sits with a book*
Reply With Quote
  #34  
Old 12-31-2002, 10:18 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Moonwolf
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.
Love this hack and Firefly's original change. This is great stuff. (Still need some help with it, though.) I've set up.....

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:
      // Let's show the admin the location but put something false up for everyone else.. 
I have this:

PHP Code:
    case 'admin':
        if(
$WOLadstr) {
             
$userinfo[where] = $WOLadstr;
        } else {
            
$userinfo[where] = "Performing site maintenance";
         }
    break;
    
    case 
'smod':
        if(
$WOLsmodstr) {
             
$userinfo[where] = $WOLsmodstr;
            } else {
              
$userinfo[where] = "Performing site maintenance";
            }
    break;
    
    case 
'mod':
        if(
$WOLmodstr) {
             
$userinfo[where] = $WOLmodstr;
            } else {
             
$userinfo[where] = "Performing site maintenance";
            }
    break;
    
    case 
'Talisman':
        
$userinfo[where] = "Viewing Thread <a href='online.php?s=$session[sessionhash]'>Naughty Photos of $bbuserinfo[username]</a>";
    break; 
The cases for admin, smod, and mod came from this hack and case Talisman came from Firefly/Tungsten.

Then, before this:

PHP Code:
  if ($onlineloc!='' and $userinfo[activity]=='unknown') {
    
$onlinelocbits=explode("|||",$onlineloc);
    while (list(
$key,$ourfilename)=each($onlinelocbits)) {
      list(
$key,$text)=each($onlinelocbits);
      if (
$filename==$ourfilename)
        
$userinfo[activity] = $ourfilename;
    }
  }

  return 
$userinfo;

I have this:

PHP Code:
    if ($WOLsadmin && $userinfo[usergroupid]==6) {
      
$userinfo[activity] = 'admin';
    }
    if (
$WOLsmods && $userinfo[usergroupid]==5) {
      
$userinfo[activity] = 'smod';
    }
    if (
$WOLsmod && $userinfo[usergroupid]==7) {
      
$userinfo[activity] = 'mod';
    }      
    if (
$userinfo[userid]==2) {
      
$userinfo[activity] = 'Talisman';
    } 
(Note: As I wasn't the person who set up our board, my admin userid is 2 instead of 1)

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!
Reply With Quote
  #35  
Old 01-04-2003, 04:07 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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.
Reply With Quote
  #36  
Old 01-06-2003, 06:56 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't seem to have much choice .......... uninstalled.
Reply With Quote
  #37  
Old 03-05-2003, 12:00 AM
glas glas is offline
 
Join Date: Dec 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 03-05-2003, 06:54 PM
glas glas is offline
 
Join Date: Dec 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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?
Reply With Quote
  #39  
Old 08-12-2003, 08:21 PM
Airs's Avatar
Airs Airs is offline
 
Join Date: Oct 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!.
Reply With Quote
  #40  
Old 12-14-2003, 01:50 AM
bexie bexie is offline
 
Join Date: Jun 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Airs
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!.
Same problem here. I'm running on 2.3.2. Anyone have any suggestions?! Thanks!
Reply With Quote
  #41  
Old 02-05-2004, 09:18 AM
simie simie is offline
 
Join Date: Dec 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

running 2.3.2 myself and I also have the prob that Airs and bexie are having. Help!
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 11:26 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.05681 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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