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

CommentFileSizeAuthor
#3 talk.patch4.27 KBjherencia
talk.patch4.28 KBjherencia

Comments

jherencia’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, talk.patch, failed testing.

jherencia’s picture

Status: Needs work » Needs review
StatusFileSize
new4.27 KB
Anonymous’s picture

I 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.

Anonymous’s picture

Status: Needs review » Needs work

any progression on this bug?

jarodms’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)