PHPdebug gives the following :
Fatal error: Maximum execution time of 30 seconds exceeded in etc...
Adding categories or other stuff works fine.
Please Help
if (isset($HTTP_GET_VARS['theme_set'])) {
$xoopsOption['theme_set'] = intval($HTTP_GET_VARS['theme_set']);
} else {
$xoopsOption['theme_set'] = Infonet;
}
switch($xoopsOption['theme_set']) {
case 'Bredervoort': //if it is topic with id 21
$xoopsConfig['storytopic'] = '21';
break;
case 'Commujon': //if it is topic with id 11
$xoopsConfig['storytopic] = '11';
break;
case 'Kionda': //if
$xoopsConfig['storytopic'] = '15';
break;
case 'Nieuw Veldzicht': //if it is topic with id 11
$xoopsConfig['storytopic'] = '13';
break;
case 'Valkenheide': //if it is topic with id 11
$xoopsConfig['storytopic'] = '10';
break;
}
include '../../mainfile.php';
$xoopsOption['template_main'] = 'news_index.php';
$xoopsOption['theme_set'] = Infonet';
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
switch($xoopsOption['storytopic']) {
case '21': //if it is topic with id 21
$xoopsConfig['theme_set'] = "Bredervoort";
break;
case '22': //if it is topic with id 22
$xoopsConfig['theme_set'] = "Commujon";
break;
}
if (isset($HTTP_GET_VARS['storytopic'])) {
$xoopsOption['storytopic'] = intval($HTTP_GET_VARS['storytopic']);
} else {
$xoopsOption['storytopic'] = 0;
}
etc...........