vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Resolve IPs only on demand (https://vborg.vbsupport.ru/showthread.php?t=38674)

filburt1 05-15-2002 10:00 PM

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! :)

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:

Neo 05-16-2002 02:21 AM

cool

DWZ 05-16-2002 06:16 AM

great hack :D

[high]* DWZ clicks install button[/high]

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

Quote:

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:
Code:

<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.

Code:

<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! :)

Quote:

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).

Quote:

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. :))

Quote:

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?

Quote:

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? :)

Quote:

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. :)

Quote:

Originally posted by filburt1
Not unless you can suggest some...

Diva 09-07-2002 09:34 PM

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:
Quote:

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:
PHP Code:

<? $ip_resolved = gethostbyaddr($ip);

I am running version 2.3.0. Any help would be appreciated!


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
  • Page Generation 0.01909 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete