3
hi
it seems to be a problem of newer xoops versions.
In index.php there is a check, which calendar should be taken, the settings in APCal.php
le="color: #000000"><?php var $jscalendar = 'jscalendar' ;
will be ignored
The check in index.php is
le="color: #000000"><?php if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) { // older jscalendar in XOOPS 2.0.x core
, but the same file exist in xoops 2.3 and newer, and I think, actual version is not fully compatible in all languages.
I solved the problem with deleting the first if-condition, because the last else means the same.
In my index.php it looks like this
le="color: #000000"><?php if( $action == 'Edit' ) { //goffy deleted first if condition in order to use recommended jscalendar /* if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) { // older jscalendar in XOOPS 2.0.x core include XOOPS_ROOT_PATH.'/include/calendarjs.php' ; $cal->jscalendar = 'xoops' ; } else */if( is_dir( XOOPS_ROOT_PATH . '/common/jscalendar' ) ) { // jscalendar in common (recommend) $jscalurl = XOOPS_URL . '/common/jscalendar' ; $xoopsTpl->assign( 'xoops_module_header' , ' <link rel="stylesheet" type="text/css" media="all" href="'.$jscalurl.'/calendar-system.css" /> <script type="text/javascript" src="'.$jscalurl.'/calendar.js"></script> <script type="text/javascript" src="'.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script> <script type="text/javascript" src="'.$jscalurl.'/calendar-setup.js"></script> ' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ; $cal->jscalendar = 'jscalendar' ; } elseif( is_dir( XOOPS_ROOT_PATH . '/class/calendar' ) ) { // jscalendar in XOOPS 2.2 core $jscalurl = XOOPS_URL . '/class/calendar' ; $xoopsTpl->assign( 'xoops_module_header' , ' <link rel="stylesheet" type="text/css" media="all" href="'.$jscalurl.'/CSS/calendar-blue.css" title="system" /> <script type="text/javascript" src="'.$jscalurl.'/calendar.js"></script> <script type="text/javascript" src="'.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script> <script type="text/javascript" src="'.$jscalurl.'/calendar-setup.js"></script> ' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ; $cal->jscalendar = 'jscalendar' ; } else { // older jscalendar in XOOPS 2.0.x core include XOOPS_ROOT_PATH.'/include/calendarjs.php' ; $cal->jscalendar = 'xoops' ; }
The jscalendar in folder common must be available, then it works in german version.