![]() |
Resolve IPs only on demand
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! :) |
neato! (see post below for screenie)
|
I clicked 127.0.0.1 in the example...it appears that [img] code isn't allowed :rolleyes:
|
cool
|
great hack :D
[high]* DWZ clicks install button[/high] |
You mentioned tracert, but I think you mean nslookup.
Nice hack, great addition. I will apply this soon. |
Very nice hack, I will install later today, thanks for sharing :D
|
Quote:
|
If anybody wants a vbHacker file for 2.2.5 just say so and I'll try it :)
|
]for 2.2.4 thanx! :D
|
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 :) |
]oki :D
|
Well for some reason vbHackMaker is butchering up my quotes: when doing the template it does this:
Code:
<a href=\"javascript:resolveip(\'$userinfo[ipaddress]\')\">$userinfo[ipaddress]</a> |
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! :)
|
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 ;)
|
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! :)
|
I uploaded a new version: this one will say so if the IP will not resolve.
|
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. |
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. |
I changed this part of your file to reflect the www that might be needed for most ISPs.
Code:
<a href=\"javascript:go('http://www.$suffix')\">$suffix</a> Quote:
|
I edited the php file (now 1.1.1) with your suggestion. Now it shows both. :)
|
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. :)
|
Will do...
|
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 :( |
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).
Quote:
|
Weird :confused: Try it now.
|
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. :))
Quote:
|
I used window.open instead of opener.location ;)
|
I just upped version 1.1.3. This now properly handles country codes theoretically. ;)
|
You took out the part to open it up in a new window, why?
Quote:
|
D'OH! One sec...
|
Fixed
|
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.
|
Fixed
|
Works good. Any more updates planned? :)
Quote:
|
Not unless you can suggest some...
|
Give me some time and I'm sure something will come to me to add to it. :)
Quote:
|
Thank you so much for this hack. You have NO idea how much this has helped me. :)
|
Cheers :)
BTW, this hack should be compatible with 2.2.7; I don't believe any of the Who's Online templates have changed. |
I'm getting the following message whenever I attempt to click on any IP to resolve it:
Quote:
PHP Code:
|
All times are GMT. The time now is 06:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|