Sub Menu
Links Menu
Online Users

In total there are 964 users online :: 2 registered, 0 hidden and 962 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

IM Portal Page layout defaults

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Re: IM Portal Page layout defaults

PostAuthor: egdcltd » Sat Jun 30, 2007 4:31 am

I managed to alter the layout of certain pages by doing the following.

Open includes/page_header.php, removing the following code
Code: Select all
//// IM Portal blocks//if(empty($gen_simple_header)){     if(!$layout_forum_wide_flag&&$portal_config['portal_header'])     {         if(defined('HAS_DIED') || defined('IN_LOGIN')){             $template->assign_var('FOOTER_WIDTH', 0);         } else {         if($portal_config['portal_tail'])         {             $template->assign_block_vars('switch_portal_both', array());             $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);         }         else         {             $template->assign_block_vars('switch_portal_header', array());         }         $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'));         }     }     else if ($portal_config['portal_tail'])     {         $template->assign_block_vars('switch_portal_tail', array());         $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);     }}//// end of IM Portal blocks//

then saving the file as includes/adr_page_header.php

Opening includes/page_tail.php, removing the following code
Code: Select all
//// IM 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('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail'));}

and saving as includes/adr_page_tail.php

Then I replaced the file page_header and page_tail names in the file(s) I wanted to change with the new filenames. Not sure if this is the best way to do it, but it seems to work.
Last edited by egdcltd on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]Free Online Games[/url] | [url=http]Script Directory[/url]

egdcltd
Newbie
Newbie
 
Posts: 21
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 3:59 am
Cash on hand: 0.00

Previous

Return to General Discussion

Who is online

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

cron