Comment module uses users node last access to determine if comments are new. If in a content type whe have talk module enabled this is not valid.
I've made this patch to resolve this issue. There is no example in the code I provide to show how to count the number of new comments in a node, so I put it here.
function mytheme_preprocess_node(&$vars) {
$node = $vars['node'];
$vars['new_comments'] = comment_num_new($node->nid, talk_get_last_access($node->nid));
}
P.D. Related issue: #506670: Module removes "X new comments" link in node links
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | talk.patch | 4.27 KB | jherencia |
| talk.patch | 4.28 KB | jherencia |
Comments
Comment #1
jherencia commentedComment #3
jherencia commentedComment #4
Anonymous (not verified) commentedI have succesfully applied the patch at #3 but there is still the issue about the "New" comment flag. When you open directly the comments links, you get properly the "New" flag. When you first open the main node (in full view) and than you go to the comments, you can't find any "New" flag. Sorry for my English I hope this help.
Comment #5
Anonymous (not verified) commentedany progression on this bug?
Comment #6
jarodms commented