Adding info to inactive user list

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
ffa
Registered User
Posts: 8
Joined: Wed Jan 21, 2009 10:57 am

Adding info to inactive user list

Post by ffa »

Is there any quick way of pulling in other information for this list? I would like to use e-mail address and/or custom profile fields.

Thank you
User avatar
lucky89
Registered User
Posts: 145
Joined: Wed Apr 04, 2007 1:54 pm
Location: Buenos Aires, Argentina
Name: Lucas

Re: Adding info to inactive user list

Post by lucky89 »

yes you can...

First of all.. go to includes/functions_admin.php and find:

Code: Select all

	$sql = 'SELECT user_id, username, user_regdate, user_lastvisit, user_inactive_time, user_inactive_reason
then remplace it for this:

Code: Select all

	$sql = 'SELECT user_id, username, user_email, user_regdate, user_lastvisit, user_inactive_time, user_inactive_reason
Save the file and then...

2º Go to includes/functions/acp/acp_inactive.php and find:

Code: Select all

'USERNAME'		=> $row['username'],
and after add

Code: Select all

'EMAIL'			=> $row['user_email'],
Save the file and then go to adm/style/acp_inactive.html and find

Code: Select all

<th>{L_USERNAME}</th>
and after add

Code: Select all

<th>{L_EMAIL}</th>

Then find

Code: Select all

<td><a href="{inactive.U_USER_ADMIN}">{inactive.USERNAME}</a></td>
and after add

Code: Select all

<td>{inactive.EMAIL}</td>
Save de file.

Finally go to language/en/common.php

find

Code: Select all

'USERNAME'				=> 'Username',
and before add

Code: Select all

'EMAIL'					=> 'Email address',
Save file, check all changes are ok, then close all files... login into your:

Admin CP ->Purge the cache -> Run now

Goto User and groups -> Inactive user

And you will see the email address of the inactive users...
wwwMKRDinfo
Registered User
Posts: 8
Joined: Sat Aug 18, 2012 12:04 am

Re: Adding info to inactive user list

Post by wwwMKRDinfo »

ffa wrote:I would like to use custom profile fields.
The post below will be an adaptation of the useful information before on how to include custom profile fields into the inactive members list.

References:
viewtopic.php?f=71&t=2159973
viewtopic.php?f=71&t=655245

I am not going to start a new thread because this is the message which will pop up in searches of this forum, first.

The information above needs to be modified for phpBB3 (3.0.8). The changes are:

Note: as I have inadvertently hit Submit before I was done writing this message, I had to wait two days for my message to be approved. In that time, I completed the posting on my own phpBB3 forum.

Read the complete post here: Add custom profile fields to 'inactive users' list

Return to “[3.0.x] Support Forum”