1
playsome
eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/8/30 23:48

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


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

<?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(000$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() . '&amp;month='
            
$pWeekCalObj->thisMonth() . '&amp;day='
            
$pWeekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp())
    ), 
'this'
    
=> array(
        
'uri'
        
=> 'year=' $weekCalObj->thisYear() . '&amp;month='
            
$weekCalObj->thisMonth() . '&amp;day='
            
$weekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp())
    ), 
'next'
    
=> array(
        
'uri'
        
=> 'year=' $nWeekCalObj->thisYear() . '&amp;month='
            
$nWeekCalObj->thisMonth() . '&amp;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

2
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/8/31 0:07

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Point 2 is fixed you just need to use <{$event.cat.cat_name}> in the template.

3
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/8/31 0:26

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Another issue:

<{$event.formated_event_start}> which is in extcal_info_bulle.html does nto work, no start date shows, this effect calendar month and week view.

Sigh

4
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 11:25

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


No one interested in getting extcal to work?

I have just tried a clean install on wamp
php 5.3.8
mysql 5.0.88
xoops 2.5.5

Still can't get <{$event.formated_event_start}> to work, another error though was the event title would not show on some templates that included info_bulle.html, although I could fix that by removing the include and adding the code to display the event direct to the templates, but start/end time won't show.

start/end time does show on view_calendar_month but not on view_calendar week, view_year, view_month, view_week.

Also another issue is alot of smary variables and other code seems to be in french (at least i think its french), surely these should be in english as most other variables in the module are in english.

Also in extcal_info_bulle, some coding erros

line 9 shows

<img src="css/images/<{$event.event_icone}>"  alt="" iconinfo/>


line 12 shows

<img src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" alinea/>


not sure what iconinfo and alinea are supposed to be (smarty variables?) but clearly this is not proper coding format.

And finally can anyone tell me how the times are derived? times you select when creating an event are like 10.00 10.10, etc I want to change them to 10.00, 10.15, 10,30, 10.45.

Thanks


5
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 11:34

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


I have figured out the final point above.

To change times from 10 minute intervals to 15 minute intervals so yo have quarter past, half past, quarter to.

Open extcal/class/form/formdatetime.php and on line 26 it has

$j 0$j _EXTCAL_TS_MINUTE$j $j 10


change to

$j 0$j _EXTCAL_TS_MINUTE$j $j 15

6
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 12:09

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


I think I may have fixed the problem with the event start/end time/date not showing on view_calendar_week view

in view_calendar-week.php line 62 to

I have added the line

$eventHandler->formatEventDate($event$xoopsModuleConfig['event_date_week']);


directly underneath the for each loop so line 62 to 65 now looks like this
$eventsArray = array();
foreach (
$events as $event) {
    
$eventHandler->formatEventDate($event$xoopsModuleConfig['event_date_week']);
        
$eventHandler->addEventToCalArray($event$eventsArray$startWeek$endWeek);


event start date now shows on view_calendar-week still need to get the event start date/time to show for the other tempaltes i mentioned above.

7
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 12:40

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


just found and fixed another issue.

On view_week.php the navig data for showing current, previous and next week was not showing, was only showing << >>.

In view_week.php line 83 to 95 remove the $navig array and replace with
$navig = array(
    
'prev'
    
=> array(
        
'uri'
        
=> 'year=' $pWeekCalObj->thisYear() . '&amp;month='
            
$pWeekCalObj->thisMonth() . '&amp;day='
            
$pWeekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp())
    ), 
'this'
    
=> array(
        
'uri'
        
=> 'year=' $weekCalObj->thisYear() . '&amp;month='
            
$weekCalObj->thisMonth() . '&amp;day='
            
$weekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp())
    ), 
'next'
    
=> array(
        
'uri'
        
=> 'year=' $nWeekCalObj->thisYear() . '&amp;month='
            
$nWeekCalObj->thisMonth() . '&amp;day='
            
$nWeekCalObj->thisDay(), 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp())
    )
);


This is the navig array copied from view_calender-week.php, im not sure what the difference is but it seems to work.

8
Mazarin
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 14:46

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


It should be a matter of assigning values to the non-working variables just as you did with the one you fixed.

Are recurring events still broken in the upcoming events block (only the first instance in the series is displayed)?

9
Mazarin
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 14:50

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Another bug is that in the view Agenda Week, 10 days are shown instead of 7.

10
playsome
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2012/9/2 16:36

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Quote:

Mazarin wrote:
It should be a matter of assigning values to the non-working variables just as you did with the one you fixed.


Hi, thanks for your reply. By assign values do you mean $xoopsTpl->assign('value', $variable);? If so I have tried this but doesnt seem to work.

I tried similar to what I did with view_calendar-week.php for other templates but I couldnt get event start times to show. PHP coding is not my strong point im afraid.

On the templates where I could get no start time to show(view_week, etc) I ran smarty debug, this shows the array that holds all the event data and formated_event_start and formated_event_end where showing as empty but in the templates where it does work the value in the array shows the formated date.

So I am thinking that on execution of the PHP script the value for the formated_event_start/end isnt being passed into the event array? Just a guess, probably wrong. I could look at the php code from now til doomsday and not figure out whats going on,so Im hoping from some assistance from a xoops guru.

As for the recurring events in the block, not sure this has been a bug since the original extcal module.

I am hoping this version of extcal will get finsihed and not just left to sit in beta or RC state forever like so many other decent xoops modules.

Thanks

Login

Who's Online

162 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits