############################################################## ## MOD Title: [Birthdays 2.0.1] Memberlist Add-on ## MOD Author: RMcGirr83 < N/A > (N/A) http://betraythis.com/ ## MOD Description: Adds a Birthday field to the memberlist. ## MOD Version: 1.0.0 ## ## Installation Level: Easy ## Installation Time: 5 Minutes ## ## Files To Edit: 2 ## memberlist.php ## templates/subSilver/memberlist_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=2061450#2061450 ## ############################################################## ## 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 ]------------------------------------------ # memberlist.php # #-----[ FIND ]------------------------------------------ # $sql = "SELECT username, user_id, # #-----[ IN-LINE FIND ]---------------------------------- # user_id, # #-----[ IN-LINE AFTER, ADD ]---------------------------- # user_birthday, # #-----[ FIND ]------------------------------------------ # if ( $row = $db->sql_fetchrow($result) ) { $i = 0; do { $username = $row['username']; # #-----[ AFTER, ADD ]------------------------------------ # $bday_month_day = floor($row['user_birthday'] / 10000); $bday_year = $row['user_birthday'] - 10000*$bday_month_day; $fudge = ( gmdate('md') < $bday_month_day ) ? 1 : 0; $age = ( $bday_year ) ? (gmdate('Y')-$bday_year-$fudge) : ''; $lang_bd = ( $bday_year ) ? $lang['bd_user'] : $lang['bd_user_none']; # #-----[ FIND ]------------------------------------------ # $template->assign_block_vars('memberrow', array( 'ROW_NUMBER' => $i + ( $start + 1 ), # #-----[ AFTER, ADD ]------------------------------------ # 'AGE' => $lang_bd . $age, # #-----[ OPEN ]------------------------------------------ # templates/subSilver/memberlist_body.tpl # #-----[ FIND ]------------------------------------------ #