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;
![[Image: attachment.php?aid=416]](https://camo.mybb.com/b2d97bc507337771fdefb97b1dd0b0943f0846c0/687474703a2f2f79616c646172616d2e636f6d2f6174746163686d656e742e7068703f6169643d343136)
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;