Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It should check "Default display order" option in content type settings. It always go to last page when posted new comment.
Comments
Comment #1
rjbrown99 CreditAttribution: rjbrown99 commentedThanks, that sounds like a nice enhancement and probably isn't a huge amount of work. I'd be happy to review a patch if you or someone else creates one.
Comment #2
piotrsmykaj CreditAttribution: piotrsmykaj commentedI have this problem too. It shouldnt go to last page when new comment posted.
Comment #3
yngens CreditAttribution: yngens commentedsubscribe
Comment #4
akalata CreditAttribution: akalata commentedHere's what I've managed to figure out:
ajax_comment.js, line 694, assumes that adding a comment to the last page is the desired outcome. By commenting out lines 695-702 and line 743, I've been able to render the latest comment on the first page -- BUT below all the other comments on that page.
To adjust where the comment appears initially (it's in the right place after a page refresh), I rewrote line 635 as
$('#comments h2.comments').after($comment);
.Then, to set where the page auto-scrolls to after it's submitted, I overrode the offset declaration (lines 707 and 720) to send you to the top of the list:
offset = $("#comments .comments").offset();
.Comment #5
FrankzeTank CreditAttribution: FrankzeTank commented@Aklata. Thanks a lot for that mod, that works near perfectly. The only problem i'm having now is that I have customized the comment form to be on top of the comments and because of the jquery slider, it jumps down and back up and looks really weird. I don't know any javascript, does anybody know how to modify it so that it simply goes straight to the new comment, and not to the bottom and then back up to the new comment?
Comment #12
emosbaugh CreditAttribution: emosbaugh commentedwould love a resolution for this. seems like a bug to me rather than a feature request. if i get some time i will look into it.
Comment #18
boiky CreditAttribution: boiky commentedsubs
Comment #19
qzmenkoIssue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.