By MrEricSir on
In most forum software, the thread list has a pager next to it. For example, in the thread list you'll see something like this:
My Thread 1, 2, 3
Where 1, 2, and 3 are links to pages of that thread. Is there a way to accomplish this in Drupal? I've spent all afternoon poking around but no luck (yet.)
Also: I'd also like a way for the pagers inside a thread to appear at both the TOP and bottom of the page, not just the bottom. I've seen Drupal sites do this, and I'd like to know the secret.
If it makes a difference, I'm using flat threads with flatforum.module.
Comments
Voila!
Unfortunately I had to write my own pager. But hey, it works.
With a phptemplate theme, add this to template.php:
***** CODE DELETED ***** (see below)
As you can see, the additions to the code (1) fetches the value for comments_per_page and (2) computes page number links.
Turns out that last version
Turns out that last version was buggy. Seems to be fine now.
Important note: this is for the 4.6 series ONLY. I have submitted a patch for 4.7's forum.module which does the same. (The difference lies in ?from= vs ?page= )