Онлайн/оффлайн

RomM1

Пользователь
gas, Shuper,
viewtopic.php
Найти:
PHP:
    //Online/Offline
if (($postrow[$i]['user_timer'] >= ( time() - 300 )) && ($postrow[$i]['user_allow_viewonline']))
    {
        $on_off_hidden = '<img src="' . $images['icon_online'] . '" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" border="0" />';
    }
    else if ($postrow[$i]['user_allow_viewonline'] == 0)
    {
        $on_off_hidden = '<img src="' . $images['icon_hidden'] . '" alt="' . $lang['Hidden'] . '" title="' . $lang['Hidden'] . '" border="0" />';
    }
    else if ($poster_id == ANONYMOUS)
    {
        $on_off_hidden = '';
    }
    else
    {
        $on_off_hidden = '<img src="' . $images['icon_offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
    }
Заменить на:
PHP:
//Online/Offline
if ($postrow[$i]['user_timer'] >= ( time() - 300 ) && !bf($postrow[$i]['user_opt'], 'user_opt', 'allow_viewonline'))
{
$on_off_hidden = '<img src="' . $images['icon_online'] . '" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" border="0" />';
}
else if (!bf($postrow[$i]['user_opt'], 'user_opt', 'allow_viewonline') == 0)
{
$on_off_hidden = '<img src="' . $images['icon_hidden'] . '" alt="' . $lang['Hidden'] . '" title="' . $lang['Hidden'] . '" border="0" />';
}
else
{
$on_off_hidden = '<img src="' . $images['icon_offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
}
 
Сверху