[syntax="php"]##############################################################
## MOD Adı (ingilizce): User age in profile
## Mod Adı ( Türkçe ): Profilde kullanıcı yaşını gösterir
## MOD Yazarı: funnyman <webmaster@the-partycrew.com> (www.the-partycrew.com)
## MOD Açıklama: Profil alanında kullanıcı yaşını gösterir.
## MOD Version: 1.0.0
##
## Kurulum Seviyesi: (Kolay)
## Kurulum Süresi: 2 dakika
## Değişecek Dosyalar 2: incluses/usercp_viewprofile.php
## templates/subSilver/profile_view_body.tpl
##
##############################################################
##
## MOD Geçmişi:
##
## 19-07-2006 - Version 1.0.0
## - İlk Sürüm.
##
##############################################################
## Dosyaları değiştirmeden önce lütfen değişecek dosyaların yedegini alınız.
##############################################################
##
##############################################################
##
## Türkçeleştirme: Liderforum.gen.tr ( hadescik@gmail.com )
##
##############################################################
#
#-----[ AÇ ]------------------------------------------
#
incluses/usercp_viewprofile.php
#
#-----[ BUL ]------------------------------------------
#
if ($profiledata['user_birthday']!=999999)
{
#
#-----[ ÖNCESİNE EKLE ]------------------------------------------
#
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
#
#-----[ BUL ]------------------------------------------
#
$user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
// show user age
$userbdate=realdate('md', $profiledata['user_birthday']);
$userbirthdate = $this_year - realdate ('Y',$profiledata['user_birthday']);
if ($this_date < $userbdate) $userbirthdate--;
$userbirthdate = ' (' . $userbirthdate . ' Year)';
#
#-----[ BUL ]------------------------------------------
#
$user_birthday = $lang['No_birthday_specify'];
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
$userbirthdate = '';
#
#-----[ BUL ]------------------------------------------
#
'BIRTHDAY' => $user_birthday,
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
'POSTER_AGE' => $userbirthdate,
#
#-----[ AÇ ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ BUL ]------------------------------------------
#
{BIRTHDAY}
#
#-----[ SATIRDAN SONRASINA EKLE ]------------------------------------------
#
{POSTER_AGE}
#
#-----[ SON ]------------------------------------------
# [/syntax]