View Full Version : Resolve IPs only on demand
filburt1
05-15-2002, 10:00 PM
The biggest problem I've had with the Who's Online is the resolving IPs. If you set the admin CP option for it to on, then they all get resolved and it makes the page load very slowly. If you turn it off, then you have to tracert the thing yourself.
With this hack, the IP in Who's Online (if you're a mod/supermod/admin) will be clickable. Clicking it will open up a new window that resolves the IP, if it can.
A screenshot's in the next post once I post the hack itself here. I tested it on my version of vBulletin (a highly hacked 2.2.3) but it should work on practically any 2.x.x board, although I'd recommend 2.2.x.
If you want support for the hack, just post here.
Enjoy! :)
Velocd
05-16-2002, 01:01 AM
neato! (see post below for screenie)
filburt1
05-16-2002, 01:05 AM
I clicked 127.0.0.1 in the example...it appears that [img] code isn't allowed :rolleyes:
great hack :D
* DWZ clicks install button
Floris
05-16-2002, 09:09 AM
You mentioned tracert, but I think you mean nslookup.
Nice hack, great addition. I will apply this soon.
NTLDR
05-16-2002, 09:19 AM
Very nice hack, I will install later today, thanks for sharing :D
filburt1
05-16-2002, 09:45 AM
Originally posted by xiphoid
You mentioned tracert, but I think you mean nslookup.
Nice hack, great addition. I will apply this soon.
In Windows traceroute will also resolve the IP. :)
filburt1
05-16-2002, 06:29 PM
If anybody wants a vbHacker file for 2.2.5 just say so and I'll try it :)
wooolF[RM]
05-16-2002, 06:34 PM
]for 2.2.4 thanx! :D
filburt1
05-16-2002, 06:36 PM
I can only get the 2.2.5 install files though :(
No file edits are needed, just a file upload and template edits, so it should be safe anyway :)
wooolF[RM]
05-16-2002, 06:37 PM
]oki :D
filburt1
05-16-2002, 07:05 PM
Well for some reason vbHackMaker is butchering up my quotes: when doing the template it does this:
<a href=\"javascript:resolveip(\'$userinfo[ipaddress]\')\">$userinfo[ipaddress]</a>
In the file it looks like that, but when I use vbHacker to try installing the hack it actually dumps that in the whosonlinebit_ip template. If somebody wants to try (it's my first time working with vbHackMaker) then be my guest...:(
Boofo
05-16-2002, 07:34 PM
Works like a charm. Thanks! :) I don't know why you would want to bother will porting it to vbhacker, though. It would take longer to run that than to do the 2 minor template edits and upload the file. If I can install it without messing it up, then anybody can! :)
filburt1
05-17-2002, 05:46 PM
It's just that most people like vbHacker (I would too if I bothered to upgrade my board with its tons of hacks), but you're right, it would probably be more effort to use vbHacker ;)
Boofo
05-17-2002, 05:54 PM
I've used vbhacker on some of my installed hacks and it works great for the bigger hacks, but something as little as this is, it really isn't worth the time and trouble for you to mess with it. You dun good! :)
filburt1
05-18-2002, 12:51 AM
I uploaded a new version: this one will say so if the IP will not resolve.
ixian
06-02-2002, 08:26 AM
Great hack! Thank you! Browsing who's online is much faster now.
Have it working no problem in 2.2.6. BTW, I wouldn't bother with a vbhacker version, this is one of the easiest hacks I have installed.
filburt1
06-06-2002, 02:48 AM
This latest version adds two cool new features. If the IP could be resolved, then a link to the (guessed) ISP home page and a link to abuse@ispdomanname is provided. Pretty fun if somebody is spamming your board and you can open your mail client to their abuse e-mail address in two clicks.
To install the update just overwrite resolveip.php with the new one.
Boofo
06-06-2002, 04:36 AM
I changed this part of your file to reflect the www that might be needed for most ISPs.
<a href=\"javascript:go('http://www.$suffix')\">$suffix</a>
When I tried it with the original updated file here, it gave me a page not found error. But after adding the www, it found it fine. Great addition! :)
Originally posted by filburt1
This latest version adds two cool new features. If the IP could be resolved, then a link to the (guessed) ISP home page and a link to abuse@ispdomanname is provided. Pretty fun if somebody is spamming your board and you can open your mail client to their abuse e-mail address in two clicks.
To install the update just overwrite resolveip.php with the new one.
filburt1
06-06-2002, 03:08 PM
I edited the php file (now 1.1.1) with your suggestion. Now it shows both. :)
Boofo
06-06-2002, 03:14 PM
Can you also edit it show when you click on the ISPs link, it opens it in a new window? I closed my browser and got disconnected from the board. I keep forgetting it. :)
filburt1
06-06-2002, 06:35 PM
Will do...
filburt1
06-06-2002, 06:38 PM
Latest hack version uploaded.
BTW, would somebody please post a screenshot of this latest version in action? I don't have Photochop on this computer :(
Boofo
06-06-2002, 08:09 PM
The zip file in the first post is the same as 1.1. It does not have the opening in a new window function. :) (I cleared my cache before I tried to download it).
Originally posted by filburt1
Latest hack version uploaded.
BTW, would somebody please post a screenshot of this latest version in action? I don't have Photochop on this computer :(
filburt1
06-06-2002, 09:44 PM
Weird :confused: Try it now.
Boofo
06-06-2002, 11:04 PM
That's the one! It opens in a new window now. Thanks! (I have to know, though, how did you get it to open in the new window? I messed with it for over an hour and couldn't get it to take. :))
Originally posted by filburt1
Weird :confused: Try it now.
filburt1
06-06-2002, 11:18 PM
I used window.open instead of opener.location ;)
filburt1
06-07-2002, 01:11 PM
I just upped version 1.1.3. This now properly handles country codes theoretically. ;)
Boofo
06-07-2002, 01:46 PM
You took out the part to open it up in a new window, why?
Originally posted by filburt1
I just upped version 1.1.3. This now properly handles country codes theoretically. ;)
filburt1
06-07-2002, 02:18 PM
D'OH! One sec...
filburt1
06-07-2002, 02:20 PM
Fixed
Boofo
06-07-2002, 02:59 PM
I've attached a .gif There seems to be the word COM showing up in big letters for no reason, I circled it in red. The black boxes are just my information cut out.
filburt1
06-07-2002, 04:42 PM
Fixed
Boofo
06-07-2002, 04:53 PM
Works good. Any more updates planned? :)
Originally posted by filburt1
Fixed
filburt1
06-07-2002, 06:06 PM
Not unless you can suggest some...
Boofo
06-07-2002, 09:44 PM
Give me some time and I'm sure something will come to me to add to it. :)
Originally posted by filburt1
Not unless you can suggest some...
Thank you so much for this hack. You have NO idea how much this has helped me. :)
filburt1
09-07-2002, 09:43 PM
Cheers :)
BTW, this hack should be compatible with 2.2.7; I don't believe any of the Who's Online templates have changed.
reismarktq2
06-10-2003, 07:09 PM
I'm getting the following message whenever I attempt to click on any IP to resolve it:Warning: Address is not a valid IPv4 or IPv6 address in /var/www/html/forums/resolveip.php on line 17
The IP address could not be resolved to a hostname.This is line 17 in resolveip.php:<? $ip_resolved = gethostbyaddr($ip);I am running version 2.3.0. Any help would be appreciated!
Hi filburt1! This hack has been a life saver for me... I was wondering if you'll be upgrading this for VB3-Gold. *crosses fingers and batts eyes*
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.