Ответ:
Открыть файл includes/session.php перед:
- Код: выделить все
/**
* Get language id currently used by the user
*/
function get_iso_lang_id()
вставить:
- Код: выделить все
function format_date_joined($reg_date)
{
$reg_date = $reg_date - floor($reg_date%86400);
$today = mktime(0, 0, 0, date("m") , date("d"), date("Y"));
$day_whith_us = floor(floor(($today - $reg_date)/86400)%30);
$month_whith_us = floor(($today - $reg_date)/2592000);
$ret = "";
if ($month_whith_us == 1)
{
$ret .= $month_whith_us.iconv("cp1251", "UTF-8", " месяц и ");
}
if ($month_whith_us > 1 && $month_whith_us < 5)
{
$ret .= $month_whith_us.iconv("cp1251", "UTF-8", " месяца и ");
}
if ($month_whith_us > 4 || $month_whith_us == 0)
{
$ret .= $month_whith_us.iconv("cp1251", "UTF-8", " месяцев и ");
}
if ($day_whith_us == 1)
{
$ret .= $day_whith_us.iconv("cp1251", "UTF-8", " день ");
}
if ($day_whith_us > 1 && $day_whith_us < 5)
{
$ret .= $day_whith_us.iconv("cp1251", "UTF-8", " дня ");
}
if ($day_whith_us > 4 || $day_whith_us == 0)
{
$ret .= $day_whith_us.iconv("cp1251", "UTF-8", " дней ");
}
return $ret;
}
Открыть файл viewtopic.php заменить:
- Код: выделить все
'joined' => $user->format_date($row['user_regdate']),
на
- Код: выделить все
'joined' => $user->format_date_joined($row['user_regdate']),
Открыть файл language/ru/common.php заменить:
- Код: выделить все
'JOINED' => 'Зарегистрирован',
на
- Код: выделить все
'JOINED' => 'Стаж',
Открыть файл memberlist.php найти:
- Код: выделить все
'JOINED' => $user->format_date($data['user_regdate']),
Заменить на:
- Код: выделить все
'JOINED' => $user->format_date_joined($data['user_regdate']),