Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Event Calendar and 2.4.0


Reply

41 Posts   5719 Views

Avatar
UncleCheese

13 April 2010 at 2:47am 4085 Posts

Yup. I've put in a ticket with Silverstripe. The modules page doesn't support multiple branches of code.

Avatar
UncleCheese

13 April 2010 at 4:10am (Last edited: 13 April 2010 4:12am), 4085 Posts

Ok, the CurrentDate issue has been resolved.

Avatar
stuntmax

14 April 2010 at 6:33am (Last edited: 14 April 2010 6:48am), Community Member, 21 Posts

Congrats looks pretty well!

I think one must have a lot of php knowledge to be able to set up the Event Calendar module :-(

Avatar
UncleCheese

14 April 2010 at 6:51am 4085 Posts

To subclass it you do. But out of the box it should run itself. The 2.4 compatibility upgrade definitely slowed us down. Glad it's out of the way, for now.

Avatar
wildflower1975

14 April 2010 at 10:36am (Last edited: 14 April 2010 11:02am), Community Member, 59 Posts

I'm having trouble with the standard CalendarWidget in that only the month select box (at the top of it) appears, the week rows of the table don't appear at all.

I got the latest jquery.datePicker.js from http://www.kelvinluck.com/ and the week rows appear but the day links aren't correct.
(the one that comes with EventCalendar looks to be quite old)

I'm looking into the jQuery at the moment to see if I can make any sense of it - trying to use Firebug to step through it all.

In the LiveCalendarWidget - the day links are incorrect and line 210 of CalendarUI.class.php needs to be updated

'ShowDayLink' => $this->calendar->Link('view')."/".$this->date_counter->format('Ymd'),

line 219 of CalendarUI.class.php needs to be updated

'ShowWeekLink' => $this->calendar->Link('view')."/".$week_range_start."/".$week_range_end

The Quick Month,Week,Weekend Links need to be updated
line 136

return $this->calendar->AbsoluteLink()."view/".$d->firstDayOfMonth()->format('Ym');


line 142

return $this->calendar->AbsoluteLink()."view/".$d->firstDayOfWeek()->format('Ymd')."/".$d->finalDayOfWeek()->format('Ymd');


line 156

return $this->calendar->AbsoluteLink()."view/".$d->format('Ymd')."/".$d->addDay(2)->format('Ymd');

I'll post more as I go.

Avatar
wildflower1975

14 April 2010 at 11:15am Community Member, 59 Posts

When I click the Next or Previous Month links or use a 'Jump to' option from the select box my calendar disappears.

I can see in FireBug that the calendar is being returned from the Ajax request (under the HTML and Response tabs) but it isn't being written/drawn in place.

I'm using the latest jQuery (1.4.2), thinking it might help because LiveCalendar asks for 1.2.6 in it's SS file, and when I use that I get

An invalid or illegal string was specified" code: "12
http://localhost/silverstripe/event_calendar/javascript/jquery-1.2.6.min.js?m=1271104913
Line 22

which I'm assuming could be any of the characters being returned from the request to be written back on the screen?

Avatar
wildflower1975

14 April 2010 at 12:00pm Community Member, 59 Posts

the demo page http://eventcalendar.bluehousegroup.com/ bombs spectacularly :)

Fatal error: Object::add_extension() - Can't find extension class for "CalendarSiteTree" in /var/ss/2.3.2/sapphire/core/Object.php on line 376

I'm guessing it might take some time to get up and running?

Avatar
UncleCheese

14 April 2010 at 1:38pm 4085 Posts

Yeah, I've been in there all day. Our server configuration doesn't like 2.4 very much. I'm trying to get Silverstripe to make some changes so that it works better with shared installs.