Ich suche ein kleines upgrade für die usercp_viewprofile, wo das Alter ausgerechnet wird, und anschliessend im profile_view_bodyausgegeben werden kann. Das von phpbbhacks funktionniert nicht

es sollte zum birthday MOD von Niels Chr. Denmark passen
ersetze das mit:// Start add - Birthday MOD
if ($profiledata['user_birthday']!=999999)
{
$user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
} else
{
$user_birthday = $lang['No_birthday_specify'];
}
// End add - Birthday MOD
das ist dann nach dem prinzip wie es auch in der viewtopic ist// Start add - Birthday MOD
if ($profiledata['user_birthday']!=999999)
{
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
$user_date =realdate('md', $profiledata['user_birthday']);
($this_date < $user_date)? $user_age = $this_year - realdate('Y',$profiledata['user_birthday'])-1 : $user_age = $this_year - realdate('Y',$profiledata['user_birthday']);
$user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']) . " ($user_age)";
} else
{
$user_birthday = $lang['No_birthday_specify'];
}
// End add - Birthday MOD
korrekt?$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);