Thanks, I didn't even notice that. I came up with a fix — it's a bit rough, but it works great for me. Add this before the #Comment Counter:
#Get the current comment page and calculate preceeding comments
if ( '' === $args['per_page'] && get_option('page_comments') )
$args['per_page'] = get_option('comments_per_page');
if ( empty($args['per_page']) ) {
$args['per_page'] = 0;
$args['page'] = 0;
}
if ( $args['per_page'] ) {
if ( '' == $args['page'] )
$args['page'] = get_query_var('cpage');
}
$ccomp = ($args['page']-1) * $args['per_page'] ;
The final calculation, including the comment counter, looks like this:
#Get the current comment page and calculate preceeding comments
if ( '' === $args['per_page'] && get_option('page_comments') )
$args['per_page'] = get_option('comments_per_page');
if ( empty($args['per_page']) ) {
$args['per_page'] = 0;
$args['page'] = 0;
}
if ( $args['per_page'] ) {
if ( '' == $args['page'] )
$args['page'] = get_query_var('cpage');
}
$ccomp = ($args['page']-1) * $args['per_page'] ;
# Comment counter
global $comment_num;
if(isset($comment_num)) {
$comment_num++;
} else { $comment_num = 1; }
The comment compensation is stored in $ccomp, so don't forget to add it when printing the comment number:
<?php echo $comment_num + $ccomp ?>
Hope this works for you!