Poster IP in Viewtopic

Change IP lookup provider? - Poster IP in Viewtopic

Change IP lookup provider?

by Quiff Boy » Tue Jul 14, 2020 9:37 am

Loving this extension but the lookup tool is consistently providing incorrect location information - at least for UK visitors, which are the bulk of my users.

I manually ran a large sample of old poster IPs - including posts where I personally already knew the poster's location - through this lookup site and it seems more accurate:

https://www.whatismyip.com/

Is it possible to change the site used in the extension?

I could edit the files myself and change it but just wondered if it was a thing other folks thought of value?
Quiff Boy
Registered User
Posts: 54
Joined: Thu Mar 01, 2007 5:41 pm
Location: The Land of Lard

Re: Change IP lookup provider?

by Quiff Boy » Tue Jul 14, 2020 9:47 am

this is what I've done to my version of the extension:

in: event/listener.php

find:

Code: Select all

				'POSTER_IP_WHOIS'	=> "http://en.utrace.de/?query=" . $poster_ip,
replace with:

Code: Select all

				'POSTER_IP_WHOIS'	=> "https://www.whatismyip.com/" . $poster_ip,
Quiff Boy
Registered User
Posts: 54
Joined: Thu Mar 01, 2007 5:41 pm
Location: The Land of Lard

Re: Change IP lookup provider?

by Quiff Boy » Tue Jul 14, 2020 10:18 am

Whoops, just realised this is a duplicate of this older post:

https://www.phpbb.com/customise/db/exte ... pic/181811

Sorry!
Quiff Boy
Registered User
Posts: 54
Joined: Thu Mar 01, 2007 5:41 pm
Location: The Land of Lard

Re: Change IP lookup provider?

by RMcGirr83 » Tue Jul 14, 2020 11:20 pm

Quiff Boy wrote:this is what I've done to my version of the extension:

in: event/listener.php

find:

Code: Select all

				'POSTER_IP_WHOIS'	=> "http://en.utrace.de/?query=" . $poster_ip,
replace with:

Code: Select all

				'POSTER_IP_WHOIS'	=> "https://www.whatismyip.com/" . $poster_ip,
I just created a new version if you'd like to test it.

https://github.com/rmcgirr83/posteripin ... tag/v1.1.0
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Change IP lookup provider?

by Quiff Boy » Wed Jul 15, 2020 5:30 pm

Works great, and love how it uses a modal window rather than a opening new browser popup window.

Thanks :)
Quiff Boy
Registered User
Posts: 54
Joined: Thu Mar 01, 2007 5:41 pm
Location: The Land of Lard

Re: Change IP lookup provider?

by RMcGirr83 » Wed Jul 15, 2020 8:18 pm

You're welcome. It's sitting in the queue to be validated.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22092
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Change IP lookup provider?

by Catsmother » Tue Aug 11, 2020 9:07 pm

RMcGirr83 wrote:
Quiff Boy wrote:this is what I've done to my version of the extension:

in: event/listener.php

find:

Code: Select all

				'POSTER_IP_WHOIS'	=> "http://en.utrace.de/?query=" . $poster_ip,
replace with:

Code: Select all

				'POSTER_IP_WHOIS'	=> "https://www.whatismyip.com/" . $poster_ip,
I just created a new version if you'd like to test it.

https://github.com/rmcgirr83/posteripin ... tag/v1.1.0
Nice extension, Just installed it :)
Thank you.
Catsmother
Registered User
Posts: 43
Joined: Sun Aug 02, 2020 7:35 pm