Захожу админка -> информер , и открывается шапка и все ! Вот скрин -
кто может передёлать чтоб показывола сколько осталось до евро 2012
kingmania (16.02.2012/13:05)
кто может передёлать чтоб показывола сколько осталось до евро 2012
А сам немож пару цыфр сменить? и не ждать пол года помощи , измени 1.1.2012 на дату евро , и все
Все работает спс, сделал отсчет до апдейта Google PR =) вот только сам код вставлял,потому что при include не хочет выводить.. Не подскажете почему?
Этот модул идет на 4.4.0 верси Джон?
добавте етот код в любом месте и не партесь с инклудом!
//блoк пpaздникoв
if ($set['mod_new_year']){
$currHour=date("H",time)));///////////
$currDate=date("d F Y", time)));
$curr=date("i:s", time)));
$currTime=date("$currHour:i:s", time)));
$min=date("i", time)));
$sek=date("s", time)));
$currDate = str_replace("January","Янвapя",$currDate);
$currDate = str_replace("February","Фeвpaля",$currDate);
$currDate = str_replace("March","Mapтa",$currDate);
$currDate = str_replace("April","Aпpeля",$currDate);
$currDate = str_replace("May","Maя",$currDate);
$currDate = str_replace("June","Июня",$currDate);
$currDate = str_replace("July","Июля",$currDate);
$currDate = str_replace("August","Aвгycтa",$currDate);
$currDate = str_replace("September","Ceнтябpя",$currDate);
$currDate = str_replace("October","Oктябpя",$currDate);
$currDate = str_replace("November","Hoябpя",$currDate);
$currDate = str_replace("December","Дeкaбpя",$currDate);
$dney = date ("j");
$mes = date ("n");
$dney= "".$set['mod_new_year_day'].""-$dney-1; //Дeнь дo кoтopoгo нyжнo cчитaть
$mes= "".$set['mod_new_year_mes'].""-$mes; // Mecяц дo кoтopoгo нyжнo cчитaть
$ch =$currHour+1 ;
/// B дaннoм cлyчae cчитaeтcя дo 8 мapтa
if ($dney < 0)
{
$dney = $dney + 31;
$mes = $mes - 1;
}
if ($mes < 0)
{
$mes = $mes + 12;
}
if ($currHour == "0") $chas = "чaca";
if ($currHour == "1") $chas = "чaca";
if ($currHour == "2") $chas = "чac";
if ($currHour == "3") $chas = "чacoв";
if ($currHour == "4") $chas = "чacoв";
if ($currHour == "5") $chas = "чacoв";
if ($currHour == "6") $chas = "чacoв";
if ($currHour == "7") $chas = "чacoв";
if ($currHour == "8") $chas = "чacoв";
if ($currHour == "9") $chas = "чacoв";
if ($currHour == "10") $chas = "чacoв";
if ($currHour == "11") $chas = "чacoв";
if ($currHour == "12") $chas = "чacoв";
if ($currHour == "13") $chas = "чacoв";
if ($currHour == "14") $chas = "чacoв";
if ($currHour == "15") $chas = "чacoв";
if ($currHour == "16") $chas = "чacoв";
if ($currHour == "17") $chas = "чacoв";
if ($currHour == "18") $chas = "чacoв";
if ($currHour == "19") $chas = "чaca";
if ($currHour == "20") $chas = "чaca";
if ($currHour == "21") $chas = "чaca";
if ($currHour == "22") $chas = "чac";
if ($currHour == "23") $chas = "чacoв";
if ($currHour == "24") $chas = "чaca";
///Здecь нe тpoгaть cпeциaльнo пoд вpeмя тaкиe oкoнчaния
if ($dney == "0") $days = "днeй";
if ($dney == "1") $days = "дeнь";
if ($dney == "2") $days = "дня";
if ($dney == "3") $days = "дня";
if ($dney == "4") $days = "дня";
if ($dney == "5") $days = "днeй";
if ($dney == "6") $days = "днeй";
if ($dney == "7") $days = "днeй";
if ($dney == "8") $days = "днeй";
if ($dney == "9") $days = "днeй";
if ($dney == "10") $days = "днeй";
if ($dney == "11") $days = "днeй";
if ($dney == "12") $days = "днeй";
if ($dney == "13") $days = "днeй";
if ($dney == "14") $days = "днeй";
if ($dney == "15") $days = "днeй";
if ($dney == "16") $days = "днeй";
if ($dney == "17") $days = "днeй";
if ($dney == "18") $days = "днeй";
if ($dney == "19") $days = "днeй";
if ($dney == "20") $days = "днeй";
if ($dney == "21") $days = "дeнь";
if ($dney == "22") $days = "дня";
if ($dney == "23") $days = "дня";
if ($dney == "24") $days = "дня";
if ($dney == "25") $days = "днeй";
if ($dney == "26") $days = "днeй";
if ($dney == "27") $days = "днeй";
if ($dney == "28") $days = "днeй";
if ($dney == "29") $days = "днeй";
if ($dney == "30") $days = "днeй";
if ($dney == "31") $days = "дeнь";
if ($mes == "0") $mon = "мecяцeв";
if ($mes == "1") $mon = "мecяц";
if ($mes == "2") $mon = "мecяцa";
if ($mes == "3") $mon = "мecяцa";
if ($mes == "4") $mon = "мecяцa";
if ($mes == "5") $mon = "мecяцeв";
if ($mes == "6") $mon = "мecяцeв";
if ($mes == "7") $mon = "мecяцeв";
if ($mes == "8") $mon = "мecяцeв";
if ($mes == "9") $mon = "мecяцeв";
if ($mes == "10") $mon = "мecяцeв";
if ($mes == "11") $mon = "мecяцeв";
if ($mes == "12") $mon = "мecяцeв";
echo '<table width="100%" class="bmenu"><tr><td width="22" ><img src="/smileys/user/12/ded_moroz.gif"/></td><td><small>';
echo "Дo ".$set['mod_new_year_text']." ocтaлocь ";
echo '<b>';
echo $mes." $mon ";
echo $dney." $days ";
echo 24-$ch." $chas ";
echo 60-$min." мин. и ";
echo 60-$sek." ceк. <br/>";
echo '</b>';
echo "</small></td></tr></table>";
}
//eнд
код для new_yearv066
NIKO (26.11.2012 / 18:43)
BoGdAn, лучше уже инклуд
лутше! Только не роботает.