znajdź:
'BIRTHDAY' => ($profiledata['user_birthday'] != 999999) ? realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']) : $lang['No_birthday_specify'],
zamień na:
'BIRTHDAY' => ($profiledata['user_birthday'] != 999999) ? realdate('Y',(CR_TIME / 86400))- realdate ('Y',$profiledata['user_birthday']) : $lang['No_birthday_specify'],
znajdź:
'L_BIRTHDAY' => $lang['Birthday'],
zamień na:
'L_BIRTHDAY' => $lang['Age'],
znajdź:
$template->assign_vars(array(
'USERNAME' => $username,
'JOINED' => create_date($board_config['default_dateformat'], $profiledata['user_regdate'], $board_config['board_timezone']) . ( (empty($profiledata['user_lastvisit']) && $userdata['user_level'] == ADMIN) ? ' (' . $ip_this_user . $temp_link . ')' : '' ),
'LAST_VISIT' => ($profiledata['user_session_start']) ? create_date($board_config['default_dateformat'], $profiledata['user_session_start'], $board_config['board_timezone']) : $lang['Never'],
przed, dodaj:
$age = ($profiledata['user_birthday'] != 999999) ? realdate('Y',(CR_TIME / 86400))- realdate ('Y',$profiledata['user_birthday']) : $lang['No_birthday_specify'];
if ( date('md') < realdate('md',$profiledata['user_birthday']) )
{
$age--;
}
else
{
$age = '';
}
zapisz i zamknij plik
Temat na unmods.pl
0 komentarze:
Prześlij komentarz