by Niels on Tue 30. Apr, 2002 21:10
the age in the viewtopic, is easely removed, just avoid doing the viewtopick_body.tpl
about avoiding the year in the user profile
find this in file usercp_viewprofile.php
'BIRTHDAY' => ($profiledata['user_birthday']!=999999) ? $poster_birthday=realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']) : $poster_birthday=$lang['No_birthday_specify'],
change it to something like this
'BIRTHDAY' => ($profiledata['user_birthday']!=999999) ? $poster_birthday=realdate('d-M', $profiledata['user_birthday']) : $poster_birthday=$lang['No_birthday_specify'],
if you also wan to remove the age on the birthday list on the index page then do this to page_header.php
[FIND]
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.($year- realdate ('Y',$birthdayrow[$i]['user_birthday'])).')</b></a>';
[REPLACE WITH]
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . '</b></a>';
[FIND]:
$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.$user_age.')</b></a>';
[REPLACE WITH]
$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' </b></a>';