Page 1 of 1

Adding a Second Portal

Posted: 23. September 2008 12:21
by Maverick
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://www.pitlanefanatic.com

What have you done before the problem was there?
-

What have you already tryed to solve the problem?
-

Description and Message
I want to add a second portal (I liked the first one so much ;) ) to separate off an area of my board and I was wondering a) if that is possible and b)if it is, could I have some guidance on what would need to be changed to install it in order to avoid it clashing with the existing portal?

Thanks in advance
Maverick

Re: Adding a Second Portal

Posted: 23. September 2008 23:49
by MichielM
You mean just a second portal page?

Re: Adding a Second Portal

Posted: 24. September 2008 01:28
by Maverick
Yes.

Re: Adding a Second Portal

Posted: 28. September 2008 10:55
by Pete
Easy. copy portal.php - rename to whatever.php and open and make sure to change the template file.

open whatever.php FIND
$template->set_filenames(array(
'body' => '/portal/portal_body.html'

change to
$template->set_filenames(array(
'body' => '/portal/whatever_body.html'


make a copy of portal_body.html rename it to whatever_body.html. this is in the templates area
( prosilver/template/portal/whatever_body.html )

------
So far i've made 2 pages and all is woring okay. I haven't had to edit in anything else. you may need to add the links in the header or menus, obviously.

Re: Adding a Second Portal

Posted: 29. September 2008 02:24
by Maverick
Big thanks... seems pretty straightforward. :D

Re: Adding a Second Portal

Posted: 29. September 2008 04:01
by Maverick
Thanks again, if this is of use to anyone else they may want to change the page title which is also contained in whatever.php

open whatever.php FIND
page_header($user->lang['PORTAL']);

change to
page_header("whatever");

Re: Adding a Second Portal

Posted: 29. September 2008 07:17
by Pete
ha, I was just noticing that today. thanks and no prob! :lol:

Re: Adding a Second Portal

Posted: 1. October 2008 03:05
by MichielM
Been too busy to check here Mav; my apologies, but yes the answer is pretty straightforward.

Pete: thx 4 giving the answer.

Cheers, Mitch