1
taokrieger
Forum: Display from beginning
  • 2004/1/13 22:52

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29


Can anyone tell me how I can hack the newbb module to display all topics from the beginning (instead of just last 100 days)?

2
Dave_L
Re: Forum: Display from beginning
  • 2004/1/14 1:04

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I just glanced at it, and found this in modules/newbb/viewforum.php:

$sortsince = !empty($HTTP_GET_VARS['sortsince']) ? intval($HTTP_GET_VARS['sortsince']) : 100;
$sel_since_array = array(125102030406075100);
...
$forum_selection_since .= '<option value="1000"'.(($sortsince == 1000) ? ' selected="selected"' '').'>'.sprintf(_MD_BEGINNING,1000).'</option>';


The value 1000 appears to represent "From the beginning", so you could change the ": 100" to ": 1000".

I'm not an expert on the newbb module, so don't take this as the definitive answer.

3
taokrieger
Re: Forum: Display from beginning
  • 2004/1/14 4:34

  • taokrieger

  • Just popping in

  • Posts: 36

  • Since: 2002/10/29



thanks!

4
Booga
Re:Forum: Display from beginning
  • 2004/10/4 13:40

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


I also would like this to happen in my forum. Here are 2 questions....

1. Did this work??

2. If it did, do I have to update forum module or is there anything else I need do??

Marty.

*EDIT*

I just did it and it works nicely. No need to update modules or anything.....just change the code as mentioned above and all is good

Ensure you back up your original file incase you mess it up.

*EDIT*

Login

Who's Online

221 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits