Load.php
Bul:
Kod:

);
}
}

return true;
}

Değiştir:
Kod:

);
}
}
// ===== Begin modification - Display Age and Location next to posts =====
if (!empty($profile['birthdate']) && $profile['birthdate'] !== '0001-01-01')
{
list ($birth_year, $birth_month, $birth_day) = sscanf($profile['birthdate'], '%d-%d-%d');
$datearray = getdate(forum_time());
$memberContext[$user] += array(
'age' => $birth_year $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)
);
}
// ===== End modification =====
return true;
}

Display.template.php
Bul:
Kod:

// Show their personal text?

Üstüne ekle:
Kod:

// Show the member's age
if (isset($message['member']['age']))
echo '
', $txt['age'], ': ', $message['member']['age'], '';

index.turkish.php
Bul:
Kod:

?>

Üstüne ekle:
Kod:

$txt['age'] = 'Yaş';

index.english.php
Bul:
Kod:

?>

Üstüne ekle:
Kod:

$txt['age'] = 'Age';

Orjinal konu: Profile yaş ekleme


Kaynak: Profile yaş ekleme