Add e-mail address column to Inactive User page

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Ideas Centre
Locked
User avatar
gussie
Registered User
Posts: 92
Joined: Wed Nov 27, 2002 1:26 am

Add e-mail address column to Inactive User page

Post by gussie »

The Inactive User page in the ACP lists several columns:

USERNAME
JOINED
INACTIVE
DATE
REASON

I would like to change the JOINED field to E-MAIL ADDRESS so I can weed out some of the obvious spammers and robots from my inactive registration stack

I have found the template of the page at /adm/style but I could not see where the adm/index.php calls the template. It seems I am looking at the wrong place. Can anyone help me?

In the /adm/style/acp_inactive.html template, I found this table:

Code: Select all

<table cellspacing="1">
<thead>
<tr>
	<th>{L_USERNAME}</th>
	<th>{L_JOINED}</th>
	<th>{L_INACTIVE_DATE}</th>
	<th>{L_INACTIVE_REASON}</th>
	<th>{L_LAST_VISIT}</th>
	<th>{L_MARK}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN inactive -->
	<!-- IF inactive.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

		<td><a href="{inactive.U_USER_ADMIN}">{inactive.USERNAME}</a></td>
		<td>{inactive.JOINED}</td>
		<td>{inactive.INACTIVE_DATE}</td>
		<td>{inactive.REASON}</td>
		<td>{inactive.LAST_VISIT}</td>
		<td>&nbsp;<input type="checkbox" class="radio" name="mark[]" value="{inactive.USER_ID}" />&nbsp;</td>
	</tr>
So I should to change {inactive.JOINED} to {inactive.EMAIL}? But where do I define {inactive.EMAIL}?
Res tantum valet quantum vendi potest
Do not hire Christian Bullock - he will not finish the job and he will not return your money.
User avatar
gussie
Registered User
Posts: 92
Joined: Wed Nov 27, 2002 1:26 am

Re: Add e-mail address column to Inactive User page

Post by gussie »

Hi Moderator, would you move this post over to the MOD Writer's forum for me? Cheers, g.
Res tantum valet quantum vendi potest
Do not hire Christian Bullock - he will not finish the job and he will not return your money.
tonerce
Registered User
Posts: 4
Joined: Wed Mar 11, 2009 11:08 am

Re: Add e-mail address column to Inactive User page

Post by tonerce »

Did you manage to do this? I've been attempting to do something similar.
I've modified the following:
adm/style/acp_inactive.html
includes/functions_admin.php
includes/acp/acp_inactive.php
tonerce
Registered User
Posts: 4
Joined: Wed Mar 11, 2009 11:08 am

Re: Add e-mail address column to Inactive User page

Post by tonerce »

My changes worked. See this topic for details of another similar change:
http://www.phpbb.com/community/viewtopi ... 5#p8899225

Regards. Chris
Locked

Return to “[3.0.x] MOD Requests”