Calendar Uploads

Calendar Uploads

Simon Bryan發表於
Number of replies: 13
Is it possible to upload data to the calendar from say a csv file or pst file generated from Outlook?
評比平均分數: -
In reply to Simon Bryan

Re: Calendar Uploads

John Papaioannou發表於
Sorry, it isn't possible right now and it will not be possible in Moodle 1.5. sad

However, there is a feature request for this (bug 1304) so it is quite probable that it will be included in Moodle 1.6.
In reply to John Papaioannou

Re: Calendar Uploads

Richard Dudley發表於

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.  smile

 

In reply to Richard Dudley

Re: Calendar Uploads

W Page發表於
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
In reply to W Page

Re: Calendar Uploads

Audun Hauge發表於
It would seem rather easy to copy admin/uploaduser.php to admin/uploadevent.php and make a few changes to this script.
Are there any contra-arguments to this solution?
In reply to Audun Hauge

Re: Calendar Uploads

Samuli Karevaara發表於
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"...
In reply to Samuli Karevaara

Re: Calendar Uploads

Audun Hauge發表於
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 ...wide eyes
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 ...
In reply to Samuli Karevaara

Re: Calendar Uploads

Audun Hauge發表於
By the way, what would you consider to be sufficient to decide that an event already exists ?
+ name
+ description      (different description == different event?)
+ courseid
+ groupid
+ userid
+ modulename
+ instance
+ eventtype
+ timestart
+ timeduration

In reply to Audun Hauge

Re: Calendar Uploads

Audun Hauge發表於
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
評比平均分數:Useful (2)
In reply to Audun Hauge

Re: Calendar Uploads

Christien Paul發表於
I have managed to add the link in /blocks/admin_tree/block_admin_tree.php
but get the invalid session key error when clicking on the link i've created.

how do I go about adding the ?sesskey=xxxx


In reply to Audun Hauge

Απάντηση: Re: Calendar Uploads

Andreas Panagiotopoulos發表於

It would be nice if we have this script available in newer moodle versions as it is very helpful..

Andreas