Topic: Use "PHP Include" in main.tpl?

To make updating my site easier I have started using PHP includes every now and again, basically so i don't have to edit every page of my site if I add a new item to my menu or something. My question is, I am trying to include these php includes on my Punbb board also but it doesn't work.

I presume this is because the file is of .tpl extension so it won't call the include. Does anyone know of a way around this problem?

It's no big deal but would be nice to only have to edit the one file for the whole site smile Many Thanks

Re: Use "PHP Include" in main.tpl?

You can use the following code:
<pun_include "page.php">

and it will include PHP files in the tpl file.

Re: Use "PHP Include" in main.tpl?

That file needs to be in the include/user folder.

Re: Use "PHP Include" in main.tpl?

guardian34 wrote:

That file needs to be in the include/user folder.

The file or a symlink to it

5

Re: Use "PHP Include" in main.tpl?

Smartys wrote:

The file or a symlink to it

How does a symlink looks like?

Re: Use "PHP Include" in main.tpl?

http://en.wikipedia.org/wiki/Symbolic_link

7

Re: Use "PHP Include" in main.tpl?

That was fast. Thanks Smartys.