So im having some problems with eXtCal 2.37 Beta 4, and im wondering is it being worked on? will it get out of beta anytime soon?
Heres some issues:
1) In view_week.html the start date of the event does not show, the variable <{$event.formated_event_start}> is in the template but nothing shows on the page.
2) There is no variable to show the event category, there really should be. There is to show the cat color <{$event.cat.cat_color}> but if you try to use the variable <{$event.cat}> to print the category it prints 'Array' using <{$cat.cat_name)> (from original extcal) doesnt work either, why where things rewritten?
3) event start date does not show on the page when viewing year view, view_year.html includes event_list1 template which has the event start variable but does not show the event start date, just 2 empty columns when viewing year view.
4) when submitting an event (form admin side) there is the error: undefined variable: extcalConfig in file /modules/extcal/admin/event.php line 90
5) templates are a mess, no need for highslide gallerries and other junk like that, keep things nice and clean, the additions like the highslide and tooltips doesnt event look good.
Is there any chance that at least the first 2 issues could be fixed soon?
heres the code for view_week.php
include_once ('../../mainfile.php');
include_once ('include/constantes.php');
$params = array('view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK);
$GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.html";
include_once ('header.php');
/* ========================================================================== */
$year = isset($_GET['year']) ? intval($_GET['year']) : date('Y');
$month = isset($_GET['month']) ? intval($_GET['month']) : date('n');
$day = isset($_GET['day']) ? intval($_GET['day']) : date('j');
$cat = isset($_GET['cat']) ? intval($_GET['cat']) : 0;
/* ========================================================================== */
// Validate the date (day, month and year)
$dayTS = mktime(0, 0, 0, $month, $day, $year);
$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day'];
$dayTS = $dayTS - ($offset * _EXTCAL_TS_DAY);
$year = date('Y', $dayTS);
$month = date('n', $dayTS);
$day = date('j', $dayTS);
$form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
$form->addElement(getListYears($year,$xoopsModuleConfig['agenda_nb_years_before'],$xoopsModuleConfig['agenda_nb_years_after']));
$form->addElement(getListMonths($month));
$form->addElement(getListDays($day));
$form->addElement(getListCategories($cat));
$form->addElement(new XoopsFormButton("", "", _SEND, "submit"));
// Assigning the form to the template
$form->assign($xoopsTpl);
/**********************************************************************/
// Retriving events and formatting them
//$events = $eventHandler->objectToArray($eventHandler->getEventWeek($day, $month, $year, $cat), array('cat_id'));
$criteres = array('periode' => _EXTCAL_EVENTS_WEEK,
'day' => $day,
'month' => $month,
'year' => $year,
'cat' => $cat,
'externalKeys' => 'cat_id');
$events = $eventHandler->getEventsOnPeriode($criteres);
/**********************************************************************/
$eventsArray = $events;
// Formating date
// $eventHandler->formatEventsDate($events, $extcalConfig['event_date_year']);
//
// Treatment for recurring event
// $startWeek = mktime(0, 0, 0, $month, $day, $year);
// $endWeek = $startWeek + _EXTCAL_TS_WEEK;
//
// $eventsArray = array();
// foreach ($events as $event) {
// if (!$event['event_isrecur']) {
// // Formating date
// $eventHandler->formatEventDate($event, $extcalConfig['event_date_week']);
// $eventsArray[] = $event;
// } else {
// $recurEvents = $eventHandler->getRecurEventToDisplay($event, $startWeek, $endWeek);
// // Formating date
// $eventHandler->formatEventsDate($recurEvents, $extcalConfig['event_date_week']);
// $eventsArray = array_merge($eventsArray, $recurEvents);
// }
// }
//
// Sort event array by event start
// usort($eventsArray, "orderEvents");
// Assigning events to the template
$xoopsTpl->assign('events', $eventsArray);
// Retriving categories
$cats = $catHandler->objectToArray($catHandler->getAllCat($xoopsUser));
// Assigning categories to the template
$xoopsTpl->assign('cats', $cats);
// Making navig data
$weekCalObj = new Calendar_Week($year, $month, $day, $extcalConfig['week_start_day']);
$pWeekCalObj = $weekCalObj->prevWeek('object');
$nWeekCalObj = $weekCalObj->nextWeek('object');
$navig = array(
'prev'
=> array(
'uri'
=> 'year=' . $pWeekCalObj->thisYear() . '&month='
. $pWeekCalObj->thisMonth() . '&day='
. $pWeekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp())
), 'this'
=> array(
'uri'
=> 'year=' . $weekCalObj->thisYear() . '&month='
. $weekCalObj->thisMonth() . '&day='
. $weekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp())
), 'next'
=> array(
'uri'
=> 'year=' . $nWeekCalObj->thisYear() . '&month='
. $nWeekCalObj->thisMonth() . '&day='
. $nWeekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp())
)
);
// Title of the page
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' '
. $navig['this']['name']);
// Assigning navig data to the template
$xoopsTpl->assign('navig', $navig);
//Affichage des infobulle
$xoopsTpl->assign('showInfoBulle', $extcalConfig['showInfoBulle']);
$xoopsTpl->assign('showId', $extcalConfig['showId']);
// Assigning current form navig data to the template
$xoopsTpl->assign('selectedCat', $cat);
$xoopsTpl->assign('year', $year);
$xoopsTpl->assign('month', $month);
$xoopsTpl->assign('day', $day);
$xoopsTpl->assign('params', $params);
$tNavBar = getNavBarTabs($params['view']);
$xoopsTpl->assign('tNavBar', $tNavBar);
$xoopsTpl->assign('list_position', $extcalConfig['list_position']);
// echoArray($tNavBar,true);
$xoTheme->addScript('browse.php?modules/extcal/js/highslide.js');
$xoTheme->addStylesheet('browse.php?modules/extcal/js/highslide.css');
include XOOPS_ROOT_PATH . '/footer.php';
?>
If someone could fix the first issues and maybe help me with this:
https://xoops.org/modules/newbb/viewtopic.php?post_id=349059#forumpost349059 I will make some nive templates for extcal in return.
Thanks