Sub Menu
Links Menu
Online Users

In total there are 306 users online :: 2 registered, 0 hidden and 304 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

Categories Hierarchy 2.1.x and IM Portal 1.2.0

Support for the IM Portal Project

Moderator: Integra Moderator

Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostAuthor: Teelk » Thu Jul 20, 2006 11:10 am

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')));}
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostAuthor: richiebgood » Tue Aug 08, 2006 12:06 am

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?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostAuthor: Teelk » Thu Aug 10, 2006 3:18 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostAuthor: richiebgood » Thu Aug 10, 2006 3:21 pm

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?
Last edited by richiebgood on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 12:01 am
Cash on hand: 0.00
Location: Ireland

Re: Categories Hierarchy 2.1.x and IM Portal 1.2.0

PostAuthor: Teelk » Sun Aug 13, 2006 7:26 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada


Return to IM Portal Support Forum

Who is online

Registered users: Bing [Bot], Google [Bot]

cron