WordPress.org

Support

Support » Plugins and Hacks » wp-comment-master » [Plugin: wp-comment-master] Next or page click

[Plugin: wp-comment-master] Next or page click

Viewing 3 replies - 1 through 3 (of 3 total)
  • American2020

    @american2020

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

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

    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 });

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: wp-comment-master] Next or page click’ is closed to new replies.
Skip to toolbar