WordPress.org

Ready to get started?Download WordPress

Forums

wp-comment-master
Page repositioning when paging (1 post)

  1. mcWade
    Member
    Posted 2 years ago #

    There is an issue with the plugin with the page repositioning during pagination. Here is a fix for this issue.

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic