1

Topic: custom pages through pun template system?

Please forgive my first post asking this but I have spent ages searching your site and google to find out how I can achieve this.

my intended site will look like this -

root
   --- dir 1
   --- dir 2
   --- forum

So I want a web page in root to be passed through pun 1.3 templating system to give the whole site the same feel.

I have got that page to be in pun by using

define('FORUM',1);
define('FORUM_ROOT', 'forum/');
define('FORUM_PAGE', 'home');

include FORUM_ROOT . 'include/common.php';

print_r ($forum_user);

But I am now struggling to get my content to display (it's only a simple <h2>Hello</h2>) and have the css, head and foot of pun.

Any help would be great fully received.

2

Re: custom pages through pun template system?

My incompetence precede's me roll

Just found what I've been look for here http://punbb.informer.com/forums/topic/ … te-a-page/

Re: custom pages through pun template system?

what version of punbb are you using?
what i did was for 1.3 latest release.

if u look at the page the location of the forum is the main thing.
so it will pull the info and style information.


<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';

is the top and main function.
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!