2011-04-17, 06:19 AM
If you want to show Useragent on who's online page, then here is how;
Open ./inc/functions_online.php page and find;
and Change it to;
Now within the same file, find;
Save the file.
Now Go to: ACP > Templates > Your theme's templates > Online Templates > online_row > and find;
Save template.
It should result into this;
Open ./inc/functions_online.php page and find;
function build_wol_row($user)
{
global $mybb, $lang, $templates, $theme, $session;
and Change it to;
function build_wol_row($user)
{
global $mybb, $db, $lang, $templates, $theme, $session;
Now within the same file, find;
$online_time = my_date($mybb->settings['timeformat'], $user['time']);
And add the following code Above
that code;$query = $db->simple_select("sessions", "useragent", "uid='{$user['uid']}'");
$user['useragent'] = $db->fetch_field($query, "useragent");
Save the file.
Now Go to: ACP > Templates > Your theme's templates > Online Templates > online_row > and find;
{$online_name}
And add the following code just after that;<span style="float: right; font-size: 9px;">Useragent: {$user['useragent']}</span>
Save template.
It should result into this;