Adding a new page to a theme...

Posted by Durtdawber 
Adding a new page to a theme...
April 30, 2007 12: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 12: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 - Personal Blog
Re: Adding a new page to a theme...
April 30, 2007 01: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 06:06PM
Never mind...Figured it out...
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login