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)

Rose 08-13-2002 04:24 PM

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*

Rose 09-21-2002 07:14 PM

Bumpity bump bump? Anyone? Please?

*sits with a book*

Talisman 12-31-2002 10:18 PM

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!

Talisman 01-04-2003 04:07 PM

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

Talisman 01-06-2003 06:56 AM

Don't seem to have much choice .......... uninstalled.

glas 03-05-2003 12:00 AM

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.

glas 03-05-2003 06:54 PM

*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?

Airs 08-12-2003 08:21 PM

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

bexie 12-14-2003 01:50 AM

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!

simie 02-05-2004 09:18 AM

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 04:59 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.01257 seconds
  • Memory Usage 1,767KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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