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
Extra Details in Who's Online Details »»
Extra Details in Who's Online
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-16-2003 Last Update: Never Installs: 24
 
No support by the author.

This adds extra details to the IP Address column of Who's Online; specifically, the user agent and the actual URL for each user.

Show Your Support

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

Comments
  #22  
Old 03-17-2003, 02:15 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 09:41 PM filburt1 said this in Post #14
! That's weird.

Is it always the same user with the blank username/ip?
So far it has only happened with a web robot on the site (for me, anyway). The first line looks just like the picture.
Reply With Quote
  #23  
Old 03-17-2003, 02:15 AM
LOD-squa's Avatar
LOD-squa LOD-squa is offline
 
Join Date: Aug 2002
Location: Orlando, Florida
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yet again please excuse the confusion. I noticed the browser and actual location where missing and did this:

find

Code:
        $userinfo[$key][receivepm] = $user[receivepm];
after it add

Code:
	$userinfo[$key]['useragent'] = $user['useragent'];
	$userinfo[$key]['actualurl'] = $user['location'];
You might wanna test it. though for me it works correctly sorry to confuse you x.x
Reply With Quote
  #24  
Old 03-17-2003, 02:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 09:59 PM gohanssj2 said this in Post #19
Found the fix

Find

Code:
      }
      $guests[$count][lastactivity] = $user[lastactivity];
      $count++;
    }	
                $userinfo[$key]['useragent'] = $user['useragent'];
	$userinfo[$key]['actualurl'] = $user['location'];
}
Replace with

Code:
      }
      $guests[$count][lastactivity] = $user[lastactivity];
      $count++;
    }
}
	$userinfo[$key]['useragent'] = $user['useragent'];
	$userinfo[$key]['actualurl'] = $user['location'];

I tried doing it that way and I lost the useragent and url info.
Reply With Quote
  #25  
Old 03-17-2003, 02:17 AM
LOD-squa's Avatar
LOD-squa LOD-squa is offline
 
Join Date: Aug 2002
Location: Orlando, Florida
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry check my other post lol.
Reply With Quote
  #26  
Old 03-17-2003, 02:25 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guh, please just posted revised instructions.
Reply With Quote
  #27  
Old 03-17-2003, 02:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I put it below the 2 brackets, I don't get the extra spaced line, but I also don't get the location or useragent for anyone. If I put it between the 2 brackets, I get the extra spaced line again with all the info and my line has all the info, but the guests and web robots only have the ip address, the other info is blank.
Reply With Quote
  #28  
Old 03-17-2003, 08:57 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has worked out the exact same way for me, too.

This will be a great hack, once someone fixes this last detail.
Reply With Quote
  #29  
Old 03-17-2003, 02:27 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea turtle. This is almost one hack p/day so far...

- miSt
Reply With Quote
  #30  
Old 03-17-2003, 02:48 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack!

Does anybody have any idea how to get the complete useragent info instead of just the first 50 chars? (setting the useragent field of the session table from char(50) to varchar(100) didn't do the trick)


btw, the fix for the guest-problem:
(I c/p'ed the whole bit of code to prevent confusion )
PHP Code:
        }
        
$userinfo[$key][userid] = $user[userid];
        
$userinfo[$key][showemail] = $user[showemail];
        
$userinfo[$key][receivepm] = $user[receivepm];



        
$userinfo[$key]['useragent'] = $user['useragent'];
        
$userinfo[$key]['actualurl'] = $user['location'];



      }
    } else { 
// Guest
      
$guests[$count][location] = $user[location];
      
$guests[$count][invisible] = 0;
      
$guests[$count][username] = "Guest";
      if (
$WOLresolve && $usergroupdef['canwhosonlineip']) {
        
$guests[$count][ipaddress] = @gethostbyaddr($user[host]);
      } else {
        
$guests[$count][ipaddress] = $user[host];
      }
      
$guests[$count][lastactivity] = $user[lastactivity];



      
$guests[$count]['useragent'] = $user['useragent'];
      
$guests[$count]['actualurl'] = $user['location'];



      
$count++;
    }
  } 

This worked for me...
Reply With Quote
  #31  
Old 03-17-2003, 07:10 PM
techno techno is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant seem to get this hack working at all. I'm running 2.2.9. Here is a screeny.
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 10:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05545 seconds
  • Memory Usage 2,321KB
  • 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_code
  • (1)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
  • (4)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