PDA

View Full Version : Glow Users in Whos Online


350Chevy
08 Dec 2002, 06:19
I got this idea from Jens Gericke's Colored Online Users Hack for Version 2.2.0 (http://www.vbulletin.org/forum/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 (http://www.vbulletin.org/forum/showthread.php?s=&threadid=43679&highlight=glow) which takes about 1 minute to install.

350Chevy
08 Dec 2002, 06:23
screen of whos online in forum index

350Chevy
08 Dec 2002, 06:24
screen of whos online on online page

EvilLS1
08 Dec 2002, 07:37
Cool! I was online at your forum when ya took the screenshot. :D

350Chevy
08 Dec 2002, 07:39
:D

mx3
08 Dec 2002, 19:41
nice hack, 350Chevy. *clicks install*

N9ne
08 Dec 2002, 20:36
Did you do this for forumdisplay also?

350Chevy
08 Dec 2002, 23:58
The attached images show the only things that change the vB software. ;)

Vile
09 Dec 2002, 19:53
hehe, this is cool, thanks :)
*installed

350Chevy
10 Dec 2002, 05:14
Glad you like it. :)

Morgalis
13 Dec 2002, 18:27
*installs*

nice.. thank you

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

350Chevy
14 Dec 2002, 03:58
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
14 Dec 2002, 11:13
Members: 91,621, Threads: 17,150, Posts: 103,706


LOOK @ THIS!!!!!!!
OMG

Harley D
27 Mar 2003, 12:16
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
22 Apr 2003, 19:07
I fixed my problem, I had to use 2 different hacks, edited both and now have it working just fine.

px
13 Aug 2003, 07:17
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
26 Aug 2003, 23:46
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
29 Aug 2003, 22:03
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
07 Sep 2003, 19:20
Is that compatible with 2.3.2? I had it on 2.3.0 and upgraded with no luck.

ssabmud
08 Sep 2003, 05:14
Got it to work. Just had to tweak it a bit. Thanks!!!