1 (edited by TFD 2007-09-28 18:51)

Topic: frontpage, miniportal

I tried installing frontpage and got it to work but then the forums all had the side bar menu, decreased header size etc. I want the forums to stay as they are but have just a frontpage with the side menu etc. Is there a way to do this?





also I would like to have actual news (not threads or topics from the forum) diplayed. Anyone can tell me how that can be done? I see people do it somehow get AP wire or cbssportline.com sports news displayed in small blocks that link to the whole story.




Thanks in advance.

Re: frontpage, miniportal

Don't know for the actual news part, but I can help with the frontpage boxes.

Replace your main.tpl with the default.

Open Header.php, Find:

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

Add after:

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

Now, open your portal's .php file.

Find:

define('PUN_QUIET_VISIT', 1);

Add after:

define('PUN_PORTAL', 1);

And place the frontpage's .tpl file into a file called portal.tpl in your /include/template/ folder. smile

[img]http://i192.photobucket.com/albums/z314/avantgarde--/helplol.png[/img]

3

Re: frontpage, miniportal

cool thanks avantgarde! I will try this later today and see what happens!