http://dle.in.ua/uploads/posts/2010-05/1275318171_online-in-pm.jpg
Установка: 1) Открываем engine/modules/pm.php
$sql = "SELECT id, subj, user_from, date, pm_read, reply FROM " . USERPREFIX . "_pm where user = '{$member_id['user_id']}' AND folder = 'inbox' order by date desc";
Заменить на:
$sql = "SELECT foto, text, id, subj, user_from, date, pm_read, reply, us.lastdate as lastdate FROM " . USERPREFIX . "_pm, " . USERPREFIX . "_users us where user_from = us.name AND user = '{$member_id['user_id']}' order by date desc";
Найти:
while ( $row = $db->get_row() ) {
Добавить ниже:
$end_online = time() + $config['date_adjust']*60;
$start_online = $end_online - 2200;
if($row['lastdate'] >= $start_online AND $row['lastdate']