############################################################## 
## MOD Title: [Birthdays 2.0.1] Profile Age Add-on
## MOD Author: RMcGirr83 < N/A > (N/A) http://betraythis.com/
## MOD Description: Adds an Age field to the profile (as opposed to just DoB).
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 2
##      lang_main.php
##      includes/usercp_viewprofile.php
##      templates/subSilver/profile_view_body.tpl
##
## Included Files: 0
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## http://www.phpbb.com/phpBB/viewtopic.php?p=2062221#2062221
##
############################################################## 
## MOD History: 
##
##   2006-04-20 - Version 1.0.0
##      - initial release
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
language/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Todays_Birthdays'] = 'Today\'s Birthdays';
$lang['View_Birthdays'] = 'Happy Birthday!';
#
#-----[ AFTER, ADD ]------------------------------------
#
$lang['age'] = 'Age';
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : '&nbsp;';
#
#-----[ AFTER, ADD ]------------------------------------
#
$bday_month_day = floor($profiledata['user_birthday'] / 10000);
$bday_year_age = $profiledata['user_birthday'] - 10000*$bday_month_day;
$fudge = ( gmdate('md') < $bday_month_day ) ? 1 : 0;
$age = ( $bday_year_age ) ? (gmdate('Y')-$bday_year_age-$fudge) : '';
#
#-----[ FIND ]------------------------------------------
#
	'POSTER_RANK' => $poster_rank,
#
#-----[ AFTER, ADD ]------------------------------------
#
	'AGE' => $age,
#
#-----[ FIND ]------------------------------------------
#
	'L_BIRTHDAY' => $lang['Birthday'],
#
#-----[ AFTER, ADD ]------------------------------------
#
	'L_AGE' => $lang['age'];
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
		<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>
#
#-----[ AFTER, ADD ]------------------------------------------
#
		<tr>
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_AGE}:</span></td>
		  <td> <b><span class="gen">{AGE}</span></b></td>
		</tr>