If you're running Categories Hierarchy 2.1.x and want to install IM Portal 1.2.0, install the MOD as instructed in the downloads and then do the following...
Open includes/page_header.php
FIND
- Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url] // debug forum wide Portal/*if($layout_forum_wide_flag) $temp_debug = 1;else $temp_debug = 0;die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal if(empty($gen_simple_header)){ if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))) { $template->set_filenames(array( 'portal_header' => 'portal_page_header.tpl') ); portal_parse_blocks($portal_config['default_portal'], TRUE, 'header'); $template->assign_var('HEADER_WIDTH', $portal_config['header_width']); $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header')); }}
REPLACE WITH
- Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url] // debug forum wide Portal/*if($layout_forum_wide_flag) $temp_debug = 1;else $temp_debug = 0;die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal if(empty($gen_simple_header)){ if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))) { $template->set_filenames(array( 'portal_header' => 'portal_page_header.tpl') ); portal_parse_blocks($portal_config['default_portal'], TRUE, 'header'); $template->assign_vars(array('HEADER_WIDTH' => $portal_config['header_width'])); $template->assign_vars(array('PORTAL_HEADER' => portal_assign_var_from_handle($template, 'portal_header'))); }}
Open includes/page_tail.php
FIND
- Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url] // debug forum wide Portal/*if($layout_forum_wide_flag) $temp_debug = 1;else $temp_debug = 0;die('debug: ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_tail']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))){ $template->set_filenames(array( 'portal_tail' => 'portal_page_tail.tpl') ); portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail'); $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']); $template->assign_var('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail'));}
REPLACE WITH
- Code: Select all
//// IM Portal [url=http]http://www.integramod.com//[/url] // debug forum wide Portal/*if($layout_forum_wide_flag) $temp_debug = 1;else $temp_debug = 0;die('debug: ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_tail']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/// debug forum wide Portal if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))){ $template->set_filenames(array( 'portal_tail' => 'portal_page_tail.tpl') ); portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail'); $template->assign_vars(array('FOOTER_WIDTH' => $portal_config['footer_width'])); $template->assign_vars(array('PORTAL_TAIL' => portal_assign_var_from_handle($template, 'portal_tail')));}