View Full Version : Who's Online, list by usergroups!
Admin
11-13-2001, 10:00 PM
This great hack was requested by eva2000 here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=32311
I liked the idea, so I made it really cool (if I may say! :D).
This hack adds a special section to the Who's Online, that only mods and admins can see.
In that section, there are links to all usergroups you have set up on your forum, except for the COPPA group (I figured no one really needs it :)).
When you click on each link, you will be taken to a new Who's Online page, that will only list users from the selected usergroup.
That's all basically. Very good to see what your mods are doing, where the banned people are trying to get, etc. :)
A screen shot of the page can be found in my next post.
I hope it explains everything, let me know if something remains mysterious.
I really tried to make this hack as good as it can get.
I hope I covered all aspects, so you shouldn't be getting any weird bugs or anything like that.
Sorry for not making a fancy installation script, I figured it's not really necessary for this hack. :)
Anyway, instructions are included in the text file attached.
You will need to edit one file (online.php), one template (whosonline) and add a new template (whosonline_usergrouplinks).
Have fun! :D
Admin
11-14-2001, 03:36 PM
Screen shot. :)
squawell
11-14-2001, 03:42 PM
it's a great hack!!
thanks FireFly~:D
Admin
11-14-2001, 04:14 PM
By the way, this is installed here.
Not that it matters for you... :p
eva2000
11-14-2001, 04:55 PM
thank you Firefly :D
awesome :)
Tarion
11-14-2001, 05:51 PM
THX Firefly
a very cool Hack, it works perfetly on my Board :)
fonzerelli_79
11-14-2001, 05:53 PM
great hack firefly
fonzerelli_79
11-14-2001, 06:02 PM
great hack firefly
-=dm=-
11-14-2001, 11:02 PM
Hi
Im new to all that, what do u guys use for edit those templates?
thanx
dm
fonzerelli_79
11-14-2001, 11:06 PM
just go to the admin section of your forum
Hi. I installed a hack that blocks admin and mods location from being seen in whos online. We now default to main index. Is there a way to not include admin in this hack? Will the other hack cause interference?
Bedhead
11-15-2001, 06:06 AM
I am running php3.
I have changed all php to php3.
I get it all, exept the bottom half for user groups what have i done wrong?
Bedhead
11-15-2001, 04:05 PM
Anyone else having this problem?
I can't see the user groups.
What can be done to fix this?
TIA
The Realist
11-16-2001, 08:37 PM
Installed this hack and works fine but............. since I Installed it my who is online have gone extreamly slow on loading?
Any help?
:(
-=dm=-
11-16-2001, 08:58 PM
Originally posted by The Realist
Installed this hack and works fine but............. since I Installed it my who is online have gone extreamly slow on loading?
Any help?
:(
Im having the problem
ariaforums
11-17-2001, 07:57 AM
Excellent hack, works like a charm :D
co-admin installed this hack on 2.2.1 works a damn treat :) excellent hack
Dark Blaze
11-30-2001, 11:43 AM
Nice hack :)
I'm going to install it very soon indeed. :cool:
Hooper
12-01-2001, 04:42 PM
Super Nice. Thanks.
Question though.
I have logged in as a member and then log myself in through the CP. When I go back to my members browser, they too are seeing the same administration panel. Is this just a cookie deal with me being logged in twice on one machine? I was trying to verify that indeed the members are not seeing what I am seeing.
Thanks
Okiewan
01-03-2002, 04:04 PM
well I feel like a total newbie...
went thru the install twice... checked, double checked, no show. Continues to show the stock version. Any suggestions? Great hack would love to use it. :confused:
Admin
01-03-2002, 07:03 PM
Did you upload the new online.php file?
Okiewan
01-03-2002, 07:14 PM
yessir.
Lucky
01-04-2002, 06:29 AM
Thanks.
Works great!
Xelation
04-09-2002, 11:24 PM
I can't find
function getusergrouplinks($current=0) {
global $DB_site, $usergrouplinks;
$linkbits='';
$allgroups=$DB_site->query("SELECT usergroupid,title FROM usergroup WHERE usergroupid<>'4' ORDER BY title");
while ($group=$DB_site->fetch_array($allgroups)) {
$groupid=$group[usergroupid];
$grouptitle=$group[title];
if ($linkbits)
$linkbits.=', ';
if ($groupid==$current)
$linkbits.='<b>[</b>'.$grouptitle.'<b>]</b>';
else
$linkbits.='<a href="online.php?s='.$session[sessionhash].'&what='.$groupid.'">'.$grouptitle.'</a>';
}
$linkbits.='.';
eval("\$usergrouplinks = \"".gettemplate("whosonline_usergrouplinks")."\";");
}
if ($bbuserinfo[usergroupid]!=5 and $bbuserinfo[usergroupid]!=6 and $bbuserinfo[usergroupid]!=7) {
unset($what);
} elseif (!isset($what) or $what=='') {
getusergrouplinks();
}
if ($what=="banned" and $bannedgroup=$DB_site->query_first("SELECT usergroupid,title FROM usergroup WHERE title LIKE '%banned%'")) {
$navbar='<a href="online.php?s='.$session[sessionhash].'">Who\'s Online</a> > '.$bannedgroup[title];
$tablehead='$numbervisible $bannedgroup[title]';
$condition='AND user.usergroupid='.$bannedgroup[usergroupid];
$formeta='&what='.$bannedgroup[usergroupid];
getusergrouplinks($bannedgroup[usergroupid]);
} elseif ($what=="awaiting") {
$navbar='<a href="online.php?s='.$session[sessionhash].'">Who\'s Online</a> > Users Awaiting Email Confirmation';
$tablehead='$numbervisible Users Awaiting Email Confirmation';
$condition='AND user.usergroupid=3';
$formeta='&what=awaiting';
getusergrouplinks(3);
} elseif ($what==1 or $what=="guest") {
$navbar='<a href="online.php?s='.$session[sessionhash].'">Who\'s Online</a> > Unregistered / Not Logged In';
$tablehead='$numbervisible Unregistered / Not Logged In';
$condition='AND session.userid=0';
$formeta='&what=1';
getusergrouplinks(1);
} elseif (isset($what) and $what!=='') {
$usergroupinfo=verifyid("usergroup",$what,1,1);
$navbar='<a href="online.php?s='.$session[sessionhash].'">Who\'s Online</a> > '.$usergroupinfo[title];
$tablehead='$numbervisible $usergroupinfo[title]';
$condition='AND user.usergroupid='.$usergroupinfo[usergroupid];
$formeta='&what='.$usergroupinfo[usergroupid];
getusergrouplinks($usergroupinfo[usergroupid]);
} else {
$navbar='Who\'s Online';
$tablehead='$numbervisible Members and $numberguests Guests';
$condition='';
$formeta='';
}
in the online.php file... I'm running 2.2.5
any help?
Admin
04-10-2002, 10:04 AM
That's what you need to ADD, Xelation. :)
yzztik
08-30-2003, 01:14 AM
Is there any way to exclude certain groups from the list?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.