Hi,
it seems, that there is no theming function for "node comments" is called, if you reply on a comment. On
path /node/add/comment/9/18

Could you tell me, what function theme the node comments on a "reply" page?
Is it _advanced_forum_preprocess_comment or is it _advanced_forum_preprocess_node for "node-comments", too?

Thanks

CommentFileSizeAuthor
Bild 15.png32.49 KBApfel007

Comments

Apfel007’s picture

anyone out there, who knows where the template is passed to the page in this case? is it a node comments issue?

In case of node comments the _advanced_forum_preprocess_node should used?

Apfel007’s picture

Status: Active » Needs review

Hi,
it seems I found the function cause this problem.. it's "function advanced_forum_is_styled" in style.inc 139
The problem is the "static $master_topic_id;", if it have no value the node isn't styled.
It isn't created if you have node comments! for now I add this - now it's working. Please have a look on it.

if (!$master_topic_id && arg(0) == 'node' && arg(1) == 'add'){
  $master_topic_id = arg(3);
}
mcdruid’s picture

Thanks Apfel007 - I'll have a look at this as soon as I can.