Hi,
most of my Bugs are now closed after the new DEV Release. Great work! But one thing is still annoying me. I want to display the new comments at the top of the list. For that i choose "newest first" in the content type settings. Now when I post a comment the comment is shown at the bottom of all comments near to the comment form. Only after a page refresh the comment is shown at the top of the list. It would be great if this could be "fixed" :-)

Comments

neochief’s picture

Now, when I found the nice way to place new comments in threads, I think it's not a problem anymore to implement your request as well. Certainly will be in 1.7

neochief’s picture

Status: Active » Closed (duplicate)

Marking this as duplicate of older issue #351666: Comments display in incorrect order in threaded

virtualdrupal’s picture

When this is implemented, can you some how enable an option to move the "Post a new Comment" option to the TOP of the comments instead of the bottom.. So when it accepts the new comment it's at the top, where it should be, in a "Newest 1st" setup.

or is this already possible?

H3x’s picture

Has this issue been solved or not? I'm still experiencing it, even though it was said that this issue will be solved in 1.7.

timofey’s picture

Subscribing

ltwinner’s picture

Yep, I need this too. I have my users comments displaying newest first and whenever they submit a new one it it gets put underneath the others instead of a above them.

cluke009’s picture

I have a solution for this but it will need modification based on your theme and its classes.

Comment form at top:
Add to your theme javascript file

$(document).ready(function() {
  /**
   * You need to modify these classes for your theme
   * This inserts the Comment form below your node and above your comments  
   * .box is the comment form wrapper class
   * .node is the node wrapper class
   */
  $(".box").insertAfter(".node");
});

Append new comments to top of comments:
Add function to your theme javascript file or modify ajax_comments.js in module

function ajax_comments_insert_new_comment(comment) {
  if ($('#comment-form-content').attr('cid') == 0) {
    /**
     * You need to modify these classes for your theme
     * This inserts new comments below your comments title 
     * .comments is the comments wrapper class
     */
		$('.comments').after(comment);
	}
	else {
/**
 * These handle reply comments
 */
		if ($('#comment-form-content').next().is('.indented')) {
			$('#comment-form-content').next().append(comment);
		}
		else {
			$('#comment-form-content').before(comment);
			comment.wrap('<div class="indented"></div>');
		}
	}
}