Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Whos online in Admincp Details »»
Whos online in Admincp
Version: 1.00, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-07-2005 Last Update: 08-07-2005 Installs: 115
Uses Plugins
Is in Beta Stage  
No support by the author.

Whos online in Admincp

vBulletin 3.5.0 RC 2
www.vBHackers.com

What this does
This will show you who currently is online, inside your admincp. When clicking on there name, you will be directed to the users profile in the admincp for editing.


Notes:
  1. This is a port from my original hack which can be found here.
  2. I have requested an addional hook at vB.com. If added I will update this hack to have its own table, and no ending comma.

To do list...
  • Time to install: 1 minute
  • Queries to run: 0
  • File Mods: 0
  • Templates to edit: 0
  • Templates to add: 0
  • New Phrases: 0
  • New Plugins: 1

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It For Support!

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.

Show Your Support

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

Comments
  #22  
Old 08-09-2005, 12:24 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I meant i'm trying to get that effect, where the blank box is.
Reply With Quote
  #23  
Old 08-09-2005, 12:58 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:
Originally Posted by Live Wire
I meant i'm trying to get that effect, where the blank box is.
Oh, ok, I see now. Kirby's doesn't have a blank box.
Reply With Quote
  #24  
Old 08-09-2005, 07:46 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Live Wire
I can't seem to get it like Kirbys attachment without hacking the file. I'm trying to get this effect. . Thats a Photoshop edit.
That's easy (assuming you want that blank box shown in the image).

Hook: admin_index_main
PHP Code:
print_table_break();
print_table_header('');
print_label_row(' ',' ');
fetch_row_bgclass();
print_label_row(' ',' ');
print_table_break(); 
Reply With Quote
  #25  
Old 08-09-2005, 07:48 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would you want a blank table there?

Oh, wait, we're talking about LW. Never mind.
Reply With Quote
  #26  
Old 08-10-2005, 12:01 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Why would you want a blank table there?

Oh, wait, we're talking about LW. Never mind.
Haha, your too old to understand a young mans mind

To get a seperate box for the users, replace all the code in the hook: admin_index_mail with this:
PHP Code:
        require_once(DIR '/includes/functions_bigthree.php');

        
$datecut TIMENOW $vbulletin->options['cookietimeout'];
        
$numbervisible 0;
        
$numberregistered 0;
        
$numberguest 0;

        
$forumusers $db->query_read("
                SELECT
                        user.username, (user.options & " 
$vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
                        session.userid, session.inforum, session.lastactivity,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
                FROM " 
TABLE_PREFIX "session AS session
                LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = session.userid)
                WHERE session.lastactivity > 
$datecut
                " 
iif($vbulletin->options['displayloggedin'] == 1"ORDER BY username ASC") . "
        "
);

        if (
$vbulletin->userinfo['userid'])
        {
                
// fakes the user being online for an initial page view of index.php
                
$vbulletin->userinfo['joingroupid'] = iif($vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['usergroupid']);
                
$userinfos = array
                (
                        
$vbulletin->userinfo['userid'] => array
                        (
                                
'userid' => $vbulletin->userinfo['userid'],
                                
'username' => $vbulletin->userinfo['username'],
                                
'invisible' => $vbulletin->userinfo['invisible'],
                                
'inforum' => 0,
                                
'lastactivity' => TIMENOW,
                                
'usergroupid' => $vbulletin->userinfo['usergroupid'],
                                
'displaygroupid' => $vbulletin->userinfo['displaygroupid'],
                        )
                );
        }
        else
        {
                
$userinfos = array();
        }
        
$inforum = array();

        while (
$loggedin $db->fetch_array($forumusers))
        {
                
$userid $loggedin['userid'];
                if (!
$userid)
                {        
// Guest
                        
$numberguest++;
                        
$inforum["$loggedin[inforum]"]++;
                }
                else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
                {
                        
$userinfos["$userid"] = $loggedin;
                }
        }

        if (!
$vbulletin->userinfo['userid'] AND $numberguest == 0)
        {
                
$numberguest++;
        }

        foreach (
$userinfos AS $userid => $loggedin)
        {
                
$numberregistered++;
                if (
$userid != $vbulletin->userinfo['userid'])
                {
                        
$inforum["$loggedin[inforum]"]++;
                }
                
$loggedin['username'] = fetch_musername($loggedin);


                if (
fetch_online_status($loggedin))
                {
                        
$numbervisible++;
                        
$activeusers .= ", <a href=\"user.php?$session[sessionurl]do=edit&u=$loggedin[userid]\">$loggedin[username]</a>$loggedin[invisiblemark]$loggedin[buddymark]";
                }
        }

        
// memory saving
        
unset($userinfos$loggedin);
        
$activeusers substr($activeusers2);

        
print_table_break();
        
print_table_header($vbphrase['users_online']);
        
print_label_row($activeusers);
        
print_table_break(); 
Reply With Quote
  #27  
Old 08-10-2005, 12:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good!

If you takje the second instance of this (from the bottom up) out, you get it evenly spaced on the top and botton of the boix.

PHP Code:
         print_table_break(); 
Reply With Quote
  #28  
Old 08-10-2005, 04:09 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The 2nd Instance is necessary.
Reply With Quote
  #29  
Old 08-19-2005, 06:59 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way you could change the name of the table where it says: Users Online

With the link form the forum index that says: Currently Active Users

I think it would make it that much more functional. BTW I am using your edit from post 25 if you didn;t already realize that.
Reply With Quote
  #30  
Old 08-19-2005, 04:22 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are new hook locations in RC3. When its released, i'll beable to fix this hack to have a seperate box.
Reply With Quote
  #31  
Old 08-23-2005, 09:24 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Live Wire
There are new hook locations in RC3. When its released, i'll beable to fix this hack to have a seperate box.
Isn;t that the point of post 25 above? What about the link to currently active users? Either way it is a much appreciated feature.
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 03:27 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.05012 seconds
  • Memory Usage 2,356KB
  • 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
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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