1

Topic: Making my own forum pages with the headers and footers.

Is what I want to do.

I know some PHP and a bunch of other languages, but I just don't understand how PunBB uses output buffering and those odd str_replace's.

Can some provide me with a template with a spot put my PHP code? In fact, any light on this topic would be very much appreciated.

2

Re: Making my own forum pages with the headers and footers.

Bump :*(

Re: Making my own forum pages with the headers and footers.

On the Forum, there are some templates that are used in the page generation process. There are some templates variables there (<!-- forum_title -->, <!-- forum_desc -->, <!-- forum_main -->, etc). When the page content generation starts, the contents of the template are placed to the $tpl_main variable. During the page generation, the template variables get replaced with pieces of html-code. This happens due to the str_replace function.

4

Re: Making my own forum pages with the headers and footers.

Haha, yeah I guess I kinda figured that out. Thanks for the reply.