When it comes to something as seriously important as exam dates, it would be great to import dates into the calendar from one source such as a text file or CSV file We are concerned that there is a possibility that exam dates could be entered incorrectly into the calendar if each one is added individually. This would not be a problem however if all dates could be imported from one correct source. Here's hoping the feature makes it into 1.6.
Hello!
I also place a "feature" bug report on this,
Ability to upload & download dates into calendar in bulk
Bug #2253
Glad to hear it may be possible in v1.6.
Some additional discussion about this in case anyone is interested.
Bulk upload of significant dates??
http://moodle.org/mod/forum/discuss.php?d=7473
checkbox for the calendar
http://moodle.org/mod/forum/discuss.php?d=7959
Add birthdays to Calendar?
http://moodle.org/mod/forum/discuss.php?d=7445
WP1
I also place a "feature" bug report on this,
Ability to upload & download dates into calendar in bulk
Bug #2253
Glad to hear it may be possible in v1.6.
Some additional discussion about this in case anyone is interested.
Bulk upload of significant dates??
http://moodle.org/mod/forum/discuss.php?d=7473
checkbox for the calendar
http://moodle.org/mod/forum/discuss.php?d=7959
Add birthdays to Calendar?
http://moodle.org/mod/forum/discuss.php?d=7445
WP1
Audun, the user upload code only supports one format, so some functionality should be "copied" from quiz import code, where the user can select the format of the file.
I did a quick hack to import WebCT calendar events, and I'd like to help you with this. iCalendar format is another one needing support.
If/when there are multiple formats, only the import part of the code should change, as the "write to calendar" part has common problems like "does this exact event exists already a.k.a you have imported this before" and "what level of events (global/course/group/own) are we talking about"...
I did a quick hack to import WebCT calendar events, and I'd like to help you with this. iCalendar format is another one needing support.
If/when there are multiple formats, only the import part of the code should change, as the "write to calendar" part has common problems like "does this exact event exists already a.k.a you have imported this before" and "what level of events (global/course/group/own) are we talking about"...
Sounds good, I've only made a quick hack so far.
My original thought was that this would be a script for admins (like uploaduser) who know how to do things like this. Thus I'd planned to skimp a bit on user options ...
Perhaps we could make a quick hack like uploaduser for now and add a more complete solution later. I assume there are some admins out there who would like to have this asap.
I'll post a prelim version later today, you might give me some feedback ...
My original thought was that this would be a script for admins (like uploaduser) who know how to do things like this. Thus I'd planned to skimp a bit on user options ...

Perhaps we could make a quick hack like uploaduser for now and add a more complete solution later. I assume there are some admins out there who would like to have this asap.
I'll post a prelim version later today, you might give me some feedback ...
A prelim version for uploading events.
Place the script in admin/
To run the script, use the link for upload users.
change uploaduser.php?sesskey=xxxx to
uploadevent.php?sesskey=xxxx
(or add a link in admin/index.php)
You can make a dry-run to see which events would be added by the script.
The first line of the upload-file should look something like this:
name,description,timestart,timeduration,shortname,groupname,username
The first 4 items are required, the rest are optional.
timestart = "17.5.2005 12.30"
17. may 2005 12:30
timeduration is number of seconds
Place the script in admin/
To run the script, use the link for upload users.
change uploaduser.php?sesskey=xxxx to
uploadevent.php?sesskey=xxxx
(or add a link in admin/index.php)
You can make a dry-run to see which events would be added by the script.
The first line of the upload-file should look something like this:
name,description,timestart,timeduration,shortname,groupname,username
The first 4 items are required, the rest are optional.
timestart = "17.5.2005 12.30"
17. may 2005 12:30
timeduration is number of seconds
Andreas,
See the following pages and associated links on the pages:
http://docs.moodle.org/23/en/Using_Calendar
http://docs.moodle.org/24/en/Calendar_import
-Floyd