I was asked for some help in installing this as some of the edits do not match up with IntegraMod......
So i made a complete walkthrough showing exactly where to place the code and also included premodded files for users with no mods installed....
I have tested both the edited files and the premodded files on 2 different integramod sites and both work perfectly...
The link is [url=http]HERE[/url]
Here is the link again as it seems to only work for me.....

http://www.founditforum.com/forum/kb.ph ... rticle&k=3
The premodded files are found in our download section under Integramod MODs
Any problems let me know and if it all works please leave a comment in my KB...
If you have download the latest zip of patch files Acivity mod admin panel does not work.....please apply this simple fix...........
find all the admin files which are
[list type=decimal][*]admin_activity.php[*]admin_ina_ban.php[*]admin_ina_bulk_add.php[*]admin_ina_category.php[*]admin_ina_char.php[*]admin_ina_disable.php[*]admin_ina_in_un.php[*]admin_ina_mass.php[*]admin_ina_scores_edit.php[*]admin_ina_xtras.php[/list]
copy these files to root/admin/modules and everything will work fine again........please remember you need to reapply the code changes to any files you overwrote.....all the changes are the same......
[s:2uimjwj7]You can find all the blocks for the activity mod[/s:2uimjwj7]
Thanks and enjoy

[size=99px]I will update this when the newer version of inter is released all premodded files are now fully upgraded[/font][/size]
[highlight=#BF8000:2uimjwj7][size=99px]
[spoil:2uimjwj7]Starting with index.php
FIND (LINE 31)
- Code: Select all
//// Start session management//$userdata = session_pagestart($user_ip, PAGE_INDEX);init_userprefs($userdata);//// End session management//
AFTER ADD
- Code: Select all
#======================================================================= |#==== Start])) ? 'Arcade' : '';$ipb_score = (isset($HTTP_GET_VARS['do'])) ? 'newscore' : ''; if ( ($ipb_check) && ($ipb_score) ) { $game = trim(addslashes(stripslashes($HTTP_POST_VARS['gname']))); $score = intval($HTTP_POST_VARS['gscore']); $q = "SELECT game_type FROM ". iNA_GAMES ." WHERE game_name = '". $game ."'"; $r = $db->sql_query($q); $row = $db->sql_fetchrow($r); #==== Only IPB Games Can Use This Format! if ($row['game_type'] == 3) { echo '<form>'; echo '<input>'; echo '<input>'; echo '</form>'; echo '<script>'; echo 'window.onload = function(){document.ipb.submit()}'; echo '</script>'; exit(); } else { redirect(append_sid('activity.'. $phpEx), TRUE); } }#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
OPEN INCLUDES/FUNCTIONS.PHP
FIND (LINE 2196)
- Code: Select all
?>
BEFORE ADD
- Code: Select all
#======================================================================= |#==== Start]; $q1 = "SELECT COUNT(*) AS trophies FROM ". $table_prefix ."ina_top_scores WHERE player = '$who' GROUP BY player"; $r1 = $db -> sql_query($q1); $row = $db -> sql_fetchrow($r1); $total_trophies = $row['trophies']; $q2 = "UPDATE ". USERS_TABLE ." SET user_trophies = '$total_trophies' WHERE user_id = '$who'"; $r2 = $db -> sql_query($q2); } return; } function CheckGamesDeletion() { global $db, $table_prefix, $board_config; $q = "SELECT config_value FROM ". CONFIG_TABLE ." WHERE config_name = 'current_ina_date'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $next_deletion = $row['config_value']; $explode_it = explode("-", $next_deletion); $d_month = $explode_it[1]; $t_date = date("Y-m-d"); $x_date = explode("-", $t_date); $c_month = $x_date[1]; if($d_month == $c_month){ } else { if($board_config['ina_delete'] == "1") { $q = "TRUNCATE ". iNA_SCORES .""; $r = $db -> sql_query($q); $q = "TRUNCATE ". $table_prefix ."ina_trophy_comments"; $r = $db -> sql_query($q); $q = "UPDATE ". CONFIG_TABLE ." SET config_value = '$t_date' WHERE config_name = 'current_ina_date'"; $r = $db -> sql_query($q); } } return; }#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #=======================================================================|
OPEN INCLUDES/CONSTANTS.PHP
FIND (LINE 184)
- Code: Select all
define('PAGE_DOWNLOAD', -19);
AFTER ADD
- Code: Select all
#======================================================================= |#==== Start] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
FIND (LINE 296)
- Code: Select all
?>
BEFORE ADD
- Code: Select all
#======================================================================= |#==== Start] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
OPEN INCLUDES/PAGE_HEADER.PHP
FIND (LINE 1005)
- Code: Select all
if ($row['user_allow_viewonline'] != YES) $row['username'] = '<i>' . $row['username'] . '</i>';
BEFORE ADD
- Code: Select all
#======================================================================= |#==== Start] == PAGE_ACTIVITY || $row['user_session_page'] == PAGE_PLAYING_GAMES) { $row['username'] = '<b>'. $row['username'] .'</b>'; $style_color = 'style="color:#'. str_replace('#', '', $board_config['ina_online_list_color']) .'"'; }#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
FIND (LINE 831)
- Code: Select all
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
AFTER ADD
- Code: Select all
#======================================================================= |#==== Start]) .'">'. $board_config['ina_online_list_text'] .'</font></a>', 'U_ACTIVITY' => append_sid('activity.'.$phpEx), 'L_ACTIVITY' => $lang['Activity'], #====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
OPEN ADMIN/INDEX.PHP
FIND (LINE 403)
- Code: Select all
case PAGE_FAQ]; $location_url = "index.$phpEx?pane=right"; break;
AFTER ADD
- Code: Select all
#======================================================================= |#==== Start]; $location_url = "activity.$phpEx"; break;#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
OPEN LANGUAGE/LANGUAGE_ENGLISH/LANGUAGE_MAIN.PHP
FIND (LINE 1403)
- Code: Select all
//// That's all, Folks!// -------------------------------------------------
BEFORE ADD
- Code: Select all
#======================================================================= |#==== Start] = 'Games';$lang['Trohpy'] = 'Game Trophies';#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== | #======================================================================= |
OPEN TEMPLATES/FISUBICE/OVERALL_HEADER.TPL
- Code: Select all
</head>
BEFORE ADD
- Code: Select all
<SCRIPT>var win = null;function Gk_PopTart(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 ]
OPEN TEMPLATES/FISUBICE/SIMPLE_HEADER.TPL
FIND
[code]</head>[/code]
BEFORE ADD
[code]<SCRIPT>var win = null;function Gk_PopTart(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 ]
OPEN language/lang_english/lang_extend_pcp_addons.php
FIND
[code]?>[/code]
BEFORE ADD
[code]$lang['Trophy_Unknown'] = 'Trophy Unknown';$lang['Trophy_King'] = 'Trophy King';$lang['Trophy_Queen'] = 'Trophy Queen';[/code]
OPEN profilcp/def/def_userfuncs_custom.php
FIND
[code]?>[/code]
BEFORE ADD
[code]//----------------------------------------------------//// Add-on ]; include_once($phpbb_root_path .'includes/functions_amod_plus.'. $phpEx); $q = "SELECT * FROM ". INA_HOF .""; $r = $db->sql_query($q); $hof_data = $db->sql_fetchrowset($r); if ( ($show_trophies) && ($view_userdata['user_id'] != ANONYMOUS) ) { $txt = Amod_Build_Topics($hof_data, $view_userdata['user_id'], $view_userdata['user_trophies'], $view_userdata['username'], $view_userdata['ina_char_name']); } $res = pcp_output_format($field_name, $txt, $img, $map_name); return $res;}//-----------------------------------//// user_trophy_profile output function////----------------------------------- function pcp_output_trophy_profile($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $server_url, $db; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; $txt = ''; $img = ''; $res = ''; $show_trophies = $board_config['ina_show_view_profile']; include_once($phpbb_root_path .'includes/functions_amod_plus.'. $phpEx); $q = "SELECT * FROM ". INA_HOF .""; $r = $db->sql_query($q); $hof_data = $db->sql_fetchrowset($r); if ( ($show_trophies) && ($view_userdata['user_id'] != ANONYMOUS) ) { $txt = Amod_Build_Topics($hof_data, $view_userdata['user_id'], $view_userdata['user_trophies'], $view_userdata['username'], $view_userdata['ina_char_name']); } $res = pcp_output_format($field_name, $txt, $img, $map_name); return $res;}//-----------------------------------//// user_trophy_time output function////----------------------------------- function pcp_output_trophy_time($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $server_url, $db; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; $txt = ''; $img = ''; $res = ''; if ( !empty($view_userdata['ina_time_playing']) ) { $profile_time = DisplayPlayingTime(2, $view_userdata['ina_time_playing']); $txt = $profile_time; } $res = pcp_output_format($field_name, $txt, $img, $map_name); return $res;}[/code]
OPEN profilcp/def/def_userfuncs_std.php
FIND
[code]//-----------------------------------//// user_rank_title output function////-----------------------------------function pcp_output_rank_title($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; if ( $view_userdata['user_id'] != ANONYMOUS ) { $rank = get_user_rank($view_userdata); $txt = $rank['rank_title']; $img = $rank['rank_image']; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); } return $res;}[/code]
REPLACE WITH
[code]//-----------------------------------//// user_rank_title output function////-----------------------------------function pcp_output_rank_title($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; if ( $view_userdata['user_id'] != ANONYMOUS ) { $rank = get_user_rank($view_userdata); if ($board_config['ina_use_trophy']) { switch ($view_userdata['user_gender']) { case 0]; break; case 1: $trophy_leader = $lang['Trophy_King']; break; case 2: $trophy_leader = $lang['Trophy_Queen']; break; } include_once($phpbb_root_path .'language/lang_'. $board_config['default_lang'] .'/lang_activity.'. $phpEx); $trophy_image = '<img>'; } if ($view_userdata['user_id'] == $board_config['ina_trophy_king']) { $rank['rank_image'] = $trophy_image; $rank['rank_title'] = $trophy_leader; $txt = $rank['rank_title']; $img = $rank['rank_image']; } $txt = $rank['rank_title']; $img = $rank['rank_image']; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); } return $res;}[/code]
OPEN profilcp/def/def_userfields.php
FIND
[code]// messengers informations[/code]
BEFORE ADD
[code]'user_trophy_topic' => array( 'lang_key' => 'Trophies', 'class' => 'generic', 'type' => 'VARCHAR', 'dsp_func' => 'pcp_output_trophy_profile', ), 'user_trophy_profile' => array( 'lang_key' => 'Trophies', 'class' => 'generic', 'type' => 'VARCHAR', 'dsp_func' => 'pcp_output_trophy_profile', ), 'user_trophy_time' => array( 'lang_key' => 'Game Time', 'class' => 'generic', 'type' => 'VARCHAR', 'dsp_func' => 'pcp_output_trophy_time', ),[/code]
OPEN profilcp/def/def_usermaps.php
FIND
[code]), ), 'PCP.viewprofile.base.real' => array([/code]
BEFORE ADD
[code]'user_trophy_profile' => array( 'lang_key' => 'Trophies', 'dsp_func' => 'pcp_output_trophy_profile', 'leg' => true, 'txt' => true, ), 'user_trophy_time' => array( 'lang_key' => 'Game Time', 'dsp_func' => 'pcp_output_trophy_time', 'leg' => true, 'txt' => true, ),[/code]
FIND
[code]once you find this you can add it anywhere above you want. ), ), 'PHPBB.viewtopic.left.ignore' => array([/code]
BEFORE ADD
[code]'user_trophy_topic' => array( 'lang_key' => 'Trophies', 'dsp_func' => 'pcp_output_trophy_topic', 'txt' => true,'img' => true, 'style' => '<div>%s</div>', ),
AND THATS IT....
Now save all your files in your first folder (not the folder files before changes) and upload them to your site....in the correct places
Second part....
you need to upload all the files that came with activity mod plus and follow the instructions carefully as to where they go.....here is a copy of the instructions FYI...
Amod/ (ONLY IF YOU DONT HAVE IT) -> Root/
game_root/ (ONLY IF YOU DONT HAVE IT) -> Root/
amod_files/ (Folder + All Files) -> Root/
activity.php -> Root/
activity_char.php -> Root/
activity_favs.php -> Root/
activity_popup.php -> Root/
activity_trophy_popup.php -> Root/
arcade.php -> Root/
game.php -> Root/
newscore.php -> Root/
admin/
admin_activity.php -> Root/admin/
admin_ina_ban.php -> Root/admin/
admin_ina_bulk_add.php -> Root/admin/
admin_ina_category.php -> Root/admin/
admin_ina_char.php -> Root/admin/
admin_ina_disable.php -> Root/admin/
admin_ina_in_un.php -> Root/admin/
admin_ina_mass.php -> Root/admin/
admin_ina_scores_edit.php -> Root/admin/
admin_ina_xtras.php -> Root/admin/
includes/
functions_amod_plus.php -> Root/includes/
functions_amod_plus_char.php -> Root/includes/
functions_amod_plusC.php -> Root/includes/
rewards_api.php -> Root/includes/
language/
lang_activity.php -> Root/language/lang_*/
lang_activity_char.php -> Root/language/lang_*/
templates/subSilver/
amod_files/ (Folder + All Files) -> Root/templates/*/
templates/subSilver/admin/
activity_admin_edit.tpl -> Root/templates/*/admin/
activity_admin_main.tpl -> Root/templates/*/admin/
activity_config_body.tpl -> Root/templates/*/admin/
activity_games_body.tpl -> Root/templates/*/admin/
game_add_body.tpl -> Root/templates/*/admin/
templates/subSilver/images/
game_info.gif -> Root/templates/*/images/
icon_mini_activity.gif -> Root/templates/*/images/
Always best to check a couple of times when doing this as it is so easy to place a file in the wrong place...and remeber Root/templates/*/admin/ the * means the template you are using....
Look at the bottom of your site, click Goto Administration Page
In the ACP (Admin Control Panel) find on the left, Amod+ Admin
under that you will see a list of links]