![]() |
Who's Online In Admin CP
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 :D 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 :D |
Screenshot :D
|
Can you please post a screenshot?
*EDIT* Nevermind, you beat me to it. ;) |
Question: Does it show who's online in the adminCP, or does it show who's online on the forum and/or adminCP in the adminCP?
If it shows who's online on the whole forum aswell, it'd be a bit long for my forum :( |
It's a slimline version of what you get on online.php ;)
|
Looks good. That's EXACTLY what I was looking for. You did a great job. Thanks to joecool too for helping me earlier. Great job!
|
*EDIT* Fixed
|
J-OST could be different sessions... does it show the same exact time? regards...
NTLDR looking nice man :) just on a side not you could accomplish the same effect simply by creating linkage to the who's online file and call it straight from the forum ;) but either way good job :) regards... g-force2k2 |
like an Iframe I guess
|
Hey.. great improvement over my hack ;)
|
Quote:
|
Quote:
|
I had some cosmetic issues to say the least, but fixed i by adding the code above
Code:
doformheader("user","find"); [high]* Link14716 clicks install.[/high] |
This is a slimline version of whos online? So does it just show whos in the admin cp or the whole forum + the admin cp... I'm not sure that was answered...?? :D
|
It's a slimline version of the who's online page, but will also show who's in the Admin CP
|
Any change you could make a small mod for me?
So that this just shows who's in the cp when you're there. |
Just installed, great work. :)
|
I like that iframe view ... the thing I don't grab from this one is that it doesn't reveal the location of the user ... or am I forgetting to do something here!
This part of the code seems to be set to where you want people to show up in the location area: 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]; I rather it tell me where they actually are, instead of a static "control panel" location entry. One other thing that noticed when I tested was that it repeated the user names (made duplicates) of users in the same window. I was only logged in once and it showed me and other users as being logged in twice! Sorry, but it didn't workout for me. |
The static location Control Panel appears as there arn't any locations for users within the Admin CP, the DB entry for location when in the ACP is blank. Users appearing multiple times is due to multiple current sessions within the DB for the user, like after you have just logged into the ACP.
|
I'm getting this in the admin. Doesn't seem right. I'm in there several time s and we're all located in the control panel. I checked mydomain/online.php and that seems to be working fine.
Maybe you answered this above not sure! Ant help???? Thanks |
Quote:
|
Each time you log into the ACP you are given a "fresh" session, so you get duplicate sessions in the DB which is why users in the CPs may appear more than once.
|
Thanx NTLDR! :)
[high]* Minifreunde klicks install![/high] |
Nice one.
Did a couple of minor changes to show the IP too. |
Nice one.
Did a couple of minor changes to show the IP too. |
Quote:
Love this hack, but I've noticed a problem. Seems it's showing all user locations as being in the Control Panel, when that's not correct. (See attachment.) At the time I took that shot, the top person was looking at our forum's main page and the next one shown was viewing something in our photo gallery. Neither of these members have access to the ACP. Any suggestions how to fix this? |
Seems to be working ok so far..
Nice hack, thanks NTLDR :) |
Quote:
|
I get all my users in the Control Panel too. I'm on VB 2.2.9 , PHP v4.2.2 and MySQL v3.23.41.
Did anyone figure this out? |
??
|
Just to add... when a 'Guest' is online, it shows the actual thread/location. Anyone registered though, it just shows "Control Panel"
|
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. ;) |
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? |
Bug Fix!
Code:
if ($online[location] = " ") { Code:
if ($online[location] == " ") { |
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
http://www.thesportsforum.net/adminscreen.gif |
Great Hacks...
OmaniMan .. Install It |
I am also curious as to why it shows everyone in control panel rather than where they really are...
|
Works perfectly, way to go. :)
|
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:
PHP Code:
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! |
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:
|
All times are GMT. The time now is 07:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|