Display age instead of birthay?

Mod that adds a birthday field to the users profile, theire age are displayed beside the posts, and on there birthday they will have a greeting popup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby galixte on Sun 24. Jul, 2005 12:23

Hi,

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.
User avatar
galixte
Poster
Poster
 
Posts: 16
Joined: Tue 27. Apr, 2004 15:14
Location: France

Postby easygo on Wed 14. Sep, 2005 01:47

Merci pour votre traduction @ galixte

Btw: Nice to see, that this topic has appeared again. Thanks for restoring.
Here we go ^^
Image
easygo
Poster
Poster
 
Posts: 44
Joined: Tue 02. Nov, 2004 17:03

Previous

Return to Birthday [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron