I've just spent an entire day digging through code... just can't find what's causing my forum replies/comments & quick reply form not visible when Advanced Form style is applied. It's perfectly visible & functional when Advanced Form style is not applied.

What can be causing it?

Comments

timofey’s picture

I was able to fix it by replacing

<?php print render($content['comments']); ?>

with

<?php print render($post_object); ?>

in /styles/naked/advanced-forum.naked.post.tpl.php

Can someone tell me why $content['comments'] variable is empty in the first place?

Michelle’s picture

Try switching themes... Perhaps your theme is hiding it?

Michelle

timofey’s picture

Tried several other themes, including Seven; still the same.

troky’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

What is $post_object and where did you find it? It looks like something (some other module maybe) is messing with preprocessed variables.

timofey’s picture

@troky
Bingo!! It totally just clicked in. I have Zen Template installed. In template.php it has the following:

  if (isset($vars['content']['comments'])) {
    $vars['post_object']['comments'] = $vars['content']['comments'];
    unset($vars['content']['comments']);
  }

I never disabled/removed Zen Template completely when I tested advanced forum with other themes.

troky’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)