Page 1 of 2

Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Tue May 02, 2006 2:05 pm
Author: found it
Hi

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..... :D
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

:mrgreen:

[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]

PostPosted: Tue May 02, 2006 3:05 pm
Author: Adrian Rea
Brilliant Found-it I will definitely look forward to that one <img> [img]http://integramod.com/forum/images/icon/icon14.gif[/img]


A

PostPosted: Tue May 02, 2006 3:06 pm
Author: found it
[quote=""Adrian Rea";p="4169""]Brilliant Found-it I will definitely look forward to that one :mrgreen: <img>

PostPosted: Sat Feb 03, 2007 5:40 pm
Author: ScottDaMan
Is this IM141 friendly?

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Sat Feb 03, 2007 6:10 pm
Author: MWE_001
Yes ...it is. I suggest you go right to founditforum.com and grab his files and follow his walkthrough for the smoothest install possible. Most importantly, READ the KB article all the way through. It has a couple comments and fixes for a few small errors you will encounter for 100% sure. <img>

PostPosted: Sun Feb 04, 2007 10:12 pm
Author: ScottDaMan
Cool. Thank you. I saw some fixes in the comments of the KB. Awesome.

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Sun Feb 04, 2007 11:00 pm
Author: MWE_001
No Probs. Glad I could get you the info you needed. <img>

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Mon Feb 05, 2007 1:20 am
Author: found it
[quote=""MWE_001";p="21290""]Yes ...it is. I suggest you go right to founditforum.com and grab his files and follow his walkthrough for the smoothest install possible. Most importantly, READ the KB article all the way through. It has a couple comments and fixes for a few small errors you will encounter for 100% sure. :mrgreen: <img>

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Mon Feb 05, 2007 1:50 am
Author: MWE_001
Any time Found It.....

And disclaimer. I in no way shape or form am afiliated with founditforum.com I just find his KB walkthrough one of the most useful items to use to install activity mod with Integramod. He has done a fine job and everytime I install this mod, I Immediately log in to his site.

Austins version works a treat with a regular phpBB and even with IM Portal over the top of it. But not so well for integramod. <img>

PostPosted: Wed Jul 25, 2007 3:20 am
Author: HBAndrew
Installed this recently onto 141, seems to almost work perfectly, main problem I have is after submitting score in new window, view comments, post comment and rate doesn't work and whatever the top arrow is for I don't know. Rechecked my edits and they appear fine. Anyone got a fix?

[photo]http://img240.imageshack.us/img240/7130/activityjg4.jpg[/photo]

Thanks

EDIT: Ok when playing in same window, next to the top arrow is a link to play the game again which works, but the other links other than add to favorites still don't work. Comments is enabled in the Xtras menu.

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Tue Nov 17, 2009 8:44 pm
Author: Le File
Anyone can give a walkthrough to install activity mod in IM 1.4.1?
Because i have changed my IM 1.4.1 theme from integra2 to Vista, can i still use it without change?
I need the walkthrough very much.... <img>




Thanks for the help before.....

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Wed Nov 18, 2009 6:03 am
Author: found it
[quote=""Le File""]Anyone can give a walkthrough to install activity mod in IM 1.4.1?
Because i have changed my IM 1.4.1 theme from integra2 to Vista, can i still use it without change?
I need the walkthrough very much.... :mrgreen: <img>

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Wed Nov 18, 2009 6:08 am
Author: Le File
<img> Thanks Found It for your fast respond. But I still confuse, how can i get the file for upload to my template (vista), whenever the available file just for fisubice and integra2?




Thanks before

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Wed Nov 18, 2009 8:56 am
Author: found it
upload the activity files to your vista template it should work fine...

Re: Walkthrough for installing activity mod 1.1.0 into 1.4.0

PostPosted: Thu Oct 11, 2018 3:26 am
Author: RayZap
Does this walkthrough still work? Or is it specific to 1.4.0 version?