Closed (duplicate)
Project:
Drupal core
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2004 at 14:16 UTC
Updated:
16 Jun 2005 at 18:44 UTC
Jump to comment: Most recent file
The links in the recent posts block don't work if there are multiple comment pages sorted by "oldest first".
The code in the block needs to take into account user comment preferences (sort order, posts per page) in order to work. As it is now, it is pretty much broken.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | recent.patch | 1.66 KB | yossarian |
Comments
Comment #1
yossarian commentedThis fixes the bad links in recent comments against the CVS version.
I never made a patch before, if it's not right format, please comment.
Comment #2
chx commentedPlease see http://drupal.org/patch . We are using unified diff format, with a switch to make it easier to read:
diff -u -F^f old_file new_fileComment #3
dries commentedPlease note that
comment_num_allis an expensive function call.Also, where does that '- 10' come from?
Comment #4
yossarian commented-10: sometimes the new comment is the last on a "full" page, and without -10, the link goes one page too far to a non-existent page.
if there's a better way than comment_num_all to count comments, what is it?
Comment #5
yossarian commentedMake a separate query to node_comment_statistics?
Comment #6
dries commentedThis problem exists elsewhere so we would be better off with a function that can generate comment URLs (eg. comment_url()).
Comment #7
killes@www.drop.org commentedThe patch does not apply anymore. Also, Dries didn't like the implementation.
Comment #8
robin monks commentedThis is a DUPLICATE of bug http://drupal.org/node/6162
Robin