############################################################## ## 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'] ) ? '' . $lang['Visit_website'] . '' : ' '; $www = ( $profiledata['user_website'] ) ? '' . $profiledata['user_website'] . '' : ' '; # #-----[ 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 ]------------------------------------------ # {L_BIRTHDAY}: {BIRTHDAY} # #-----[ AFTER, ADD ]------------------------------------------ # {L_AGE}: {AGE}