Camen Design Forum

Delete

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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[2]: Template php pages not html

Martijn

Templates are never actually run through PHP that way, no matter the extension. NNF uses DOM templating (http://camendesign.com/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: https://github.com/Kroc/NoNonsenseForum/blob/master/themes/greyscale/theme.php#L73

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn