Topic: Is there a way to remove side blocks

I am just wondering if there is way to remove the left/right side blocks on my site. I am using the miniportal mod but I have a narrow theme and an upload mod but the text is not wrapped so because of the left/right blocks I don't see it all. Is there some way I can add some code in the actual file so that when I view the mod the left/right blocks are removed?

Thanks
Bingiman

Re: Is there a way to remove side blocks

Create a new template file based on the original main.tpl

Open header.php

find

else if (defined('PUN_HELP'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');
 

change to

else if (defined('PUN_HELP'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');
else if (defined('PUN_ALT'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/new_template.tpl');

In the files you want a different template for add

define('PUN_ALT',1);   

before the header is called.

Re: Is there a way to remove side blocks

I will try that but is this a stupid thing to do inside the file:

define('PUN_ADMIN_CONSOLE', 1);
define('PUN_ROOT', './');

This solves the problem and a regular user doesn't have admin access to the mod admin functions.

Re: Is there a way to remove side blocks

Your method worked so I shall use that. Thanks