Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
11 Feb 2009 at 08:50 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jaydub commentedI believe that it won't be easy to sort that out in the Drupal 5 version given that this issue: #6162: #new links don't work on paged threads was only just fixed in Drupal 6.
If you backport the patch in that issue to your Drupal 5 then perhaps it would be resolvable.
Comment #2
jaydub commentedI will test to see if this is an issue on 6.x but for 5.x it will end up being a won't fix since the issue mentioned in #1 wasn't fixed until the 6.x release of Drupal.
Comment #3
jaydub commentedtagging
Comment #4
jaydub commentedComment #5
jaydub commentedI'm thinking that this won't be possible. From my searching I can't find a core method to take a given comment cid and get a page number returned. There is a method for getting page numbers when finding the first new comment but that doesn't help here. Am I missing some magic bullet here?
Comment #6
sirkitree commentedThere was some weirdness with caching these and such which I totally re-wrote yesterday for the next version. Here's what I came up with instead, maybe this will help out.
Comment #7
jaydub commentedThe link to the comment in your example code still doesn't address the page number issue. A comment to a node or to another comment may be on a page other than the first page depending on the number of comments per page setting, the sort order of comments as well as whether comments are flat or threaded.
So the comment-link would need a 'page' query value. Finding out what the page value is though is the problem and it's a tough one. I don't see an easy way to do this given that it's not even in core comment.module.
Comment #8
dicreat commentedsubscribe
Comment #9
Scott Reynolds commentedThis is only doable in 6 and beyond
http://api.drupal.org/api/function/comment_new_page_count/6
Takes the node and returns the page.
Working on this now for Activity2.
Comment #10
Scott Reynolds commentedheres the patch i committed
http://drupal.org/cvs?commit=281408
Comment #11
Scott Reynolds commentedA related technique for maybe D5 sites? http://drupal.org/node/604098#comment-2206414
Comment #12
Scott Reynolds commentedhmm ok so its trickier then that. It won't always work. In D7 this is fixed by creating a 'comment/CID' path that sets up the right page for the node_view. I think we can still backport that patch, Gabor might be on board.
Comment #13
Scott Reynolds commentedheres the issue #26966: Fix comment links when paging is used.
Comment #14
Scott Reynolds commentedif you apply the patch in #26966: Fix comment links when paging is used. and this patch for 6.2 comments across multiple pages will work properly.
Comment #15
sirkitree commentedCommitted.