Open the admin/user.php and look for the function listusers. Then look for the a line like the following and replace the code with this:
Text Formatted Code
$offset = (($curpage - 1) * $limit);
if (!empty($query)) {
$sql = "SELECT u.uid,u.username,u.fullname,u.email,i.lastlogin FROM {$_TABLES['users']} AS u, {$_TABLES['userinfo']} AS i WHERE u.uid=i.uid AND u.uid > 1 AND (u.username LIKE '$query' OR u.email LIKE '$query' OR u.fullname LIKE '$query') LIMIT $offset,$limit";
} else {
$sql = "SELECT u.uid,u.username,u.fullname,u.email,i.lastlogin FROM {$_TABLES['users']} AS u, {$_TABLES['userinfo']} AS i WHERE u.uid=i.uid AND u.uid > 1 LIMIT $offset,$limit";
}
$result = DB_query($sql);
$nrows = DB_numRows($result);
for ($i = 0; $i < $nrows; $i++) {
$A = DB_fetchArray($result);
$lasttime = COM_getUserDateTimeFormatShort ($A['lastlogin']);
$user_templates->set_var('user_id', $A['uid']);
$user_templates->set_var('username', $A['username']);
$user_templates->set_var('user_fullname', $A['fullname']);
$user_templates->set_var('user_email', $A['email']);
$user_templates->set_var('lang_lastlogin', $LANG28[35]);
if (empty ($A['lastlogin'])) {
$user_templates->set_var('user_lastlogin', $LANG28[36]);
} else {
$user_templates->set_var('user_lastlogin', $lasttime[0]);
}
$user_templates->parse('user_row', 'row', true);
}
after that you have to change the related templates in your layout directory. first, edit admin/userslist.thtml:
Text Formatted Code
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<th align="left">{lang_username}</th>
<th>{lang_fullname}</th>
<th>{lang_emailaddress}</th>
<th>{lang_lastlogin}</th>
</tr>
{user_row}
</tr>
</table>
Text Formatted Code
<tr align="center">
<td align="left"><a href="{site_url}/users.php?mode=profile&uid={user_id}"><img src="{layout_url}/images/person.gif" border="0" alt=""></a> <a href="{site_admin_url}/user.php?mode=edit&uid={user_id}">{username}</a></td>
<td>{user_fullname}</td>
<td>{user_email}</td>
<td>{user_lastlogin}</td>
</tr>
Thats it.