1
bdkraven
News-> Changing Top Page Display
  • 2006/11/12 20:32

  • bdkraven

  • Just popping in

  • Posts: 15

  • Since: 2006/11/12


Hey,

I've been working with the scripts but I notice when you have news display on the main page, 5,10, etc are the only options. I want to change the display of news articles on the main page to 1 or 3(I haven't decided yet). Where do I find the MySQL query that calls the ammount to display? Or show me where I can add more options to the preferences that are other than intervals of 5.

2
christian
Re: News-> Changing Top Page Display
  • 2006/11/12 20:37

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

You must edit the xoops_version.php file for this lines :

Select the number of news items to display on top page
 
*/
$modversion['config'][1]['name'] = 'storyhome';
$modversion['config'][1]['title'] = '_MI_STORYHOME';
$modversion['config'][1]['description'] = '_MI_STORYHOMEDSC';
$modversion['config'][1]['formtype'] = 'select';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 5;
$modversion['config'][1]['options'] = array('5' => 5'10' => 10'15' => 15'20' => 20'25' => 25'30' => 30);


modify the last line as you want, save and update the module.

Login

Who's Online

216 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 216


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