Firefox PHP

Adding a new page to a theme...

Posted by Durtdawber 
Adding a new page to a theme...
April 30, 2007 01:33PM
I have a page of custom content that I want to add to my current theme. Here is the scenario...

- the content is mainly html code
- I want to put a link on my main index page that will call this page
- I want the new page to use the same theme (color, header, etc...) as the rest of my Phorum site.

Any advise is appreciated.
Re: Adding a new page to a theme...
April 30, 2007 01:59PM
something like this:

define('phorum_page','my_page');
include_once("./common.php");
// set all our URL's ... we need these earlier
phorum_build_common_urls();
include phorum_get_template("header");
phorum_hook("after_header");

// Your stuff here

phorum_hook("before_footer");
include phorum_get_template("footer");

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Adding a new page to a theme...
April 30, 2007 02:58PM
Thank you very much Brian!

One followup...

How would I call this template from the index_new.tpl file? I plan on putting a link in the Nav bar.
Re: Adding a new page to a theme...
April 30, 2007 07:06PM
Never mind...Figured it out...
Sorry, only registered users may post in this forum.

Click here to login