Да, для Фулл модса немного по другому.
Найди в index.php
CODE: if (isset($forum['last_time']) && $exbb['reged']) {
if ($forum['last_time'] > $exbb['last_visit']) {
$folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/foldernew.gif" border="0">';
}
else { $folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/no_'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">'; }
}
else {
$folderpicture = '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">';
$loginmessage = $lang['Marked_posts'];
}
$forumlastpost = ( !empty($forum['last_time']) ) ? date("d.m.Y - H:i", $forum['last_time'] + $exbb['usertime']*3600) : $lang['NA'];
$lastposterfilename = $forum['last_poster'];
$lastpost = '';
if (isset($forum['last_post'])) {
$savet = $forum['last_post'];
if (strlen($savet)>36) {$savet = substr($savet,0,35).'...';}
$lastpost = '<img src="./templates/'.$exbb['default_style'].'im/lastpost.gif"> <a href="topic.php?forum='.$id.'&topic='.$forum['last_post_id'].'&v=l#'.$forum['last_key'].'" title="'.$forum['last_post'].'">'.$savet.'</a>';
}
И замените на
CODE: if (isset($forum['last_time']) && $exbb['reged']) {
$forum_readed = true;
$t_visits = (isset($_COOKIE['t_visits'])) ? unserialize($_COOKIE['t_visits']) : array();
$filetoopen = $exbb['home_path'].'forum'.$id.'/list.php';
if (file_exists($filetoopen)) {
$topics = get_file($filetoopen);
} else {$topics = array();}
foreach ($topics as $tid=>$topic) {
$tvid = $id.$tid;
$topic_lastview = (isset($t_visits[$tvid])&&($t_visits[$tvid]>$exbb['last_visit']))?$t_visits[$tvid]:$exbb['last_visit'];
if ($topic['postdate']>$topic_lastview) { $forum_readed = false; break; }
}
if ($forum_readed) $folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/no_'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">';
else $folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/foldernew.gif" border="0">';
}
else {
$folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/no_'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">';
$loginmessage = $lang['Marked_posts'];
}
$forumlastpost = ( !empty($forum['last_time']) ) ? date("d.m.Y - H:i", $forum['last_time'] + $exbb['usertime']*3600) : $lang['NA'];
$lastposterfilename = $forum['last_poster'];
$lastpost = '';
if (isset($forum['last_post'])) {
$savet = $forum['last_post'];
if (strlen($savet)>36) {$savet = substr($savet,0,35).'...';}
$lastpost = '<img src="./templates/'.$exbb['default_style'].'im/lastpost.gif"> <a href="topic.php?forum='.$id.'&topic='.$forum['last_post_id'].'&v=l#'.$forum['last_key'].'" title="'.$forum['last_post'].'">'.$savet.'</a>';
}
Делайте обязательно бекап!!! |