PDA

View Full Version : Glow Users in Whos Online


350Chevy
12-07-2002, 10:00 PM
I got this idea from Jens Gericke's Colored Online Users Hack for Version 2.2.0 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32149).

His is nice but I needed something that would stand out on any background style as I have many. This mod will stand out on Dark and Light style boards. I've also added the glow to the Who's Online page which is another thing missing from his that I wanted. It will show Admin in Red and ALL moderators (including Super Moderators) the same color because I was lazy to add the different ID's and colors for Super Moderator/Moderator but the color is all that matters right!? :D

Installation is easy. I'll post screenies below.

Default is Admin color Red"#FF0000", Super Moderator color Blue"#0000FF", Moderator color Green"#009933", and regular members are your standard vB color with no glow.

You can change these colors to match whatever you'd like.

This may require the Glow Mod (https://vborg.vbsupport.ru/showthread.php?s=&threadid=43679&highlight=glow) which takes about 1 minute to install.

350Chevy
12-08-2002, 05:23 AM
screen of whos online in forum index

350Chevy
12-08-2002, 05:24 AM
screen of whos online on online page

EvilLS1
12-08-2002, 06:37 AM
Cool! I was online at your forum when ya took the screenshot. :D

350Chevy
12-08-2002, 06:39 AM
:D

mx3
12-08-2002, 06:41 PM
nice hack, 350Chevy. *clicks install*

N9ne
12-08-2002, 07:36 PM
Did you do this for forumdisplay also?

350Chevy
12-08-2002, 10:58 PM
The attached images show the only things that change the vB software. ;)

Vile
12-09-2002, 06:53 PM
hehe, this is cool, thanks :)
*installed

350Chevy
12-10-2002, 04:14 AM
Glad you like it. :)

Morgalis
12-13-2002, 05:27 PM
*installs*

nice.. thank you

i have numerous user groups that i am going to adapt this for

350Chevy
12-14-2002, 02:58 AM
Originally posted by Morgalis
*installs*

nice.. thank you

i have numerous user groups that i am going to adapt this for

Most users ever online was 2280 on 11-10-2002 at 01:32 AM.


Thanks, and holy crap that's a lot of users online at one time! That's twice as many members than I have! LOL!

flup
12-14-2002, 10:13 AM
Members: 91,621, Threads: 17,150, Posts: 103,706

LOOK @ THIS!!!!!!!
OMG

Harley D
03-27-2003, 11:16 AM
I get an error only after editing my forum/index.php.

It refers to line #348 which has this ?>

When I go to ### find: ### I don't get an exact match? this is what I have, and try to replace that causes the error on line# 348. $loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
$DB_site->free_result($loggedins);

$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;
Now I realize I have pasted more of the area, than what ia actually REPLACED, but I thought it may help in finding why I get the error.

If more info is needed, PLEASE just let me know.

Thank You

Harley D
04-22-2003, 06:07 PM
I fixed my problem, I had to use 2 different hacks, edited both and now have it working just fine.

?????p?x????
08-13-2003, 06:17 AM
Wow! This is EXACTLY what I was in search of! As an administrator, I want my username in posts to glow (which shouldn't be hard at all). Finding a Who's Online glowing hack would be the hard part, but you saved me here.

Thanks man!

enginethatcan't
08-26-2003, 10:46 PM
I love it...one problem though, maybe you can help

When i click on the username of the prson online and highlighted, i get this message:

"
This user has not registered and therefore does not have a profile to view. "

any suggestions?

enginethatcan't
08-29-2003, 09:03 PM
Another thing.....

I sign in and it works fine...but than I (and other members) don't show up after someone logs in.

it still says "XXX members online though"

ssabmud
09-07-2003, 06:20 PM
Is that compatible with 2.3.2? I had it on 2.3.0 and upgraded with no luck.

ssabmud
09-08-2003, 04:14 AM
Got it to work. Just had to tweak it a bit. Thanks!!!