The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?
|
#2
|
||||
|
||||
What is their IP address?
|
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
In online.php replace this:
Code:
eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";"); Code:
[high] if ($userinfo[ipaddress]=='198.81.230.200') { eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_iphigh")."\";"); } else {[/high] eval("\$onlinebit_ip = \"".gettemplate("whosonlinebit_ip")."\";"); [high] }[/high] |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
Works great! Thanks Firefly!
|
#7
|
||||
|
||||
Sweet.
|
#8
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|