1

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.

  • can you check comments per page setting at admin/structure/types/manage/forum/edit#edit-comment – jibran Jun 6 '12 at 22:51
  • yes, I know this. But if I set 10, then the forum show the last ten comments, and the users can't jump to the next few comments except if go back to the forum topic page and select an another comment page, or type the page number in the address bar. – Steve Summer Jun 10 '12 at 20:37
  • I searching for solution to place pager on the forum comments – Steve Summer Jun 10 '12 at 20:38
-2

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:

<?php print($pager); ?>

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

Approximately line 446:

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.