Инструкция:
Открываем: engineforumsourcesshowposts.php
Ищем:
$tpl->set('{news-num}', intval($row['news_num']));
Ниже Вставляем:
if ($row['user_status'] != "")
{
$tpl->set( '[x-statususer]', "" );
$tpl->set( '[/x-statususer]', "" );
if (date(Ymd, $row['user_status_date']) == date(Ymd, $_TIME))
$user_status_date = $lang['time_heute'].", ".langdate("H:i", $row['user_status_date']);
elseif (date(Ymd, $row['user_status_date']) == date(Ymd, ($_TIME - 86400)))
$user_status_date = $lang['time_gestern'].", ".langdate("H:i", $row['user_status_date']);
else
$user_status_date = langdate($config['timestamp_active'], $row['user_status_date']);
$status_all = explode("|", $row['user_status']);
if ($status_all[1] == "")
$status_all_text = $status_all[0];
else
$status_all_text = $status_all[1];
$tpl->set( '{x-statususer}', "[img]\"[/img]
Статус: ".$status_all_text." :: Изменён: ".$user_status_date);
}
else
{
$tpl->set_block( "'\\[x-statususer\\](.*?)\\[/x-statususer\\]'si", "" );
$tpl->set( '{x-statususe
...
Читать дальше »