View Full Version : Who's Online IP request...
Brian Cruz
12-11-2001, 01:28 AM
I run an animation forum, and we often have people from Cartoon Network visit us. It's easy to tell who they are because they all have the exact same IP address. What I'd like to do is alter the Who's Online feature so that whenever a CN person is browsing the forum, their IP address (or maybe the whole row) is highlighted somehow. And I only want this to show up for mods/admins. How can this be done?
Admin
12-11-2001, 05:12 AM
What is their IP address?
Brian Cruz
12-11-2001, 05:39 AM
198.81.230.200. It seems that every computer at Cartoon Network goes through that one IP. There are 4 CN employees already registered with us, and they all share that address. I also see other people with the same IP on Who's Online from time to time, and having them highlighted somehow would make them easier to spot.
I have it set so only mods and admins can view IPs in Who's Online, so I all I really need is someway of making it stand out. Something as simple as making that IP address yellow would do.
Admin
12-11-2001, 06:32 AM
In online.php replace this:
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");
with this:
if ($userinfo[ipaddress]=='198.81.230.200') {
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_iphigh")."\";");
} else {
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";");
}
Now create a new template, whosonlinebit_iphigh and make it just like whosonlinebit_ip only with yellow color or something.
Scott MacVicar
12-11-2001, 02:14 PM
btw just in case your wondering about the IP thing, they will have a proxy running on the network that the computers on so each computer doesn't need to have a dialup, so all data is passed through one computer which is connected to the net, so the IP your getting is that of the proxy server.
Scott
Brian Cruz
12-12-2001, 12:08 AM
Works great! Thanks Firefly!
Admin
12-12-2001, 05:23 AM
Sweet. :D
hypedave
12-23-2001, 02:39 AM
its doesnt work for me, when i input the ip address that is showing then go to check the online
it shows no ip address at all :(
my current set up
vbb 2.2.1
vbportals 3.0 r7
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.