1
Skythe
Number of pages in NewBB
  • 2005/4/28 17:10

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


1 How do you change the number of pages (thread overview, not in a thread) that are stored and accessible? Like on my board there are always two.

2 Where do you change the number of pages of a thread that are displayed on the bottom right for example?
Lets say a thread consist of 10 pages and youre viewing the last page the navigation would be « 1 ... 7 8 9 (10). Which is too much text, messing up the layout. Id like to change it to something like « 1 ... 9 (10).

2
Mithrandir
Re: Number of pages in NewBB

1) this depends on the number of threads and from how many days back you list threads

2) In the viewtopic.php file in your newbb module, there should be some code roughly like this:

$nav->renderNav(4);

Change this number to 1 so it reads

$nav->renderNav(1);

3
Skythe
Re: Number of pages in NewBB
  • 2005/4/29 13:54

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Quote:

Mithrandir wrote:
1) this depends on the number of threads and from how many days back you list threads

2) In the viewtopic.php file in your newbb module, there should be some code roughly like this:

$nav->renderNav(4);

Change this number to 1 so it reads

$nav->renderNav(1);


1. Thats exactly my question. How do you change the number of days?

2. Thanks :)

4
Skythe
Re: Number of pages in NewBB
  • 2005/4/30 10:50

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Another question:

How do you hold newbb from putting an infinite amount of dots between the numbers of pages a thread got on the forum overview page?

Like [The thread's name] 1 2 3 ........ 18.

For a thread with 5 pages it will print 3 dots, 9 for 7 pages and 30 (!) for 14 pages. The whole row is just dots!

I found this
if ( $i && $i $totalpages ) {
$pagination .= "...";


in modules/newbb/viewforum.php but I dont know what to do with it.

(I noticed it works differently on here than on my v1)

5
Skythe
Re: Number of pages in NewBB
  • 2005/5/2 15:17

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


anyone? its getting out of hand .x

6
xgarb
Re: Number of pages in NewBB
  • 2007/2/12 17:51

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30



Login

Who's Online

324 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 324


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits