Topic: Must have: Less messier templates

Hello,

When one goes and tries to modify the look and feel of PunBB, it's very spaghetti in its display. I would really appreciate being given blocks of code that I can place within my design.

I propose each block of links to be separated:

e.g.,
$TMPL_HEADER_BLOCK,
$TMPL_FORUMS_BLOCK,
$TMPL_THREADS_BLOCK,
$TMPL_STATS_BLOCK,
$TMPL_FOOTER_BLOCK..

etc.., that I can position anywhere according to my design.

Thanks.

Re: Must have: Less messier templates

Isn't that essentially what you have with the templates (e.g. main.tpl) right now?

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

3 (edited by craigm 2005-07-19 08:53)

Re: Must have: Less messier templates

Thanks Rickard.

How should I edit what "<pun_stats>" or "<pun_announcement>" look like for instance? I would like to style the things that're displayed (e.g., UL and LI tags).

Also, how can I include PHP in the code, looks like these are only HTML templates.

Appreciate any ideas.

Re: Must have: Less messier templates

You edit what pun_stats and pun_announcement look like via the stylesheets. PunBB does not have a full template system where you can edit each individual template bit.

Regarding PHP code in the templates. Have a look in the FAQ. There's an include directory called pun_include that you can use.

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