4
Go to system/admin/preferences/main.php and edit around line 117
case 'theme_multi':
$ele = ($config[$i]->getVar('conf_formtype') != 'theme_multi') ? new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput()) : new XoopsFormSelect($title, $config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true);
require_once XOOPS_ROOT_PATH."/class/xoopslists.php";
$dirlist = XoopsLists::getThemesList();
echo count($dirlist).'
';//place this line
if (!empty($dirlist)) {
asort($dirlist);
$ele->addOptionArray($dirlist);
}
//$themeset_handler =& xoops_gethandler('themeset');
//$themesetlist =& $themeset_handler->getList();
//asort($themesetlist);
//foreach ($themesetlist as $key => $name) {
// $ele->addOption($key, $name.' ('._MD_AM_THEMESET.')');
//}
// old theme value is used to determine whether to update cache or not. kind of dirty way
$form->addElement(new XoopsFormHidden('_old_theme', $config[$i]->getConfValueForOutput()));
break;
Then access your preferences page and you will see that 2 values are outputed. Please tell me if the values match.
If they macth then try to change the value from 5 to 10 here:
$config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput(), 5, true