User Statistics

Update to current IP - User Statistics

Update to current IP

by Webmaster Chuck » Sun Jul 21, 2019 8:32 pm

I was wondering if there is a way to get this extension to update to the latest logged in IP address?

For instance... The IP address that shows for me, is the one I registered the Admin account when I set the forums up.

My IP has changed from my ISP 5 times in the last year, but still shows the outdated one.

Thanks!
User avatar
Webmaster Chuck
Registered User
Posts: 43
Joined: Thu Feb 25, 2016 10:21 pm
Location: Glendale, AZ
Name: Charles Waters
Contact:

Re: Update to current IP

by Senky » Mon Jul 22, 2019 6:25 am

Open event/listener.php, find:

Code: Select all

				'US_IP'			=> $this->user->data['user_ip'],
replace with:

Code: Select all

				'US_IP'			=> $this->user->ip,
Senky
Extension Customisations
Extension Customisations
Posts: 2146
Joined: Thu Apr 30, 2009 8:49 pm
Name: Jakub
Contact:

Re: Update to current IP

by Webmaster Chuck » Fri Jul 26, 2019 1:05 am

Senky wrote:Open event/listener.php, find:

Code: Select all

				'US_IP'			=> $this->user->data['user_ip'],
replace with:

Code: Select all

				'US_IP'			=> $this->user->ip,
Worked like a champ!!! EXACTLY what I was looking for!

Again, thanks for a great mod!
User avatar
Webmaster Chuck
Registered User
Posts: 43
Joined: Thu Feb 25, 2016 10:21 pm
Location: Glendale, AZ
Name: Charles Waters
Contact: