timbios Posted June 6, 2015 Report Share Posted June 6, 2015 Открываем im.phpИщем: //Вывод диалогов $sql_ = $db->super_query("SELECT SQL_CALC_FOUND_ROWS tb1.msg_num, Добавляем запрос user_last_visitИщем: $tpl->set('{uid}', $row['im_user_id']); Ниже вставляем: if($row['user_last_visit']>= $online_time) $tpl->set('{online}', $lang['online']); else{$tpl->set('{online}','');} Далее в dialog.tpl вставляем в нужное место {online} Quote Link to comment Share on other sites More sharing options...
wenjiro Posted January 30, 2016 Report Share Posted January 30, 2016 (edited) Можно и так if($row['user_last_visit']>= $online_time) $tpl->set('{online}', '<img style="-webkit-user-select: none; width:10px;;margin-top: 25px" src="ТУТ_КАРТИНКА"></img>', $lang['online']);else{$tpl->set('{online}','');} Вместо ТУТ_КАРТИНКА ставим ссылку на изображение. Вместо "online" Будет картинка. Edited January 30, 2016 by WolFox Quote Link to comment Share on other sites More sharing options...
wenjiro Posted January 30, 2016 Report Share Posted January 30, 2016 ПОДРОБНЕЕ... Открываем im.phpИщем: //Вывод диалогов $sql_ = $db->super_query("SELECT SQL_CALC_FOUND_ROWS tb1.msg_num, Добавляем запрос user_last_visitИщем: $tpl->set('{uid}', $row['im_user_id']); Ниже вставляем: if($row['user_last_visit']>= $online_time) if($row['user_last_visit']>= $online_time) $tpl->set('{online}', '<img style="-webkit-user-select: none; width:10px;;margin-top: 25px" src="ТУТ_КАРТИНКА"></img>', $lang['online']);else{$tpl->set('{online}','');} else{$tpl->set('{online}','');} Вместо ТУТ_КАРТИНКА ставим ссылку на изображение. Вместо "online" Будет картинка Далее в dialog.tpl вставляем в нужное место {online} Quote Link to comment Share on other sites More sharing options...
Leymelki Posted August 1, 2019 Report Share Posted August 1, 2019 а как сделать так что бы показывало как допустим в поиске что онлайн и сбоку телефончик Quote Link to comment Share on other sites More sharing options...
Leymelki Posted August 1, 2019 Report Share Posted August 1, 2019 2 часа назад, Karina сказал: а как сделать так что бы показывало как допустим в поиске что онлайн и сбоку телефончик Уже не нужно все сделано, спасибо за помощь))) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.