Add IP column in Inactive User

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Vastasia2018
Registered User
Posts: 130
Joined: Wed Oct 24, 2018 12:34 pm

Add IP column in Inactive User

Post by Vastasia2018 »

Hi, it would be possible to add a column with the IP address in User Groups>Inactive Users?

Thanks.
Last edited by Mick on Tue Sep 10, 2024 9:26 am, edited 1 time in total.
Reason: Solved.
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 522
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: Add IP column in Inactive User

Post by danieltj »

It would probably require some modification of core files potentially as I don't know if there are many template events there. What code have you written already?
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
Vastasia2018
Registered User
Posts: 130
Joined: Wed Oct 24, 2018 12:34 pm

Re: Add IP column in Inactive User

Post by Vastasia2018 »

danieltj wrote: Fri May 24, 2024 11:06 am It would probably require some modification of core files potentially as I don't know if there are many template events there. What code have you written already?
Hi, I haven't written any code, I would just like to know if it would be possible to do this with a change to the ACP code. I'm not an expert and wouldn't know how to do it.
User avatar
Anișor
Translator
Posts: 331
Joined: Tue Jan 08, 2013 9:36 pm
Location: Arbroath, Angus, Scotland

Re: Add IP column in Inactive User

Post by Anișor »

Vastasia2018 wrote: Fri May 24, 2024 9:28 am Hi, it would be possible to add a column with the IP address in User Groups>Inactive Users?

Thanks.
adm/styles/acp_inactive.html
Look for:
<th>{L_EMAIL}</th>
Add under:
<th>{L_IP}</th>
Look for:
<td style="vertical-align: top;">{inactive.USER_EMAIL}</td>
Add under:
<td style="vertical-align: top;">{inactive.USER_IP}</td>
includes/acp/acp_inactive.php
Look for:
'USER_EMAIL' => $row['user_email'],
Add under:
'USER_IP' => $row['user_ip'],

Purge cache.
Vastasia2018
Registered User
Posts: 130
Joined: Wed Oct 24, 2018 12:34 pm

Re: Add IP column in Inactive User

Post by Vastasia2018 »

Anișor wrote: Sat Aug 17, 2024 5:51 pm
Vastasia2018 wrote: Fri May 24, 2024 9:28 am Hi, it would be possible to add a column with the IP address in User Groups>Inactive Users?

Thanks.
adm/styles/acp_inactive.html
Look for:
<th>{L_EMAIL}</th>
Add under:
<th>{L_IP}</th>
Look for:
<td style="vertical-align: top;">{inactive.USER_EMAIL}</td>
Add under:
<td style="vertical-align: top;">{inactive.USER_IP}</td>
includes/acp/acp_inactive.php
Look for:
'USER_EMAIL' => $row['user_email'],
Add under:
'USER_IP' => $row['user_ip'],

Purge cache.
It worked! Thank you so much. :D

Return to “phpBB Custom Coding”