blaster
10) profile.php
Найди: CODE:$temp_def = $inuser['skin'];
замени на:
CODE:$temp_def = (isset($inuser['skin']) && !empty($inuser['skin']) &&
is_dir($exbb['home_path'] . 'templates/'.$inuser['skin']))
?$inuser['skin']:substr($exbb['default_style'],0,-1);
11) index.php
Найди: CODE:$lang_moder = $modoutput = '';
Перед ней вставь:
CODE:$flag = FALSE;
$alltopic = array();
$alltopic = get_file($exbb['home_path'].'forum'.$id.'/list.php');
if (sizeof($alltopic) > 0)
{
$alltopic = array_filter($alltopic, "NEW_POSTS");
$flag = (sizeof($alltopic) >0)?TRUE:FALSE;
}
Найди:
CODE:if ($forum['last_time'] > $exbb['last_visit']) {
и замени на:
CODE:if ($flag === TRUE){
Найди:
CODE:foreach ($allforums as $id=>$forum) {
Перед ней вставь:
CODE:function NEW_POSTS($var)
{
global $exbb,$f_readed;
return ($var['postdate'] >= $f_readed && $var['p_id'] != $exbb['mem_id']) ?1:0;
}
После foreach ($allforums as $id=>$forum) {
найди:
CODE:
if ($exbb['reged']) {
if ($f_readed = (isset($_COOKIE['f'.$id])) ? $_COOKIE['f'.$id] : 0) {
$exbb['last_visit'] = $f_readed > $exbb['last_visit'] ? $f_readed : $exbb['last_visit'];
}
}
и замени на
CODE:
if ($exbb['reged']) {
$f_readed = (isset($_COOKIE['f'.$id])) ? $_COOKIE['f'.$id] : 0;
$f_readed = $f_readed > $exbb['last_visit'] ? $f_readed : $exbb['last_visit'];
}
|