Topic: Including a file into main.tpl

Hello,

How can I include a HTML file into main.tpl?

I want my forum to look like: http://www.bulgaricus.com/forum/

but at the moment I have pasted all my menu file code into main.tpl.

Regards,

Edward

Re: Including a file into main.tpl

One solution is to use server side includes, but if you don't know how to do that, you could do this:

1. Install the following "mod": http://punbb.org/forums/viewtopic.php?id=2817

2. Then, in your main.tpl just add <?php include 'file.html' ?> wherever you want to include it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Including a file into main.tpl

Thanks a lot. It works smile

4 (edited by ihavenoidea 2003-11-04 18:42)

Re: Including a file into main.tpl

does that mean that these boards allow you to place php code in the template without mods?

Re: Including a file into main.tpl

No, it means you can place php code in the templates if you do the small mod linked to in my previous post. The next version of PunBB will allow you to include files from the templates. Not execute PHP code directly though.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Including a file into main.tpl

nice smile