1
djsckizo
Can the News Module display less than 5 topics?
  • 2004/4/1 14:28

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Where would I go to change the amount of topics the news module displays to go below 5? Since 5 is the least amount it allows, is it possible (and by possible, I mean will I be able to do it without crashing the internet all over the world) to go below 5?

2
Mithrandir
Re: Can the News Module display less than 5 topics?

Yes it is possible.

find $modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30); in modules/news/xoops_version.php and change it to

$modversion['config'][1]['options'] = array('1' => 1, '5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30);
or whatever number you want to display.

Upload the file and update the module. You should now be able to select the number in news module preferences.

3
djsckizo
Re: Can the News Module display less than 5 topics?
  • 2004/4/1 19:12

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Thanks! And I did it without causing smoke to come out of my pc.

4
brash
Re: Can the News Module display less than 5 topics?
  • 2004/4/1 22:31

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Nice hack there Mithrandir . Should be helpful for a lot of people wanting to run very lean sites.

Login

Who's Online

739 user(s) are online (346 user(s) are browsing Support Forums)


Members: 0


Guests: 739


more...

Donat-O-Meter

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

Latest GitHub Commits