I just installed flatforum -- works well; thanks!

However, I noticed something in the code of node-forum.tpl.php:

  if ($is_front) {
    include('../../modules/flatforum/node.tpl.php');
    return;
  }

There is no node.tpl.php included with the release. Should it be included, or should these lines of code be removed?

Comments

Ayman’s picture

Actually the code is:

  if ($is_front) {
    include('node.tpl.php');
    return;
  }

It looks for node.tpl.php in your theme folder, this piece of code makes forum nodes look like normal nodes when promoted to the frontpage.

Themes usually include that file, if one doesn't, edit the code to include themes/engines/phptemplate/node.php.tpl instead, or remove it alltogether if you don't care about promoted frontpage nodes.

In related note, if condition should be ($page == 0), I'll leave the issue open until this is resolved.

Thanks.

Ayman’s picture

Status: Active » Closed (fixed)

Nevermind the $page == 0, if I change if condition, comments will break, will leave it as is for now.

Closing, if you still have issues, please re-open, thanks.