Come And Feel the Difference

Full Version: user agent di whos online
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
buka file ./inc/functions_online.php dan cari :
PHP Code:
function build_wol_row($user)
{
    global 
$mybb$lang$templates$theme$session

ganti dengan berikut :
PHP Code:
function build_wol_row($user)
{
    global 
$mybb$db$lang$templates$theme$session

masih di file yang sama :
cari :
PHP Code:
$online_time my_date($mybb->settings['timeformat'], $user['time']); 

tambahkan kode berikut diatasnya:
PHP Code:
$query $db->simple_select("sessions""useragent""uid='{$user['uid']}'");
$user['useragent'] = $db->fetch_field($query"useragent"); 

save, selesai. tugas berikut Monkey_big

masuk ke ACP > Templates > template yang dipakai > Online Templates > online_row > dan cari;

PHP Code:
{$online_name
tambahkan kode berikut di atas kode tersebut :
PHP Code:
<span style="float: right; font-size: 9px;">Useragent: {$user['useragent']}</span

save, dan lihat hasilnya. tersipu-sipu

[attachment=28]

[sub]credit : yaldaram[/sub]