Is it possible to see the facetoface sessions as events in moodle calendar?
Are there any news regarding http://tracker.moodle.org/browse/CONTRIB-238?
Has anybody already implemented it?
Thanks in advance
It would however be a pretty cool feature to have!
Long story short, my ideea of adding facetoface sessions in the calendar was to add/delete/modify entries in the event table in the database each time a facetoface session is created/deleted/modified.
This, since my basic need is to let users see when facetoface sessions are available, without further details. Just having them show up on the calendar is enough at this point for me.
The way I achived this is by adding some chunks of code to /mod/facetoface/lib.php file. Every time a session is added, an event is added in the database, thus showing up on the calendar as a site event, using the "uuid" field in mdl_events as reference to the session id.
I've attached the lib.php with my small "contribution" for those who want to look at it. It might need improvements, any ideea/suggestion is welcomed. But overall, I think it could be a start. Seems to work and meet my needs.
P.S. Make sure you make a backup of the original lib.php just in case something might go wrong.
Thanks in advance
I have not yet downloaded this, but intend to. Does this allow a student or potential student to click on the event in the calendar and be taken directly to the face-to-face session?
But it's a great ideea that I'm trying to somehow implement. I'll let you know if it works out.
I have installed this, but when I create a face-to-face nothing is pushed to the calendar. Are these added as site events?
Can you give me more details of this case? Did you created a f2f session with a single date? or 2 dates? Can you tell me what exactly you did?
I have the same problem - tried various configurations - 1 session, 2 session etc.
F2F Events don't add to the calender - neither course nor site calendar.
I am using Moodle 1.9.4+ and everything seems to work except the Face-to-Face sessions is added to the calendar as a User event, not a Site event so it only shows up on the users calendar that created the face-to-face session.
It will also show up on a students calendar if they sign up for a face-to-face session.
I was under the impression it should show up on the calendar as a Site event so that anyone can see it even if they haven't signed up for the session.
There's probably a quick fix for this...I haven't found it yet though.
Teh calendar functionality will place sessions on a Users calendar. The functionality does not yet exist to have the session added as a Site event.
i will attach the latest lib.php. It worked fine for me with the latest facetoface module installed and moodle 1.9.3+.
Try it out and let me know if it works fine for you or ig you have any problems/bugs/etc.
Thanks a lot!
P.S. Remember to backup your lib.php before overwriting it with mine.
Almost. When the user clicks "To go to the facetoface session click here" they are taken to the wrong session.
Is anyone else having this problem? Any ideas as to why it parses the wrong session when the function creates the event?
it's really wierd since the id of the session is remembered just before being inserted in the face2face tables. Are the 2 sessions(the one you created and the one that mouse clicks takes you too) next to eachother? did you inserted many dates for the same session? I'm trying to figure out if the behaviour is due to certain session conditions or if it's an "isolated" case. Did anyone else had this problem?
I think that my problem at least was caused by the fact I was using the 1.9.3 and not the 1.9.3+ version, and probably had nothing to do with the face-to-face module but some general calendar bugs on the moodle version.
I upgraded to latest weekly + your lib version and things work great so far!
I did have to delete the face-to-face sessions and enter them again but then everything does show up on the frontpage calendar.
Keep up the good work!
I like your solution - it is very helpful.
Any updated version of this for latest F2F version available?
Current version seems to cause problems with duration field latest fix of F2F.
Plus, when changing dates in F2F scheduled dates, site events of previous are not deleted.
It tackles the second part of this problem: putting on your user calendar the sessions for which you signed up (or the ones you created if you are a teacher).
I will be adding this soon to CVS, but would appreciate if others could test this out and report any problems.
I hope the issue will be added to the official CVS before the mid of February, before the golive of moodle in my company.
Thanks to all
I committed a patch related to this last Friday:
It seems you patch is not compatible with Moddle 1.9.5.
Is there any plan to upgrade it ?
The tracker issue is still open however because the second part of this calendar work (showing all available sessions on the calendar) is not yet done.
I'm using the latest version of the Face-to-face module (and block) in Moodle 1.9.4 and for some reason it does not show the session in the calendar when a user subscribes/signs up to a session.
It does show the sessions in the calendar for the creator when they add a new one but I'm at a loss to why a booked session does not show for the subscriber.