It may have something to do with other code I'm using within my new profile.php file. The code could be conflicting with the user age display and the user zodiacs I have added. Just so you know, its the User Sexuality I'm working with (at the bottom)
if ($action == "editprofile") {
if ($user_info['user_level'] == GUEST) {
show_error_page($lang['no_permission_updateprofile']);
exit;
}
// User Gender Switch
$gender_array = array("", "Male", "Female");
$user_gender = $gender_array[$user_info['user_gender']]."";
// User Age Display
$this_year=create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
if ( $user_info['user_birthday'] != 999999 )
{
$poster_birthdate=realdate('md', $user_info['user_birthday']);
$n=0;
while ($n<26)
{
if ($poster_birthdate>=$zodiacdates[$n] & $poster_birthdate<=$zodiacdates[$n+1])
{
$zodiac = $lang[$zodiacs[($n/2)]];
$u_zodiac = $images[$zodiacs[($n/2)]];
$zodiac_img = '<img src="'.$u_zodiac.'" alt="'.$zodiac.'" title="'.$zodiac.'" border="0"/>';
$n=26;
} else
{
$n=$n+2;
}
}
$poster_age = $this_year - realdate ('Y',$user_info['user_birthday']);
if ($this_date < $poster_birthdate) $poster_age--;
$poster_age = '' . $poster_age .'';
} else
{
$poster_age = '';
}
// User Star Sign Display
if ($user_info['user_birthday']!=999999)
{
$poster_birthdate=realdate('md', $user_info['user_birthday']);
$i=0;
while ($i<26)
{
if ($poster_birthdate>=$zodiacdates[$n] & $poster_birthdate<=$zodiacdates[$i+1])
{
$zodiac = $lang[$zodiacs[($i/2)]];
$u_zodiac = $images[$zodiacs[($i/2)]];
$zodiac_img = $lang['Zodiac'].': <img src="'.$u_zodiac.'" alt="'.$zodiac.'" title="'.$zodiac.'" border="0"/>';
$i=26;
} else
{
$i=$i+2;
}
}
}
// User Sexuality Switch
$i = 0;
$sexuality = "";
$user_sexuality_select = array("", "Straight", "Bisexual", "Open Minded", "Gay / Lesbian");
foreach ($user_gender_select as $key) {
$sexuality .= "<option value=\"".$i."\"".(($user_info['user_sexuality'] == $i) ? " selected" : "").">".$key."</option>\n";
$i++;
}
Any ideas?