################################################################# ## Mod Title: Custom Joined Date Format ## Mod Version: 1.0.0 ## Author: Matthijs ## Description: This will add an entry to the language file(s) ## to allow a different date format for the joined ## date in view topic and view profile. ## ## Installation Level: Easy ## Installation Time: 4 Minutes ## Files To Edit: viewtopic.php, includes/usercp_viewprofile.php, ## language/lang_YOURLANG/lang_main.php ## Included Files: N/A ################################################################# ## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites ################################################################# ## ## Author Note: ## The date format in the language file must be the same as used ## by the PHP date() function (See http://www.php.net/date) ## ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; # #-----[ REPLACE WITH ]------------------------------------------ # $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['JOINED_DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; # #-----[ OPEN ]------------------------------------------ # includes/usercp_viewprofile.php # #-----[ FIND ]------------------------------------------ # 'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']), # #-----[ REPLACE WITH ]------------------------------------------ # 'JOINED' => create_date($lang['JOINED_DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']), # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # $lang['DATE_FORMAT'] = "d M Y"; // This should be changed to the default date format for your language, php date() format # #-----[ AFTER, ADD ]------------------------------------------ # $lang['JOINED_DATE_FORMAT'] = "M Y"; // Date format of Joined date, php date() format # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM