PEAK XOOPS - Bulletin story view to index page in englishin japanese

Bulletin story view to index page

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2008/9/19 21:11
saba  企霹始   Posts: 5
Hello,
In the administration I can select only 5, 10...30 story for view to index page. Where can I edit this selectbox instead 5-6, 10-12...?I want in the index page display 12 story per page.

Modul is nice :)
Best regards
saba
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2008/9/21 17:36 | Last modified
GIJOE  黎扦烦菱   Posts: 4110
hi saba.

Certainly, it looks a non-sense restriction.

edit xoops_version.php

old:
$modversion['config'][$i]['formtype']    = 'select';
$modversion['config'][$i]['valuetype']   = 'int';
$modversion['config'][$i]['default']     = 5;
$modversion['config'][$i]['options']     = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30);

old:
$modversion['config'][$i]['formtype']    = 'textbox';
$modversion['config'][$i]['valuetype']   = 'int';
$modversion['config'][$i]['default']     = 5;
$modversion['config'][$i]['options']     = array();

And the values in the select box in index.php can be edited by trust/main/index.php

	for ( $i = 5; $i <= 30; $i = $i + 5 ) {
		$option = array();
		$option['sel']    = ($i == $storynum) ? ' selected="selected"' : '' ;
		$option['option'] = $i ;
		$xoopsTpl->append('option', $option);
	}

Anyway, it will be modified soon.
It should be the matter of the template - index.html
Votes:4 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2008/9/21 22:41
saba  企霹始   Posts: 5
Thanks GIJOE,
now is ok :)
Regards
saba
Votes:7 Average:1.43

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!