View Full Version : Whos online in Admincp
Logikos
08-07-2005, 10:00 PM
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:
This is a port from my original hack which can be found here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=70137).
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!
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=93868)
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.
Logikos
08-08-2005, 04:30 PM
Last Comma Issue:
Fixed - Thanks Kirby! :)
About No Custom Table:
There currently is no hook avalible in the admincp/index.php page to create your own custom tables. Only a hook to add an addtional row. I have requested a new hook to beable to create custom tables at vB.com. If such hook is added in a future version, I will update this hack.
Boofo
08-08-2005, 04:38 PM
You might want to change this in the first post? ;)
vB Staff Title
Boofo
08-08-2005, 04:38 PM
LOL You beat me to it. ;)
Logikos
08-08-2005, 04:38 PM
lol I did
Andreas
08-08-2005, 04:39 PM
$activeusers .= ", <a href=\"user.php?$session[sessionurl]do=edit&u=$loggedin[userid]\">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]";
}
}
// memory saving
unset($userinfos, $loggedin);
$activeusers = substr($activeusers, 2);
Comma gone :)
Btw: You can create your own Tables, see my Post @ vbulletin.com
Logikos
08-08-2005, 04:42 PM
If you look at the code, I have that already there but I commented it out. I doesn't kill the last comma, instead it deletes the first two code spaces, which is '<a' instead of the if the ,
Logikos
08-08-2005, 04:42 PM
Btw: You can create your own Tables, see my Post @ vbulletin.com
Checking now :)
Andreas
08-08-2005, 04:44 PM
For the Comma issue:
Closely look at the Code I posted and compare it with your original Code ;)
Logikos
08-08-2005, 04:45 PM
Btw: You can create your own Tables, see my Post @ vbulletin.com
But it is bound to the Admin Links and looks weird, I've tried that orginally and wasn't pleased with the look.
Logikos
08-08-2005, 04:53 PM
For the Comma issue:
Closely look at the Code I posted and compare it with your original Code ;)
Thanks Kirby, I thought it deleted from the opposite direction, that's why I was so confused. :)
Zip and Screenshot updated :)
Andreas
08-08-2005, 04:53 PM
Yes, it looks a bit strange (Screenshot attached), but not thaat weird that I would call it inacceptable.
And for the time being IMHO better then File Edits :)
Logikos
08-08-2005, 04:56 PM
Yes, it looks a bit strange (Screenshot attached), but not thaat weird that I would call it inacceptable.
And for the time being IMHO better then File Edits :)
Yes I agree with you :). I personaly don't like the way that looks, it gets confusing for others. If someone requests it here, I will gladly create a post with a .xml file for them :)
Boofo
08-08-2005, 05:02 PM
Do I count as a request, sir? ;)
Logikos
08-08-2005, 05:21 PM
Do I count as a request, sir? ;)
Damm you! You did that on purpose! Give me a few minutes and I'll upload a separate .xml file just for you boobflue. :)
Blam Forumz
08-08-2005, 05:41 PM
Good going mister! Now stop talking and go code more cool things :cool:
Snake
08-08-2005, 05:50 PM
Thanks for the hack but may I request a little feature? I would like to view a user's location as well. That would be useful I guess.
Boofo
08-08-2005, 11:20 PM
Damm you! You did that on purpose! Give me a few minutes and I'll upload a separate .xml file just for you boobflue. :)
Am I too late or too early? ;)
Logikos
08-08-2005, 11:32 PM
Am I too late or too early? ;)
I can't seem to get it like Kirbys attachment without hacking the file. I'm trying to get this effect. https://vborg.vbsupport.ru/. Thats a Photoshop edit.
Boofo
08-08-2005, 11:41 PM
Yours already does that affect. Kirby and I have another product loaded there, that's why it looks like that. ;)
Logikos
08-09-2005, 12:24 AM
I meant i'm trying to get that effect, where the blank box is. ;)
Boofo
08-09-2005, 12:58 AM
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.
Andreas
08-09-2005, 07:46 PM
I can't seem to get it like Kirbys attachment without hacking the file. I'm trying to get this effect. http://www.mistakes.us/gear/kirby.gif. Thats a Photoshop edit.
That's easy (assuming you want that blank box shown in the image).
Hook: admin_index_main
print_table_break();
print_table_header('');
print_label_row(' ',' ');
fetch_row_bgclass();
print_label_row(' ',' ');
print_table_break();
Boofo
08-09-2005, 07:48 PM
Why would you want a blank table there?
Oh, wait, we're talking about LW. Never mind. ;)
Logikos
08-10-2005, 12:01 AM
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 :p
To get a seperate box for the users, replace all the code in the hook: admin_index_mail with this:
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($activeusers, 2);
print_table_break();
print_table_header($vbphrase['users_online']);
print_label_row($activeusers);
print_table_break();
Boofo
08-10-2005, 12:50 AM
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. ;)
print_table_break();
Andreas
08-10-2005, 04:09 AM
The 2nd Instance is necessary.
Xplorer4x4
08-19-2005, 06:59 AM
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. ;)
Logikos
08-19-2005, 04:22 PM
There are new hook locations in RC3. When its released, i'll beable to fix this hack to have a seperate box.
Xplorer4x4
08-23-2005, 09:24 AM
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.
cnutter
09-20-2005, 02:33 AM
doesnt seem to work in RC3.... :disappointed:
Andreas
09-20-2005, 02:34 AM
Yep, needs an update as the hook has been removed in RC3.
Logikos
09-20-2005, 02:51 AM
Bah, more work for me. :(
cnutter
09-20-2005, 02:58 AM
Bah, more work for me. :(
ahhh common you can do it.... :banana:
Boofo
09-20-2005, 05:02 AM
LW, I have it working oin RC 3 if you want it. ;)
Xplorer4x4
09-20-2005, 05:58 AM
So where's it at Boofo? :banana:
Logikos
09-21-2005, 04:36 AM
Sure man :)
Boofo
09-21-2005, 11:12 AM
Here you go. ;)
The Coldwood
09-22-2005, 02:39 PM
Last Comma Issue:
Fixed - Thanks Kirby! :)
About No Custom Table:
There currently is no hook avalible in the admincp/index.php page to create your own custom tables. Only a hook to add an addtional row. I have requested a new hook to beable to create custom tables at vB.com. If such hook is added in a future version, I will update this hack.
No support for RC3 eh?
Boofo
09-22-2005, 02:41 PM
No support for RC3 eh?
Look directly above your post. LOL
EasyTarget
09-22-2005, 02:49 PM
so they added the hook and then took it out in rc3?
Boofo
09-22-2005, 03:19 PM
LOL Ok, let me make this easy to understand ... my post above with the file in it WORKS for RC 3. ;)
EasyTarget
09-22-2005, 11:47 PM
yeah, I saw that.. but that file is needed because they took the hook out right? I was just confused as to why vb would add it in the earlier rcs then take it out for rc3.
Boofo
09-23-2005, 12:45 AM
They replaced that hook with more hooks in better locations is all. ;)
Xplorer4x4
09-23-2005, 01:42 AM
As far as my request to make the name on the header of the table that reads "Users Online" redirect to the "Who Is Online" box. Well after looking at the XML I figuered it out.
If you are interested in this:
1)Open the Language and Phrases drop down menu.
2)Click the Search in Phrases option.
3)Type users_online in the search for text box.
4)Enable Phrase Text and Phrase Variable Name. Dsiable case sensitive option.
5)Click Find.
6)Edit the phrase user_online and in the english tranlation box type in: <a href="http://www.YOUSITE.com/forums/online.php">Users Onlines</A>
7)Save it.
Your done.
KidneyBoy
09-29-2005, 05:31 PM
If it means anthing to anyone, Boofo's version is working on 3.5.0 Gold. (I still clicked that I installed it. Hope that's fine with you Live Wire)
KidneyBoy
catocom2
10-04-2005, 12:20 PM
Here you go. ;)
Thanks for the update Boofo.
It works good for me on the gold ver.
betablue
10-04-2005, 04:50 PM
I just installed this product and - it doesn't seem to do anything. Are those users suppose to show in the in the admin CP home page?
HMBeaty
10-05-2005, 12:57 AM
I just installed this product and - it doesn't seem to do anything. Are those users suppose to show in the in the admin CP home page?
I'm getting the same thing. Someone help please. :)
catocom2
10-05-2005, 01:15 AM
Yes, those are standard.
Did you install boofo's version?
https://vborg.vbsupport.ru/showpost.php?p=777200&postcount=38
csidlernet
10-05-2005, 02:53 AM
nice!
/me installs
Sovereign
10-05-2005, 09:12 PM
Doesn't seem to work, I have the same AdminCP appearance that I did before.
Gio Takahashi
10-05-2005, 09:33 PM
Look in Boofo's post, as it did the trick.
https://vborg.vbsupport.ru/showpost.php?p=777200&postcount=38
Good thing I read this thread after I installed it. O.o.
outlaw621
11-04-2005, 05:07 PM
Boofo's version is working in 3.5.1
Snake
11-04-2005, 07:49 PM
Link please?
Boofo
11-04-2005, 09:10 PM
Link please?
Look at post 38. ;)
silly rabbit
11-05-2005, 11:32 AM
Look at post 38. ;)
Where's the post #'s????? (KIDDING!!)
Boofo, was searching for help on moving 'Who's Online' to the TOP of the home forum display with no luck(shouldn't say that, found this thread!). Am I going to edit the index.php file to accomplish this???? ie: cut & paste 'whosonline' code up ^^????
ps: I have 3.5.0 use original dl posted up top, right??
Rabbit
Boofo
11-05-2005, 11:38 AM
Where's the post #'s????? (KIDDING!!)
Boofo, was searching for help on moving 'Who's Online' to the TOP of the home forum display with no luck(shouldn't say that, found this thread!). Am I going to edit the index.php file to accomplish this???? ie: cut & paste 'whosonline' code up ^^????
ps: I have 3.5.0 use original dl posted up top, right??
Rabbit
Should be able to just edit the template and move the code in there. ;)
If you are running 3.5.0, you need to use the one I posted. ;)
Snake
11-05-2005, 03:39 PM
Here you go. ;)
Thanks for this but don't you suppose to release & submit it? Oh and provide us with support for the hack.
Boofo
11-05-2005, 03:52 PM
All I did was update the hook for the plug-in. LW wrote it and is supporting it. ;)
Snake
11-05-2005, 04:06 PM
Ah alright then. I recommend LW to update the ZIP file so people can get and use the fixed version. Just an idea.
silly rabbit
11-05-2005, 10:00 PM
Should be able to just edit the template and move the code in there. ;)
If you are running 3.5.0, you need to use the one I posted. ;)
So, where is YOUR 'installed'(and working fine) link??? Kudo's to both of you!! It appears in the Admin 'Homepage' only right . . .
Thx Again, Rabbit
Boofo
11-06-2005, 05:25 AM
So, where is YOUR 'installed'(and working fine) link??? Kudo's to both of you!! It appears in the Admin 'Homepage' only right . . .
Thx Again, Rabbit
The thread is short. Read it and check out post 38. ;)
divided_by_fear
11-14-2005, 07:51 PM
installed Boofo's and works great thank you
el diablo
11-15-2005, 02:41 AM
Here you go. ;)
Thanks Boofo :)
Works great for 3.5.1!
Boofo
11-15-2005, 03:32 AM
Thanks Boofo :)
Works great for 3.5.1!
Don't forget the install button. ;)
bashy
12-02-2005, 07:47 PM
Hi peeps...
This does not work for me...
I imported the file in to products but still not showing who is actually online :(
Bashy
Yes, those are standard.
Did you install boofo's version?
https://vborg.vbsupport.ru/showpost.php?p=777200&postcount=38
Thanks bro, worked like a charm in 3.5.2
Rickie3
12-09-2005, 07:46 AM
Here you go. ;)
you beauty that one worked for me lol *installed*
bashy
12-09-2005, 09:01 AM
Still dont work for me VB 3.5.2 see pic
Rickie3
12-09-2005, 10:10 AM
Still dont work for me VB 3.5.2 see picthis worked for me https://vborg.vbsupport.ru/showpost.php?p=777200&postcount=38
also make sure you refresh your page
bashy
12-09-2005, 10:33 AM
Hi
Yep ya right...that one works for me also ;)
Cheers guys!!
Mudvayne
12-15-2005, 03:56 PM
Lola Lola.. I just spend 1 hours to find boofo's edited version.. & it works with 3.5.2.. Live Wire u should update ur plugins or highlight boofo's post.. m i wrong ppl? newayz clicked install :P
Scooterpig
12-20-2005, 01:01 AM
Lola Lola.. I just spend 1 hours to find boofo's edited version.. & it works with 3.5.2.. Live Wire u should update ur plugins or highlight boofo's post.. m i wrong ppl? newayz clicked install :P
OK what am I doing worng here. I've tried this over and over again and yes am using Boofo's version and still all I get is the number online and not any names..:(
I take it there are no template edits or anything else to do other than importing the Product, correct?
Any ideas please?
bashy
12-20-2005, 08:25 AM
Hi
Ya prob doing nothing wrong m8...
I too could not see the names straight away...
then a few days later there they were lol :o
Regards
Bashy
Gripemaster
02-03-2006, 01:12 PM
I really like this product... *Clicks Install* :)
Morning Glory
02-06-2006, 06:27 AM
Thanks. I can see the number and not the names.
Lapsetur
02-06-2006, 09:25 AM
I can not see anything. ı installed but nothing happens. 3.5.3
Strat
02-09-2006, 02:51 AM
Same here. 3.5.3 and whether I have it installed or not, no difference. I uninstalled and reinstalled twice, but no change.
HappyDJ
03-12-2006, 12:53 AM
Same for me also
DementedMindz
03-12-2006, 07:31 PM
you need to sometimes read other post
Did you install boofo's version?
https://vborg.vbsupport.ru/showp...0&postcount=38
Ilovechase
03-31-2006, 01:23 PM
I try to install this hack it is awesome for my site, however I have always used 3.5.4 and I keep getting this error Fatal error: Call to a member function on a non-object Can you help me figure out what I am doing wrong?
Thank you
Monie
demojames
06-07-2006, 08:49 PM
Installed, I know I am late to the game, but Thank You!
Boofo's version (https://vborg.vbsupport.ru/showpost.php?p=777200&postcount=38) worked perfectly.
kidron
06-10-2006, 03:31 PM
what's the difference between boofo's and livewire's version? I got another hacks that won't work on my site.. maybe changing the same things boofo did, I could get the other hacks to work =)
Nice hack. *installed*
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.