Closed (fixed)
Project:
Node Comments
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2009 at 19:50 UTC
Updated:
31 Mar 2011 at 01:22 UTC
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
Comment #1
dgastudio commentedDirty 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);Comment #2
crea commentedClosing old issue. Reopen if still relevant.
Comment #3
akeemw commentedI 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