How can I add pager to the comments of advanced forum in drupal 7? I use the drupal 7 core forum with advanced forum module.

This works perfectly except the forum topic page show only post comments what number is defined on the content type, and no pager on the comments, therefore the users can't jump to the next few comments.

My question: how can I add pager (first, prev, next, last, etc.) to the advanced forum post comments?

I didn't found any solution until yet.
In your style directory, you should have a *.topic-header.tpl.php file. Make sure the following is where you want the paging to display:

&lt;?php print($pager); ?&gt;


Then, in *sites/all/modules/advanced_forum/includes/theme.inc*

Approximately line 446:

  pager_default_initialize($variables['node']-&gt;comment_count, variable_get('comment_default_per_page_forum'));
  $variables['pager'] = theme('pager');