Adding a mod that requires a profile edit

Support for IntegraMOD 141

Moderator: Integra Moderator

Adding a mod that requires a profile edit

PostAuthor: DjPorkchop » Fri Nov 02, 2007 9:20 pm

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.
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.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: Adding a mod that requires a profile edit

PostAuthor: DjPorkchop » Thu Nov 08, 2007 5:53 pm

Anyone? <img>
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]