Go to: ACP > Templates > Your theme's templates > Who's Online Templates > online > and find;
Code:
<td class="thead" colspan="3">
and Change it into;
Code:
<td class="thead" colspan="4">
Within the same template, find;
Code:
<td class="tfoot" colspan="3"
and Change 3 to 4 like this;
Code:
<td class="tfoot" colspan="4"
Within the same template, find;
Code:
<td class="tcat" align="center"><a href="online.php?sortby=username"><span class="smalltext"><strong>{$lang->on_username}</strong></span></a></td>
and Add the following code just Before that;
Code:
<td class="tcat" align="center" width="5%"></td>
Save template.
Now, Go to: ACP > Templates > Your theme's templates > Who's Online Templates > online_row > and find;
and Add the following code just After that;
Code:
<td align="center" class="trow1">{$user_avatar}</td>
Save template.
Now open ./inc/functions_online.php and find;
PHP Code:
function build_wol_row($user)
{
global $mybb, $lang, $templates, $theme, $session;
// We have a registered user
if($user['uid'] > 0)
{
// Only those with "canviewwolinvis" permissions can view invisible users
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{
// Append an invisible mark if the user is invisible
if($user['invisible'] == 1)
{
$invisible_mark = "*";
}
else
{
$invisible_mark = '';
}
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark;
}
}
and Change it into;
PHP Code:
function build_wol_row($user)
{
global $db, $mybb, $lang, $templates, $theme, $session;
if (!$user['uid'])
{
$user_avatar = '<img src="images/default_avatar.gif" alt="Avatar" title="Guest \'s Avatar" width="35px" height="35px">';
}
// We have a registered user
if($user['uid'] > 0)
{
// Only those with "canviewwolinvis" permissions can view invisible users
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{
// Append an invisible mark if the user is invisible
if($user['invisible'] == 1)
{
$invisible_mark = "*";
}
else
{
$invisible_mark = '';
}
$query = $db->simple_select("users", "*", "uid='{$user['uid']}'");
$us = $db->fetch_array($query);
if ($us['avatar'] != "")
{
$user_avatar = '<img src="'.$us['avatar'].'" alt="Avatar" title="'.$user['username'].' \'s Avatar" width="35px" height="35px">';
}
else
{
$user_avatar = '<img src="images/default_avatar.gif" alt="Avatar" title="'.$user['username'].' \'s Avatar" width="35px" height="35px">';
}
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark;
}
}
Now it'll look like this;