WordPress.org

Ready to get started?Download WordPress

Forums

wp-comment-master
Next or page click (4 posts)

  1. American2020
    Member
    Posted 2 years ago #

    When clicking on Next or in some page, the page repositions in an arbitrary position and not in the top of the 1st comment for that page.

    Any fix for this?

    It's not happening in all pages.

    http://wordpress.org/extend/plugins/wp-comment-master/

  2. American2020
    Member
    Posted 2 years ago #

    Seams like nested comments are the problems, but not sure...

  3. mcWade
    Member
    Posted 2 years ago #

    Hi American2020, did you figure this one out? I am looking at the same problem and can't find any repositioning script.

  4. mcWade
    Member
    Posted 2 years ago #

    Figured out the issue here with the page repositioning during pagination. The plugin is hiding the comment list then fading it back in when paging. This removes the height of the comment list, which changes the height of the page.

    On the cm.js file on line #74 there is this code: $list.hide().slice(currentPage*comPerPage,(currentPage+1)*comPerPage).fadeIn();

    Change this to: $list.hide().slice(currentPage*comPerPage,(currentPage+1)*comPerPage).show();

    That will get a simple hide and show with no fading animation and no page re-positioning. To fade the comment list out and in add this code underneath: $('ol.commentlist').animate({ opacity: 0 },0).animate({ opacity: 1 });

    Will new code should read like this:
    $list.hide().slice(currentPage*comPerPage,(currentPage+1)*comPerPage).show();
    $('ol.commentlist').animate({ opacity: 0 },0).animate({ opacity: 1 });

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic