thanks
I translate that in french :
- Code: Select all
##############################################################
## MOD Titre : User Age in Profile (Birthday mod required)
## MOD Auteur : easygo < webmaster@net4seven.de > http://www.net4seven.de
## MOD Traducteur : Galxite < galixte@gmail.com > http://www.galixte.com
## MOD Description : Ce MOD permet d'afficher les ags en lieu et place des dates de naissances.
##
## MOD Version: 1.07
##
## Niveau d'installation : Facile
## Temps d'installation : 5 minutes
## Fichier à éditer : (2)
##
## includes/usercp_viewprofile.php
## templates/subSilver/profile_view_body.tpl
##
## Fichier inclus : (N/A)
##
## Aucun.
##
##############################################################
## Notes du traducteur :
##
## Si vous retirez les commentaires "//" des trois lignes suivantes que vous aurez ajouté après installation,
## cela vous permettra de garder aussi l'affichage des dates de naissances :
##
## Dans la première modification réalisée :
##
#
#-----[ TROUVER ]------------------------------------------------
#
// $user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
$user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
#
#-----[ TROUVER ]------------------------------------------------
#
// $user_birthday = $lang['No_birthday_specify'];
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
$user_birthday = $lang['No_birthday_specify'];
## Dans la seconde modification réalisée :
#
#-----[ TROUVER ]------------------------------------------------
#
// 'BIRTHDAY' => $user_birthday,
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
'BIRTHDAY' => $user_birthday,
#
#-----[ SAUVER/FERMER TOPUS LES FICHIERS ]------------------------------------------
#
# EoM
##############################################################
## Avant toutes modifications, veillez à sauvegarder
## les fichiers qui sont suceptibles d'être modifiés
##############################################################
## MOD Historique :
##
## 2005-07-14 - Initial Release
## 2005-07-18 - Bugfixing
##
##############################################################
#
#-----[ OUVRIR ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ TROUVER ]------------------------------------------------
#
// 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
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
// Start add - Birthday MOD
if ($profiledata['user_birthday']!=999999)
{
// $user_birthday = realdate($lang['DATE_FORMAT'], $profiledata['user_birthday']);
$user_birthdate = realdate('md', $profiledata['user_birthday']);
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
$user_age = $this_year - realdate('Y', $profiledata['user_birthday']);
if ( $this_date < $user_birthdate )
{
$user_age--;
}
}
else
{
// $user_birthday = $lang['No_birthday_specify'];
$user_age = '';
}
// End add - Birthday MOD
#
#-----[ TROUVER ]------------------------------------------------
#
// Start add - Birthday MOD
'BIRTHDAY' => $user_birthday,
// End add - Birthday MOD
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
// Start add - Birthday MOD
// 'BIRTHDAY' => $user_birthday,
'L_AGE' => $lang['Age'],
'USER_AGE' => $user_age,
// End add - Birthday MOD
#
#-----[ OUVRIR ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ TROUVER ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}:</span></td>
<td><b><span class="gen">{BIRTHDAY}</span></b></td>
</tr>
#
#-----[ REMPLACER, PAR ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_AGE}:</span></td>
<td><b><span class="gen">{USER_AGE}</span></b></td>
</tr>
#
#-----[ SAUVER/FERMER TOPUS LES FICHIERS ]------------------------------------------
#
# EoM
Goodbye.


