Page 1 of 1

Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostPosted: Thu Jul 20, 2006 11:10 am
Author: Teelk
Categories Hierarchy 2.1.x does not support assign_var() which is part of the IM Portal installation.

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')));}

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostPosted: Tue Aug 08, 2006 12:06 am
Author: richiebgood
hmm i noticed that alright in the admin panel some errors abut vars.

What exactly does it mean if it does not work, what will not function?

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostPosted: Thu Aug 10, 2006 3:18 pm
Author: Teelk
If you install phpBB + CH 2.1.x + IM Portal without making the above changes, then IM Portal will simply not appear. Meaning the blocks will not appear.

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostPosted: Thu Aug 10, 2006 3:21 pm
Author: richiebgood
i hate to disagree with someone who knows a lot more about it that i do, but on my old board, IM works grand

maybe a got an updated script?

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostPosted: Sun Aug 13, 2006 7:26 pm
Author: Teelk
You may have been using an older version of CH... it's possible that someone has updated the IM Portal download recently without my knowledge, however.