1

Topic: Addon Pages

I was wondering if someone could create a blank page template. Where you can add your own information in.

For example: A page like forum rules, but you can add in your own things either manually or by the admin panel.

Thanks,

Storm.

Re: Addon Pages

There already is a forum rules page that you can edit and enable in admin wink

theres a new page template here http://punres.org/doku.php?id=tutorials … e_template

3

Re: Addon Pages

Connorhd wrote:

There already is a forum rules page that you can edit and enable in admin wink

theres a new page template here http://punres.org/doku.php?id=tutorials … e_template

I used the forum rules as an example, and thanks for the new page, thats what I was looking for! big_smile

4 (edited by Dr.Jeckyl 2005-12-20 18:35)

Re: Addon Pages

@Connorhd: i've been meaning to ask you, when you use the new page template and it's a folder or 2 past the forum root, how do you edit

define('PUN_ROOT', './');

so the links point to the right place? when i try to change it i either get a blank page or my links are wrong, with 1 or 2 directories added to them. basicly, how do i define it so it is always pointing to the site root regardless of what folder it's in? if that's possible.

i remember you said something here but i don't understand "PUN_ROOT has to be relative". could you explain a bit please?

if i make a page in the site root the template works great, styled correctly, links work right. but if i put it in one folder out it's not styled and the links are wrong.

example:
www.domain.com/article/newpage.php  without changing anything in the code, nothing works here. if i change it to "define('PUN_ROOT', '../');" it's not styled and the links have "www.domain.com/article/link.php" added on them and it shouldn't be there. what is the correct way to define a site root say 1, 2 or even 3 folders out?

did i explain this enough?  wink

~James
FluxBB - Less is more

Re: Addon Pages

PUN_ROOT is just used to include php files within punbb, its not used for links shown in the html, you can't make PUN_ROOT a http address it has to be a path from the file you are into, to the punbb installation on the server file system.

Re: Addon Pages

Connorhd wrote:

...it has to be a path from the file you are into, to the punbb installation on the server file system.

so how do you point backwards to the pun installation?

~James
FluxBB - Less is more

Re: Addon Pages

../ is up a folder you can do ../../ to go up 2 folders etc

Re: Addon Pages

doh, i forgot about the <base> thing... i feel dumb. thanks Connor.

~James
FluxBB - Less is more