Camen Design Forum

Template php pages not html

append delete Howard

Forum template pages are HTML, but how to use php template pages?.

Reply RSS


append delete #1. Lasse

I changet tempale .html files to .php files and everything works fine, but php include dont work on forum pages even they are now php pages, anyone knows why?.

append delete #2. Martijn

Templates are never actually run through PHP that way, no matter the extension. NNF uses DOM templating (, that just happens to have HTML as a base.

It is currently impossible to mix PHP and HTML for the template.

Instead you can use the `theme.php` file’s `theme_custom` method to add extra actions to the DOM templating if you want to mix in extra stuff. See:


(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn