With normal comments i can do it using

<?php
if (function_exists('comment_render') && $node->comment) {
   print comment_render($node, $node->cid);
   $node->comment = NULL;
}
?>

but how can i do it with nodecomments?

Comments

dgastudio’s picture

Dirty solution (for now):

nodecomment.module
remove

else if (!empty($node->node_comment)) {
$output .= nodecomment_render($node, $cid);
}

node.tpl.php

print nodecomment_render($node, $cid);

crea’s picture

Status: Active » Closed (fixed)

Closing old issue. Reopen if still relevant.

akeemw’s picture

I know this issue is closed but here is a solution for others that run into this issue. It is basically the same as the comment solution in the original post. This should work in both node.tpl.php and template_preprocess_node

if (function_exists('nodecomment_render') && $node->node_comment) {
   print nodecomment_render($node, $node->cid);
   $node->node_comment = NULL;
}