Adding a mod that requires a profile edit

I have a mod I badly want to install and am stumped. It only calls for 1 edit that I cant do and its kind of important. It is calling for a edit in usercp_viewprofile.php
We all know that dont work. So what do I do in this instance?
Here is what it calls for.
Im sure this would easily fit in under usermaps easily and not hurt anythign at all.
We all know that dont work. So what do I do in this instance?
Here is what it calls for.
- Code: Select all
##-----[ OPEN ]------------------------------------------#includes/usercp_viewprofile.php##-----[ FIND ]------------------------------------------#$template->assign_vars(array( 'USERNAME' => $profiledata['username'],##-----[ BEFORE, ADD ]------------------------------------------#//BEGIN MPS AUTO-MP3 MOD//// Include Language Begin//$language = $board_config['default_lang']; if ( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_mps_mp3_main.'.$phpEx) ){ $language = 'english';} include($phpbb_root_path . 'language/lang_' . $language . '/lang_mps_mp3_main.' . $phpEx);//// Include Language End// $sql = "SELECT auto_mp3 FROM ".MPS_MP3_SETTINGS_TABLE." WHERE user_id = ".$profiledata['user_id'].""; if(!($result = $db->sql_query($sql))){ message_die(GENERAL_ERROR, $lang['MPS_no_query'], '', __LINE__, __FILE__, $sql);} $row = $db->sql_fetchrow($result);$mps_mp3_player = $row['auto_mp3']; if( !empty($row['auto_mp3']) ){ $sql = "SELECT player_height FROM ".MPS_MP3_SETTINGS_TABLE." WHERE user_id = ".$profiledata['user_id'].""; if(!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, $lang['MPS_no_query'], '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $playerheight = $row['player_height']; $playerheight = $playerheight + 25; $template->assign_block_vars('switch_auto_mp3', array() ); $template->assign_vars(array( 'PLAYER_HEIGHT' => $playerheight, 'AUTO_MP3' => $mps_mp3_player, 'L_MPS_AUTO_MP3' => $lang['mps_auto_mp3_title'], 'L_AUTO_MP3_STANDALONE_PLAYER' => $lang['auto_mp3_standalone_link'], 'U_AUTO_MP3_STANDALONE_PLAYER' => append_sid('auto-mp3_player.'.$phpEx.'?user='.$profiledata['user_id'].'') ) );}//END MPS AUTO-MP3 MOD
Im sure this would easily fit in under usermaps easily and not hurt anythign at all.