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
Who's Online In Admin CP Details »»
Who's Online In Admin CP
Version: 1.00, by NTLDR (Coder) NTLDR is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-31-2002 Last Update: Never Installs: 57
 
No support by the author.

Who's Online In Admin CP
Version 1.0


This thread inspired and reminded me that I wanted to make the who's online page avalible in the Admin CP.

This hack display's a table at the top of the home page in the Admin CP, see screenshot in the next post

I will be adding in the IP and hopefully the locations in the next version

File Edits: 1

If you use this hack please click install

Show Your Support

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

Comments
  #32  
Old 02-08-2003, 08:18 PM
sreedchi sreedchi is offline
 
Join Date: Dec 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to add... when a 'Guest' is online, it shows the actual thread/location. Anyone registered though, it just shows "Control Panel"
Reply With Quote
  #33  
Old 02-11-2003, 06:50 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Out of all the hacks I've seen, I don't really like this one. Basically because

1) It doesn't show the actual location
2) I don't like the fact that the user is repeated 2 to 3 times.

Sorry guy. *shrugs* It may be good to others, but not me.

Good work though. At least others do like it.
Reply With Quote
  #34  
Old 02-12-2003, 01:34 AM
sreedchi sreedchi is offline
 
Join Date: Dec 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it showed the actual location, it would be great. I get the sense that it is intended to. It shows actual location for "guests."

Is there a better hack I should know about?
Reply With Quote
  #35  
Old 03-16-2003, 06:49 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bug Fix!

Code:
if ($online[location] = " ") {
Should be:

Code:
if ($online[location] == " ") {
Reply With Quote
  #36  
Old 05-14-2003, 12:31 PM
vB-Host.com's Avatar
vB-Host.com vB-Host.com is offline
 
Join Date: Apr 2003
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have admin stats installed and since installing your hack. It now gives me "Resources ID #24" instead of total online.. here is a screenshot

Reply With Quote
  #37  
Old 05-21-2003, 10:26 PM
OmaniMan OmaniMan is offline
 
Join Date: Nov 2002
Location: Oman
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hacks...
OmaniMan .. Install It
Reply With Quote
  #38  
Old 07-03-2003, 03:18 PM
AllMadden.net AllMadden.net is offline
 
Join Date: Mar 2003
Location: New York
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also curious as to why it shows everyone in control panel rather than where they really are...
Reply With Quote
  #39  
Old 08-04-2003, 08:58 AM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly, way to go.
Reply With Quote
  #40  
Old 08-22-2003, 07:12 PM
mccollin mccollin is offline
 
Join Date: Jul 2003
Location: North Carolina, USA
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the solution to all your registered users being in the Control Panel... which is a bit alarming at first glance.

The online location when you are in the Control Panel is null, not blank, so this solves it.


PHP Code:
if ($online[location] = " ") { 

PHP Code:
if (!$online[location]) { 

OK, now someone want to trade me and show how what you did to show the IP address?

By the way, NTLDR is the GREATEST! I am a person who likes simplicity, and your hacks make things that appear to be complex, end up being simple. Thanks for contributing your work!
Reply With Quote
  #41  
Old 08-22-2003, 07:31 PM
mccollin mccollin is offline
 
Join Date: Jul 2003
Location: North Carolina, USA
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, scratch my last trade comment... here is the code WITH the location fixed for registered users, and the IP address added...there are too many changes to list them, given the total size. I'm going to make a final edit that I won't upload, because it deviates from the spirit of the original code. If anyone wants it, let me know. I'm going to kill the IP column, and just replace "Guest" with their IP address. That will eliminate a column, and I don't care about IP addresses for registered users anyway. If anyone wants it, i'll post it.

PHP Code:

$datecut 
time()-$cookietimeout;

$onlineusers mysql_query("SELECT DISTINCT username,location,session.lastactivity,session.host,usergroupid FROM user,session WHERE session.userid=user.userid AND session.lastactivity>$datecut ORDER BY username ASC");
           echo 
"<br><br><table width=\"90%\" align=\"center\" border='0' cellpadding='0' cellspacing='0' class='tblborder'><tr><td>";
           echo 
"<table width=\"100%\" border=0 cellspacing=1 cellpadding=4><tr class='tblhead'><td align=\"center\" colspan=4 width=\"100%\"><b><span class='tblhead'>Who's Online</span></b></td></tr>\n";
    echo 
"<tr class='".getrowbg()."'><td nowrap align=\"center\"><font size='1'><b>Username</b></font></td><td align=\"center\" nowrap><font size='1'><b>Location</b></font></td><td align=\"center\" nowrap><font size='1'><b>Host IP</b></font></td><td align=\"center\" nowrap><font size='1'><b>Last Active</b></font></td></tr>\n";
        while (
$online=$DB_site->fetch_array($onlineusers)) {       
        if (!
$online[location]) {
        
$online[location] = "Control Panel";
       }
        if (
$online['usergroupid'] == 6) {
       
$username "<b><i>$online[username]</i></b>";
       } else if (
$online['usergroupid'] == 5) {
           
$uusername "<b>$user[username]</b></font>";
       } else {
        
$username $online[username];
        }
        
$lastactivity=vbdate($timeformat,$online[lastactivity]);
        echo 
"<tr class='".getrowbg()."'><td nowrap><a href=\"../member.php?s=$session[sessionhash]&action=getinfo&username=$online[username]\" target=_blank>$username</a></td><td nowrap>$online[location]</td><td nowrap>$online[host]</td><td nowrap>$lastactivity</td></tr>";
    }
$onlineguests mysql_query("SELECT DISTINCT location,lastactivity, host FROM session WHERE userid=0 AND session.lastactivity>$datecut ORDER BY host ASC");
        while (
$onlineg=$DB_site->fetch_array($onlineguests)) {       
        
$lastguestactivity=vbdate($timeformat,$onlineg[lastactivity]);
        echo 
"<tr class='".getrowbg()."'><td nowrap>Guest</td><td nowrap>$onlineg[location]</td><td nowrap>$onlineg[host]</td><td nowrap>$lastguestactivity</td></tr>";
    }
echo 
"</table></td></tr></table>"
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:31 PM.


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.04597 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
  • (2)bbcode_code
  • (3)bbcode_php
  • (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