Topic: help with miniportal

Hey guys I need help with geting the left side menu to not show on the forum.php..... plaz help

I'm using miniportal.......


http://devoted.to/thegamers

Re: help with miniportal

99 views and not one reply come on guys....

3 (edited by StevenBullen 2006-01-14 10:01)

Re: help with miniportal

The miniportal actually changes your main.tpl file... which means you cannot do what you require...

I had a similar situation with a previous site I done... Here is a work around...
Comments if this is good or bad from the PunBB professionals would be appreciated.

header.php
replace...

else
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');

with...

else if ($style=="forum")
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/main2.tpl');
else
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');

forum.php, viewtopic.php, viewforum.php
find...

require PUN_ROOT.'include/common.php';

after add...

$style = 'forum';

Now you need to get an unaltered main.tpl then rename it to main2.tpl and upload it to /include/template...

Hey presto.... forum will now will be without menu.

Side Note: Any other pages you require without the left side bar just put the

$style = 'forum';

as done in forum.php, viewtopic.php and viewforum.php.....

Dont think I have missed anything...

4

Re: help with miniportal

KiLLMasTer wrote:

Hey guys I need help with geting the left side menu to not show on the forum.php..... plaz help

I'm using miniportal.......


http://devoted.to/thegamers

if you get the main.tpl file that you have not edited and save it as like main2.tpl and get your forum.php file to read that one, then you will not get the side panel, but the other pages will read main.tpl and get the side panel.
bit of a hard way to do it but it works smile

Re: help with miniportal

Mark wrote:
KiLLMasTer wrote:

Hey guys I need help with geting the left side menu to not show on the forum.php..... plaz help

I'm using miniportal.......


http://devoted.to/thegamers

if you get the main.tpl file that you have not edited and save it as like main2.tpl and get your forum.php file to read that one, then you will not get the side panel, but the other pages will read main.tpl and get the side panel.
bit of a hard way to do it but it works smile

Which is exactly what I have explained above already...

Re: help with miniportal

thax guys for the reply......

Re: help with miniportal

thax guys i got it working..... smile