Hello,
When a logged in user triggers a "no permission" error this logs displays "guest#8" where 8 is the uid hmmmm that is a beauty error
if($logitem['uid'] == 0)
{
$logitem['username'] = "Guest";
$table->construct_cell(htmlspecialchars_uni($logitem['username']),array("class" => "align_center"));
}
else if($logitem['uid'] > 0)
{
$info = get_user($logitem['uid']);
$logitem['username'] = $info['username'];
$table->construct_cell("<a target='_blank' href=\"{$mybb->settings['bburl']}/member.php?action=profile&uid={$logitem['uid']}\">{$logitem['username']}</a>", array("class" => "align_center", "width" => '60'));
}
now the actual username will appaer .