Poster IP in Viewtopic

Change website IP query - Poster IP in Viewtopic

Change website IP query

by 2600 » Fri Aug 25, 2017 12:11 am

Hi. I would like to change the website to this: http://whatismyipaddress.com/

How would I go about doing that? uTrace isn't all that accurate and it doesn't seem to work with IPv6 all that well.

Edit-


Figured it out! It's in the event/listener.php file at the bottom and I used http://whatismyipaddress.com/ip/
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: Change website IP query

by Art Poulos » Mon Dec 17, 2018 9:54 pm

This doesn't work (page not found). Any other site?
Art Poulos
Registered User
Posts: 117
Joined: Thu May 01, 2014 2:38 pm

Re: Change website IP query

by RMcGirr83 » Mon Dec 17, 2018 10:53 pm

Works fine. I just tested it on 3.2.4 and uTrace pops right up.
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 website IP query

by Art Poulos » Tue Dec 18, 2018 12:54 am

Utrace shows the map but it is dark colored and says "This page can't load Google Maps correctly". Also there is a water mark on the map saying "For development purposes only".
Art Poulos
Registered User
Posts: 117
Joined: Thu May 01, 2014 2:38 pm

Re: Change website IP query

by RMcGirr83 » Tue Dec 18, 2018 1:48 am

So change it to what you would prefer to use
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 website IP query

by Art Poulos » Wed Dec 19, 2018 6:14 pm

I'm sorry Rich, I don't understand. The message I'm getting (This page can't load Google maps... and For development...) is it related to my system or is there a problem with Utrace site (expired API...)?
Using the link/site mentioned in the first post (here) doesn't work right.
Art Poulos
Registered User
Posts: 117
Joined: Thu May 01, 2014 2:38 pm

Re: Change website IP query

by RMcGirr83 » Wed Dec 19, 2018 6:23 pm

That's a uTrace problem, if you don't want to use uTrace then open the listener file within the extension and find this line

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

and replace it with this

'POSTER_IP_WHOIS' => "https://whatismyipaddress.com/ip/" . $poster_ip,

pay attention to the find and replace.

You'll then get something like this for the popup
Capture.PNG
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 website IP query

by Art Poulos » Wed Dec 19, 2018 10:44 pm

It worked!
Thank you.
Art Poulos
Registered User
Posts: 117
Joined: Thu May 01, 2014 2:38 pm

Re: Change website IP query

by aeneas1 » Thu Dec 20, 2018 5:50 am

first let me say that i love this extension and have been using it for quite a while, so thank you very much RMcGirr83!

for me utrace was having issues with ipv6 ip addresses, it was returning a not found or error message, don't remember which, so i change the link to keycdn ("https://tools.keycdn.com/geo?host=") and it's working like a charm, and it's much faster than utrace (on my system at least)!
aeneas1
Registered User
Posts: 451
Joined: Wed Jan 27, 2016 5:58 pm

Re: Change website IP query

by RMcGirr83 » Thu Dec 20, 2018 11:33 am

There's a whole plethora of one's out there. Just have to choose which one you want to use. I'm glad you're enjoying the extension.
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