
Originally Posted by
chipbennett
One shortcoming I've come to notice with threaded comments is the inability to follow heavily commented posts. With flat comments, it is easy to find all new comments. But, with threaded comments, it is nearly impossible, without a lot of scrolling up-and-down, and "concentration"-like remembrance of previous comments - since new comments could show up in any of the threads.
Has anyone come up with a solution to this short-coming?
One that I can think of, for subscribed comments, would be for the comment notification email to provide a link to the comment itself, rather than just to the comment thread.
The problem lies with paged comments. There's no easy way to figure out what page a comment will be on.
If you don't use paged comments, then it's relatively easy to change the email notifications to include direct links to the comments.
- Look in the pluggable.php file.
- Find the wp_notify_postauthor function.
- There's a line that looks sorta like this:
PHP Code:
$notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
Change that to this:
PHP Code:
$notify_message .= get_permalink($comment->comment_post_ID) . "#comment-$comment_id\r\n\r\n";
Voila. You can find other instances where the #comments link is created and modify them similarly.
Don't want a core change? A plugin could do it with the comment_notification_text filter. I leave that as an exercise for the reader.
The reason this isn't in core is paged comments. A valid solution needs to account for both cases. Also, this assumes that the theme is using the proper comment id's and such, which is a tall assumption. However, most themes use the comment-### as the id of the bit surrounding the comment, it's pretty standard.

Originally Posted by
chipbennett
But, what about in the thread itself?
I suppose that, with cookies, the site could use styles to indicate new-since-last-visit comments?
Possibly, but it'd be a javascript thing. You'd need to add the comment timestamp in as a class on the comment or something (could be done with a comment_class filter), then have javascript read a cookie and set additional styles or classes based on comparisons with these.