<!--latest_news-->
<div id="latest_news">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="70%">
<h3>{L_LATEST_NEWS}</h3>
<table cellpadding="0">
<!-- BEGIN news -->
<tr>
<td><div class="news_date">{news.NEWS_TIME}</div></td>
<td width="100%"><div class="news_title<!-- IF news.NEWS_IS_NEW --> new<!-- ENDIF -->"><a href="{TOPIC_URL}{news.NEWS_TOPIC_ID}">{news.NEWS_TITLE}</a></div></td>
</tr>
<!-- END news -->
</table>
</table>
</div>
<!--/latest_news-->
<!--latest_news-->
<div id="latest_news">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="50%">
<h3>Новости трекера</h3>
<table cellpadding="0">
<!-- BEGIN news -->
<tr>
<td><div class="news_date">{news.NEWS_TIME}</div></td>
<td width="100%"><div class="news_title<!-- IF news.NEWS_IS_NEW --> new<!-- ENDIF -->"><a href="{TOPIC_URL}{news.NEWS_TOPIC_ID}">{news.NEWS_TITLE}</a></div></td>
</tr>
<!-- END news -->
</table>
</td>
<!--latest_news2--> <td width="100"><div id="latest_news2">
<h3>Последние сообщения</h3>
<table cellpadding="0">
<script language="JavaScript" type="text/javascript" src="./recent.php"></script>
</table>
</div></td><!--/latest_news-->
</tr>
</table>
</div>
<!--/latest_news-->
Нет у меня все проставлено.может быть вы не прописали форумы, из которых нужно выводить новости?
AND t.forum_id NOT IN($cfg_ignore_forums, $porno_forums, $trash_forums)
<b>Notice</b>: Undefined variable: tz2 in <b>/home/users2/e/*****/domains/*******.ru/includes/functions.php</b> on line <b>1575</b><br />
// Create date/time from format and timezone
function bb_date ($gmepoch, $format = false, $tz = null)
{
global $bb_cfg, $lang, $userdata;
if (!$format) $format = $bb_cfg['default_dateformat'];
if (empty($lang))require_once($bb_cfg['default_lang_dir'] .'lang_main.php');
if (is_null($tz) || $tz == 'false')
{
if (empty($userdata['session_logged_in']))
{
$tz2 = $bb_cfg['board_timezone'];
}
else $tz2 = $userdata['user_timezone'];
}
elseif (is_numeric($tz)) $tz2 = $tz;
$date = gmdate($format, $gmepoch + (3600 * $tz2));
if($tz != 'false')
{
$time_format = " H:i";
$today = gmdate("d", TIMENOW + (3600 * $tz2));
$month = gmdate("m", TIMENOW + (3600 * $tz2));
$year = gmdate("Y", TIMENOW + (3600 * $tz2));
$date_today = gmdate("d", $gmepoch + (3600 * $tz2));
$date_month = gmdate("m", $gmepoch + (3600 * $tz2));
$date_year = gmdate("Y", $gmepoch + (3600 * $tz2));
if ($date_today == $today && $date_month == $month && $date_year == $year)
{
$date = 'today' . gmdate($time_format, $gmepoch + (3600 * $tz2));
}
elseif ($today != 1 && $date_today == ($today-1) && $date_month == $month && $date_year == $year)
{
$date = 'yesterday' . gmdate($time_format, $gmepoch + (3600 * $tz2));
}
elseif ($today == 1 && $month != 1)
{
$yesterday = date ("t", mktime(0, 0, 0, ($month-1), 1, $year));
if ($date_today == $yesterday && $date_month == ($month-1) && $date_year == $year)
$date = 'yesterday' . gmdate($time_format, $gmepoch + (3600 * $tz2));
}
elseif ($today == 1 && $month == 1)
{
$yesterday = date ("t", mktime(0, 0, 0, 12, 1, ($year -1)));
if ($date_today == $yesterday && $date_month == 12 && $date_year == ($year-1))
$date = 'yesterday' . gmdate($time_format, $gmepoch + (3600 * $tz));
}
}
return ($bb_cfg['translate_dates']) ? strtr(strtoupper($date), $lang['DATETIME']) : $date;
}