I am not aware of having deleted the email reminders facility from Richard's code. I'll have another look later.
Nice to see you here again
You also forgot to include the french language files I sent you per mail. You'll find them again in attachment.
Thanks for your work.
Cheers !
I just installed your "new and improved" scheduler on a 1.6 test site. Fantastic, I love it. Just a couple of things:
You have a new field - "location". When I type something in there, where is it supposed to show up? I don't see it anywhere.
Also, I've noticed some new errors with debug on. I don't know if this is something new that has been introduced in 1.6. Basically, it doesn't like it if something "hasn't happened yet". With the scheduler, as a teacher, if I have created a time slot for a student that has not been checked yet I get errors from the calendar (but I don't get these as the student) and the event doesn't show up. Do you know what this is all about?
For the upcoming events block I get these:
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 866
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 872
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 874
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 880
And for the calendar view I get these:
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php on line 465
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 473
05:00 PM
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 479
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 483
Notice: Trying to get property of non-object in C:\moodle\moodle\calendar\lib.php
on line 484
I'm attaching backuplib.php and restorelib.php to fill the blank.
This was done against scheduler version 2004091100.
Please take a look at the code,test and if possible merge it.
Regards,
Paulo Matos
I noticed an insignifcant detail (since I think order does not
matter) in backuplib.php: the new field 'schedulermode' is defined
_before_ 'teacher' on sql table, and backuped _after_!
Just swap lines 41,42 or apply patch attached.
I reviewed your changes and besides this everything is fine.
Regards,
Paulo Matos
Hi Gustav,
When trying to use the module:Parse error: parse error, unexpected T_VARIABLE in c:\easyphp\www\moodle\mod\scheduler\lib.php on line 295
Fatal error: Maximum execution time of 30 seconds exceeded in c:\easyphp\www\moodle\lib\datalib.php on line 824
change line 294 :
$supervisorEvent->visible = 1
to
$supervisorEvent->visible = 1;
The code has been extended many times now and this module is really ripe for a complete rewrite. Don't be surprised to find many more bugs.
The module also has a large number of features and it is not immediately obvious how to use them, so if someone familiar with some uses would put teacher documentation into MoodleDocs at http://docs.moodle.org/en/index.php?title=Scheduler that would be very useful.
Fatal error: Class 'tabobject' not found in C:\Apache2\htdocs\moodle\mod\scheduler\view.php on line 105
Does anyone know a fix for this?
Thanks
My question:
Does anyone already work on this teacher documentation for the scheduler module(version 1.2)?? If not, we would do this.
Greets
Mathias Moser
Here is alphabetical list of language variables (english).
Excel is nice tool for ordering

Soon comes Finnish translation, when our translation is updated from autumn. Development has happened.
- ari -
Some small bugs in Statistics -page:
- "Duration", "Appointments" are not language variables and "Occurances" is not even in language file
- pressing Continue-button gives error "Course Module ID was incorrect"
- ari -
Re: Updated scheduler module (Additional check required)
Recently one of my users (which I could not find out who
created a scheduler with 15857286 slots (yes, 15 Milion).
I took a while to figure out how he did it, I found it...
if I say the slot duration is something like 0.001 minutes
in one hour it will produce 60000 slots...
A solution I find to deal with this is to check the duration
paramenter, something like:
$duration=intval($duration);
however this can only be done when duration < 1, where it enters
the partial numbers, or simply by limiting it to a minimum value
of 5 minutes.
See attached patch.
Cheers,
--
Paulo Matos
Re: Updated scheduler module (Additional check required)
Fatal error: Call to undefined function: get_supervisor() in /hsphere/local/home/tothje/norrisroadtosuccess.com/mod/scheduler/lib.php on line 232
Any thoughts or solutions?
It would be nice if the teacher could specify the maximum numbers of students per slot.
I'm going to use moodle and the scheduler module to let students book them self into laboratory groups, in a normal laboratory/computer room. On each occasion I only can accept 8 groups á 2 students each, is this possible to solve?
East sees it as a link that a pop opens up
Could you please post your changes for the commentaries (notes) addition. Maybe you could attach a file with the database field you added, and changes you made.
Thanks
Hello Chardelle,
Even I have not sent the changes because I don´t have access to SourceForge.net, also I have done a brief summary of the changes that I have realized in my module of the sheduler but this one in Spanish
hello I have added a Link that allows to select all the students to arrange one reunion of the table of the students del course

There is a bug in the option ' multiple Allow students per slot? ', this option does not work , and other bug in this code
slot->exclusive = $exclusive;
$slot->student = $bookstudent;
$slot->notes = $noteMove;
$slot->appointmentlocation = $appointmentlocation;
$slot->attended = $attended;
$slot->hideuntil = make_timestamp($displayyear, $displaymonth,$displayday, 6, 0);
$slot->exclusive = scheduler_noneexclusive($scheduler->id, $starttime, $slot->starttime + $slot->duration*60);
In the next days we'll upload the german language file for the scheduler.
Our plan for the next weeks is to fix the bug with the "multiple Allow students per slot" in addition with a field for the maximal amount of students per slot.
Hopefully we can fix this soon.
If anyone works already on this and has some tipps, please post them here:
http://moodle.org/mod/forum/discuss.php?d=44192
Greets Mathias
Helped by Nicolas, I've completed the traduction of the scheduler (great tool, by the way).
A few entries, though, don't appear to be in the "scheduler.php" file and are not translated (see attached gif) :
Students, Staff, Group Size, Occurances, Appointments, Duration
(in pages studentbreakdown, staffbreakdown, etc).
Does anyone know where I can find them? Spanish and german translators perhaps?
Raúl, ¿has encontrado el mismo tipo de problema? ¿Tuviste que traducir otro fichero que el /lang/es_es/scheduler.php?
(I don't have to mention that I do have translated all the entries of scheduler.php)
Thanks for your help.
SB
Greets from Austria!
This forum post has been removed
Hi, we are working at the moment on some improvements on the scheduler module.
multiple allow students already works, in addition we added a fiel for the maximum number of students per slot. also each student/teacher sees how many places are free.
we will post this improved and full working scheduler in the next 14 days.
we also made a teacher documentation in englisch and german to instruct the teachers how to use the module.
hope we help some guys of you with our work...
This forum post has been removed
Sounds like some great improvements Mathias.
Ditto. If you need some more testing done, please count me in.
im from vienna and would like to know if you fixed the bug with the multiple allow students per slot. I would need this.
thanks, ...
I posted a fix for this bug (and a few others) further below in this thread (http://moodle.org/file.php/5/moddata/forum/27/305175/appointment.zip)
Please let me know if it works for you.
Cheers,
Markus
i've already tried something different, but can you tell me, if you look into your calendar as teacher, do you see the detailed presentation of each appointment or schedulerslot in the daily view.
Because my students see them but I can't (as teacher).
In the database there is missing the instance-entry for the event added for the chosen slot by a student.
Do you see the entry in the calender???
Thanks a lot,
Kasia
Re: Pages of slots in scheduler/appointment disappear in 1.7
Hi
I installed the latest appointment /scheduler mod on my moodle version 1.7.
The module seems to be working similar to that on 1.6 except one thing ---- the page numbers underneath the slots are missing.
Does anyone see the same thing?
At the moment, I have to paste "&page=&start=7" etc. at the end of the URL to make the pages show. (Note: I replace the 7 with other page number).
Thanks in advance.
Cheers
James
Hi, I have a little problem, I don´t understand the usefulness the field $slot->exclusive, because don´t alow that several studets select the same slot.
Could anyone help me¿??
thanks
In attachment you'll find an update to the french lang file of the scheduler module. Credits for the update goes to Sébastien Bauer
This file is in ISO-latin-1 encoding. Do you want I upload an UTF-8 version?
This note to inform you that from now on, Sébastien Bauer will take care of the french translation of your module. He'll post updates of the french translation here.
Thanks to him
What I'd like to use it for is to have students schedule times to do presentations in class. However, I can't seem to set it up to allow students to schedule their own time. I tried to create slots, but when students go to the schedule, they see a message saying that there are no slots created and that they have to contact the instructor of the course.
Any suggestions?
Thanks,
Steve
After checking, I found out that even though I have set the "Location" when setting up the slots, the students can only click to select a time slot but the information on location of meeting is not shown to the student.
I hope the person in-charge of the programming can take note.
Thanks.
Hi, yes this problem exists in the version in the cvs. (scheduler 1.5 i think)
We are publishing a new version of the scheduler until the end of the next week where this problem is already solved.
Greets
Hi Mathias,
just FYI: I just installed the CVS version of scheduler on a new 1.6+ installation, and I don't seem to be able to add multiple slots. After filling in the "Add slots" form and clicking on "Save changes", it says "0 slots have been added". Adding single slots works, though. (The current version from CVS does function properly on my 1.5.3 installation.)
Maybe this is something you are already looking into while getting the new version ready.
Anyway, thanks for your effort!
Markus
It used to work in 1.5.4, great job!
--Martin
Re: Students cannot see Location of Meeting in scheduler
Attached you find our modified version of the scheduler.
I'm sorry that i have not the time to list up the changes. Try it and you'll see!
Greets
Mathias
Re: Students cannot see Location of Meeting in scheduler
Hi Mathias,
A great odule .
Is it available for use in Windows.
Could you guide me to a download location.
Thanks again
Garry
This forum post has been removed
Re: Students cannot see Location of Meeting in scheduler
I have no idea. I have the same problem, biggest part is that it doesnt give any errors?!?
Good Job, great module, very useful
--Martin
This forum post has been removed
Brian
Thank you for this. I have been experiencing the same problem and justr applied your additions. I then made a small change which now works for me. I am a very inexperienced PHP coder so I just changed things to see if they worked. I don't know why but they seem to have done.
I changed your line:
$teacherid = $USER->id;
to
$teacherid = optional_param('teacherid');
and now the selected teacher appears for me at least.
Thanks again for this.
Regards
Steve
This forum post has been removed
Brian
You obviously tested more than I did. I will try to look at this tomorrow too.
Regards
Steve
This forum post has been removed
Brian
I see what you are doing but this is way beyond my expertise at present.
As you said a while ago it seems strange that the code works if this many changes are required.
Regards
Steve
Re: Students cannot see Location of Meeting in scheduler
I completed the view.php with all the code you posted, but when I try to create a range of slots, I still get the message: "0 slots have been added".
I am currently using:
Moodle 1.6 (2006050506)
PostgreSQL 7.4.7
PHP 4.3.10.16
Maybe anyone has an idea for me.
Yours
Felix
This forum post has been removed
Re: Students cannot see Location of Meeting in scheduler
Brian,
I have installed Schedular Activity .
I cannot add multiple slots. I get msessage no slots created.
On seeign at the creation of multi-le slots I get the error.
" Warning: getdate(): Cannot perform date calculation in e:\program files\easyphp\www\lms\lib\moodlelib.php on line 976".
I am new to this module hence request help in advising what should be done. Attaching a screen shot of what I get on going to schedular.
Thanks for the help.
Garry
Re: Students cannot see Location of Meeting in scheduler
I had same configuration (except php5) and same problem. And I did not see my appointments or any appointments at all.
Reasons for this:
- There are two missing columns in table mdl_scheduler_slots
- There is one sql-statement to be repaired
Add columns teacher and appoinmentlocation to the table mdl_scheduler_slots.
For example:
% alter table mdl_scheduler_slots add column teacher bigint;
% alter table mdl_scheduler_slots alter column teacher set default 0;
If you have already entries in table you should change teacher values to zero. I am not sure about this. But I did it.
and
% alter table mdl_scheduler_slots add column appointmentlocation text;
And edit line in .../moodle/scheduler/view.php (line 849), it should be:
$sql = "SELECT * FROM ". $CFG->prefix . "scheduler_slots WHERE $select ORDER BY starttime ASC, student ASC LIMIT 25 OFFSET ".($start*25);
which is understood by postgres7.
This is very quick fix and not tested widely. But works for me.
Note:
When you add appointments be sure that duration is shorter than $endtime-$starttime
Thanks to Ari for finnish language file.
- Jarmo
This forum post has been removed
Hi,
There is Finnish language file.
It has made several months ago, but I forgot to send
- ari -
Hi All,
Where should I get the most up to date version of this module?
I see the patches and modifications being posted as attachments in this thread.
Are they being incorporated into the 'standard' download from the Moodle Modules and Plugins Download area at :
http://download.moodle.org/download.php/modules/scheduler.zip
Regards,
Howard
Hello All!
I see that Gustav began this thread but it is not clear who the module Maintainer is.
Gustav are you the Maintainer?
WP1
We at ULPGC use a lot the module Scheduler. We consider it essential to manage the setting of tutorial meetings in our mixed presential/virtual environment. I have reviewed all the versions and modifications published in this thread and have almost completely rewritten the module to synthesize in a coherent code all the useful functions.
I have added functionality to support standard moodle groupmode, and manage groups to create new slots (teacher can set that only students that are member or a given group can book) and to appoint meetings (meetings can be established for a whole group at once). Now the module works either in exclusive (only one appointment per student) or non-exclusive (several slots can be booked). I have included a more detailed description in the README within the module.
In the way, I have seen easier to re-structure the code if the tables were re-structured also. Now there is an _slots to store only the attributes of a teacher-created time-slot (timing, teacher, type of slot) and a separate _books table to keep record of whom student has booked what slot. Due to this change I have renamed the module as Appointment, just to make possible to have both installed alongside and compare functions. Renaming it back to scheduler is a simple search&replace.
The module need a lot of testing, please let me know any bugs, errors, or problems in general that this code may expose. I am open for any suggestion to improve it.
Regards
Enrique
This forum post has been removed
This forum post has been removed
This forum post has been removed
However, I cannot reproduce the problem with separate groups. I have tested with a user as member of 4 groups and he can book a different slot acting as group 1 - 4. In any order. Please, let me know more about the specific scenario that triggers the error. On the other hand, I do not recognize the message "You do not belong to this group!", this is not in any of the lang strings in my moodle 1.6.1+ installation. Is it perhaps a customized version of $string['notingroup'] = 'Sorry, but you need to be part of a group to see this activity.'; ?
One thing that is positively broken is backup, I'm trying to learn more about backup/restore functions to address this essential point for final release.
Enrique
This forum post has been removed
Thanks so much for taking the time with this mod--it is a handy tool I use for scheduling chat times.
I downloaded your version and took a quick look (I haven't tried the latest fixes yet), but one thing I noticed was the problems with the comments--did that get fixed? Also, I noticed that text with apostrophes came back with slashes. I haven't looked at the code, but offhand I would say maybe you need to add 'addslashes' or 'stripslashes' or something lke that to the text entry?
This forum post has been removed
It's difficult to kwown witch file is the good one now.
It's seems to be Appointment V2.
I test it and have some troubles. I don't know if there are only for me, but here they are :
- translation problem (due to programe, not translation file) :
- appointment types for "add only 1 slot" are not translated
- th lines from the statistics tables aren't translated
- subject and message for "Reminder" and "Invitation" mailing aren't translated
- calendar
- student view : when you change a appointment slot, new one is created but the last stay here (it must be deleted)
- teacher view : appointments title are correctly viewed in the little calendar, but there is nothing in the detailed calendar, only something empty with a wrong time
- student view : when you change a appointment slot, new one is created but the last stay here (it must be deleted)
- other
- in the "Reminder" and "Invitation" mails, I think we can change <br /> by appropriate syntaxe for text form
Eric
Adding
$teacherEvent->instance = $slot->scheduler;
below line 290 in both the update and the insert block will add the instance number (which is the primary key of the scheduler-table) also for teachers and the event will appear on the teacher's calendar.Is this correct or am I overlooking something? Is there a reason why the instance is not supplied for teachers?
One reason might be this: Now that I can see the event for the teacher, if I try to edit or delete the individual booking in the calender I am actually editing or deleting that instance of the scheduler, which is of course very dangerous.
In any case, would be great if somebody could confirm or not if that is rubbish - or not
Michael
btw the same thing is true in the appointments object
thanks for your very nice Appointment V2 Tool.
I have installed it on moodle 1.63 and it work fine.
I have some little question:
1. what about a germany language file ?
2. when i use "add single slot" there is no field for "max. students" ?
any idea ?
best regards from Berlin/Germany
Alain Lasserre
This is my attempt at putting all updates together. I have also added to the language pack. All works well for me in Moodle 1.6 (Though I bet there are bugs in there), except appointments for the person who is not currently logged in. It defaults to me, even when I try to add another teacher.
I downloaded and successfully installed this module, after uninstalling an earlier version. I still can't seem to get "Add slots" to work correctly--no slots get added upon save--and I can't seem to allow multiple students in a slot. I'm running 1.6.1 with mysql. Is this a problem with my install or is it broken.
I do some php programming, so I'll take a look too...
Thanks Again
CF
Michael
I am confused. Is your collection of updates more recent than the Appointnment V2 that Eric mentions?
Appointment seems to include support for groups which unless I am missing something your collection does not.
We need the support for groups here and this is not in the version of Scheduler I have been trying out for some time.
Regards
Steve
Steve,
I think it is more recent than appointment V2, but not completely sure. When you say groups, do you mean group appointments that link to the groups in courses?
Mike
Mike
Thanks for your reply.
In Appointment groups refer to groups in the course. They can be used to filter the list of students who have made or need to make an appointment. There does not seem to be any link between course groups and a group appointment as far as I can see.
I have only tried things out with visible groups so far as that is what we use here but it seems possible for a student in group 2 to make an appointment in a slot created for group 1. I am slightly confused about how things should work but at least the groups allow filtering of lists of students.
Regards
Steve
this one about the scheduler module
and this one about the appointment module
from what I have understood so far, these appear to be two different modules, maintained by two different groups of people. However, there seems to be a lot of cross-purpose posting and trying to pick up a thread is horribly difficult.
Does anyone have a solution to this? My suggestion would be that the current maintainers, post something in their own thread indicating where the module is in terms of development, version number, link to cvs stable version and link to cvs development version (or something like that).
I post this only because I have now spent an hour trying to find a) an answer to a problem - unsuccessfully and b) trying to figure out what I have installed in comparison to the versions floating around. I can't be alone in getting confused, can I?
cheers
Mandy
I have a version of scheduler installed on v1.6.2 (version.php says: $module->version = 2005100901;) but I only installed in from downloads about a month ago!
Anyway, the question is this:
I have added the resource to course # 1, this is the only course where all the teachers are available to all students, so it made sense to me to do this.
However, whenever a student tries to book an appointment scheduler comes back with
"Couldn't save choice to database"
This doesn't happen when I use the scheduler in a deeper course.
Can anyone please shed some light on this? It's a bit urgent because we were hoping to use it on Monday to enable students to book appointments with a whole bunch of teachers.
cheers
Mandy
Question: Is the above statement supported by anyone else's experience? I don't want to allocate anymore time on "Scheduler", if this is the consensus.
Best regards.
This forum post has been removed
Brian
Thank you again. This is in line with my own findings and it seems to answer my earlier question to Michael.
Regards
Steve
Cheers.
I have installed Appointment2 on my system (Moodle 1.6) and everything works OK.
However I have noticed a couple of "bugs".
The scheduler is obviously linked in some way to the upcoming events block. Am I correct in thinking that I should be able to see a list of appoinments. All I see is blank lines. (See attachment)
Also if I go to calendar to see upcoming events I see empty entries.
Apart from this, the system seems to work perfectly. Is this a known problem? Is there a solution?
Any comments on whether appointment2 would work with Moodle 1.7. I would hate to lose it now if I upgrade.
Thank you
Cheers, Michael
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am not experienced at all with PHP (or moodle, for that matter) but found that the error on the teacher's calendar seems to come from a couple of missing lines in lib.php which don't populate the instance-field in the event-table.
Adding
$teacherEvent->instance = $slot->scheduler;
below line 290 in both the update and the insert block will add the instance number (which is the primary key of the scheduler-table) also for teachers and the event will appear on the teacher's calendar.Is this correct or am I overlooking something? Is there a reason why the instance is not supplied for teachers?
One reason might be this: Now that I can see the event for the teacher, if I try to edit or delete the individual booking in the calender I am actually editing or deleting that instance of the scheduler, which is of course very dangerous.
In any case, would be great if somebody could confirm or not if that is rubbish - or not

Michael
btw the same thing is true in the appointments object
Thank you for taking the trouble to re-post this, but can you explain to me where I can find the update and insert block please?
Should I add this code in lib.php in /blocks/calendar/ or elsewhere.
Thank you!
the lib.php I meant is the one that ships either with scheduler or appointment and can be found in mod/appointment|scheduler/
You can search for this bit of code:
if ($studentEvent) {
$studentEvent->name = $studentEventName;
$studentEvent->description = $studentEventDescription;
$studentEvent->format = 1;
$studentEvent->userid = $eventStudent;
$studentEvent->modulename = 'appointment';
$studentEvent->instance = $slot->appointment;
$studentEvent->timestart = $eventStartTime;
$studentEvent->timeduration = $eventDuration;
$studentEvent->visible = 1;
$studentEvent->eventtype = $studentEventType;
update_record("event",$studentEvent);
} else {
$studentEvent->name = $studentEventName;
$studentEvent->description = $studentEventDescription;
$studentEvent->format = 1;
$studentEvent->userid = $eventStudent;
$studentEvent->modulename = 'appointment';
$studentEvent->instance = $slot->appointment;
$studentEvent->timestart = $eventStartTime;
$studentEvent->timeduration = $eventDuration;
$studentEvent->visible = 1;
$studentEvent->id = null;
$studentEvent->eventtype = $studentEventType;
// This should be changed to use add_event()
insert_record("event", $studentEvent);
}
if ($teacherEvent) {
$teacherEvent->name = $teacherEventName;
$teacherEvent->description = $teacherEventDescription;
$teacherEvent->format = 1;
$teacherEvent->userid = $slot->teacher;
$teacherEvent->modulename = 'appointment';
$teacherEvent->instance = $slot->appointment;
$teacherEvent->timestart = $eventStartTime;
$teacherEvent->timeduration = $eventDuration;
$teacherEvent->visible = 1;
$teacherEvent->eventtype = $teacherEventType;
update_record("event",$teacherEvent);
} else {
$teacherEvent->name = $teacherEventName;
$teacherEvent->description = $teacherEventDescription;
$teacherEvent->format = 1;
$teacherEvent->userid = $slot->teacher;
$teacherEvent->modulename = 'appointment';
$teacherEvent->instance = $slot->appointment;
$teacherEvent->timestart = $eventStartTime;
$teacherEvent->timeduration = $eventDuration;
$teacherEvent->visible = 1;
$teacherEvent->id = null;
$teacherEvent->eventtype = $teacherEventType;
insert_record("event", $teacherEvent);
}
You will see in your original code that in the first block (student) the instance is populated twice with: $slot->appointment for update and insert while these lines are missing in the second block (teacher).
I added these two lines (in the code above), which seems to work with the issue discussed in my previous post.
I would feel much more comfortable if one of the original developers could verify that this is a sensible thing to do - various people have posted problems with the calendar without any responses!
Alternatively, as I am fairly new to this, would another member of this forum please advice me on a better way to feedback to those maintaining the code?
Good luck!
I picked up a tip from the Quickmail forum that seems to work as well.
When scheduler batches out the emails to students they get:
This is an automatic reminder for an scheduled appointment.
meetingwith Robin Trangmar.
Date of appointment: Monday 20th November 2006, 09:00
- 09:00.
Location: test.
If you copy the file ../scheduler/lang/en_utf8/scheduler.php
and place it in ../moodle/lang/en_utf8/
this replaces the message with
Scheduled Appointment with Robin Trangmar on Thursday 23rd November 2006 from 18:30 until 18:30.
I just need to solve the time span shown so that it shows the duration of the event (in my last example it should be 18:30 to 19:00)
I ask because we're looking at using Scheduler as part of our upcoming Moodle beta test, but the version I downloaded still has the "can not add multiple slots" bug mentioned earlier in this thread.
I've re-opened a Tracker issue for this problem:
http://tracker.moodle.org/browse/MDL-7553
When I attempt to add multiple slots, the script throws a bunch of "Undefined variable" errors. I plan on taking a look at the code once I track down a few other, unrelated Moodle problems, but if this module isn't being actively maintained we may not use it in our test rollout.
Thanks for your help with this,
Ken
Greetings...
I am also interested in the scheduler module. I installed it and am unable to create slots.
Are the changes above in this thread being rolled into current?
We would like to get this working, and would appreciate any help.
Regards... Tom
http://tracker.moodle.org/browse/MDL-7553?page=all
He's looking to do a 1.7 fix at some point, but no ETA. I'd still like to hear from the maintainers so that these fixes can be roled into the main module.
Ken
Hi, (what a relief to find this thread!)
I have exactly the same problem as Tom (did you ever find a solution to this- Tom?) we're running 1.6.2 scheduler v1.2 (at least the latest file I could find last term).
The weird thing is that we have used it already on two different occassions (we're running "subject surgeries") in the same course and they worked perfectly, (we have changed server from unix to windows but nothing else!).
BTW Rooting around I have noticed that the scheduler tables are not utf8, so this is one of the - obvious - things that needs to be on the development list.
cheers
Mandy
Hi everyone. I've recently started to use the scheduler module and after some feedback from the forum it works great and saves lots of work.
However, I have a problem. I have created several courses, and I am a teacher of only a few of them. Is it possible to add appointments in different courses without having to manually check thay they don't overlap? I could always add it in the parent course, but since I'm not teacher of every course I would like to avoid that (at least, as long as the group feature of adding activities for a single group is not implemented).
Thanks!
thanks,
david
This is also posted at http://moodle.org/mod/data/view.php?d=13&rid=328
Thanks
Neena
RC
Hi Richard,
The problem of the invisible slots for students in 1.7 was solved by setting the Display appointment to students from to x days before slot (minus the day the slot was set). The problem seems to be with the "Now" choice.
Hope this helps you.
Neena
RC
Scheduler/appointment are great modules, but the way the development of these is working is VERY frustrating.
Would somebody who is running scheduler/appointment on 1.7 please post exactly what has to be done/fixed and also which of the various versions of the activity module they are using in the first place (as the version number seems never to change).
I do think that moodle has a certain responsibility towards these plug-in modules; we can't just sit and wait for somebody sometime to update the modules without any indication.
Sorry for this - promised everybody a booking system in 1.6, then moved to 1.7.
Michael
I'll work on posting a summary of my changes, as well as the specific code tweaks, later this week.
this is great news - I was hoping that somebody out there took on the challenge of getting scheduler to work in 1.7! Thank you very much! I am looking forward to your post.
Michael
I am still hoping to get a solution for scheduler/appointment on 1.7. Any news on progress?
Cheers, Michael
Thank you very much for working the development of Scheduler in 1.7... There seems to be a need for it!
Here's my 2¢:
Running 1.7.1+, Solaris 10, Apache 2, PHP 5.2, MySQL 5, Schedule module updated with the last patch.
Everything seems to work, but when a student tries to schedule an appointment we see: "Couldn't save choice to database."
Is the development you are doing addressing the code causing this issue? We're trying to decide whether or not to modify code or wait for this module to be further developed...
Again Kenneth, thanks again for working on this!
Take Care,
Matthew
Jon
based on Enrique Castro's http://moodle.org/file.php/5/moddata/forum/27/237963/appointment2.zip I tried to fix the most critical issues so that the module is quite usable under 1.6.3 and 1.7 (without roles support, though). There are still a couple of bugs floating around; if you come across any, please post them here.
Kenneth: Have you made any progress on implementing roles?
Cheers,
Markus
I've just spent the last hour trying to get both the appointment and scheduler module working in 1.7+. I have no problem adding multiple slots to either activity however the student cannot view them.
Please advise.
Dorie Minich
thank you very much for this - I will test as soon as I can. Can I ask you, as you seem to be working on it, what is your take on the maintenance of the scheduler/appointment module?
In 1.6 we first used scheduler, then appointment, then upgraded to 1.7 and couldn't use any. Kenneth seems to be working on a 1.7 implementation of scheduler while you did the same for appointment. It looks to me as if there is no reason why scheduler is used anymore (or am I wrong), on the other hand it looked like appointment had virtually no developer base (apart from you now)? Do you feel that there will be something to rely on, and if yes what is your take?
Thank you very much for the post and the time you spend on it. I am sure that many people will appreciate this. I most certainly do.
Michael
$start = optional_param('start');
Directly above:
if (($start == "") & ($sqlcount > 25)){
$startcount = count_records_select("scheduler_slots",$select." AND starttime < '".strtotime("now")."'");
$start = floor($startcount/25);
}
I have updated Scheduler to work with Moodle 1.7.2 and higher (my version is working in Moodle 1.8.2) and I'd be happy to share the revised code with others to test on their sites. Please send me a message with your e-mail address (you can use Moodle.org's built in messaging), and I'll send you my hacked version of Scheduler.
As was alluded to elsewhere in this thread, the version of Scheduler (2005100901) currently available for download from Moodle.org (as of 7/31/07) was written for versions prior to Moodle 1.6. With Moodle 1.7.2, Roles fundamentally changed, and the old table used to store teacher/student information was removed. This causes several of the queries that Scheduler uses to fail, because it's looking at the wrong tables.
In addition, there are a number bugs other bugs in the code that prevent portions of Scheduler from working as intended.
I've documented the changes I made to Scheduler in order to get it working at Lafayette College. It revises the code so that it knows where to look the traditional "teacher" and "student" role information. That said, this version of Moodle is not smart enough to recognize the post-1.7 Roles system, which relies on "hascapability" and other such flags set at the admin level to determine which roles get access to which capabilities within Moodle. My queries work, but the entire module really needs to be updated to integrate properly with the new Roles system.
I'm not the maintainer for Scheduler but I would like to collaborate with other Moodle programmers/users to bring my hacks and the rest of the module into line with the current Moodle code base. While this code works for us, I think that it needs more testing -- and more permanent revisions to the way it handles Roles -- before it's ready for primetime.
If you are interested in working with me on this project, or have any questions about my changes, please contact me.
Ken Newquist
Lafayette College
OS: OpenSuse 10.2
MySql: 5.0.26
PHP 5.2.0
Apache: 2.2.3.20
Moodle: 1.82+ (2007021520)
Hi Ken
Thank you for mailing your scheduler hack for Moodle 1.82.
No problems installing and running on the system above – but the mode dropdown only has one option (Students can only register one appointment) .
So thank you, Ken – there are few modules that are really essential for productivity – scheduler is one (Quiz Detailed Reports another).Unfortunately I cannot contribute to the maintenance of modules (my programming experience is windows, asp, DotNet based, but if there is any way I can support people who can and will, I’m ready!
I wonder too, if it is possible to design a module programming interface to Moodle so the 3rd party modules don’t need to be updated with new versions of moodle. This is also an effort I would want to support.
But thanks again, Ken.
Kind regards
Bent Laursen
Cheers!
we are using 1.8.1 and I have just installed the French prerelease 3 (2007110209), which already produced an error msg (parsing of code) as I was trying to create a slot.
I am not reading French and seem to be unable to find which versions of Moodle are supported etc. Has anybody installed this scheduler and run it successfully?
Thanks,
Michael
Could you tell me more about this trailing bug ? It should be fixed up in a couple of seconds.... .
Tell me about exact context. I developped this new version using 1.8.2. Maybe some previous versions of Moodle need a few fixes to ensure backward compatibility, at least up to 1.7.x
Thanks.
Prerelease 4 just published that fixes a few bugs of incompatibility php5/php4 and other minor errors.
I tested it a bit on 1.7.1. slots are created as required...
thank you very much for the quick response. We installed prerelease 4 and still have the same error:
Parse error: parse error, unexpected $end in D:\xampplite\moodle\mod\scheduler\addslotsform.html on line 193
Moodle 1.8.1
MySQL 5.0.21
PHP 5.2.0
Any idea?
It is great news that you have started looking after the scheduler. It has been very difficult to use given the version changes moodle went through.
All the best,
Michael
first of all: Thank you very much & sorry for my late reply.
I had somebody looking over the code and they found that at a couple of places in the add slots and add slot form code it said:
<? instead of <?php
Apparently, our server did not understand the implicit declaration of the php bit. It is probably a good idea to add this to all of the module?
It works really well now!
Btw one thing I realized is that the calendar is not integrated as it used to be - this is not an issue for us, but what are your thoughts - will you do this or will you leave this out?
All the best,
Michael
I may have not revised ALL parts of the old code. That is why there can be some things left like <? !! I try to get the code as Moodle as possible, anyway.
I did not change the original way messages were send to the calendar. I agree this is a "local" way of doing it. I confess I did not really spend time on this point as it seemed to work "as is". Could you tell me what is the real point that makes it odd ?
Thanks.
PS. Next reviewed module will be Tracker. (Integrated tracker in Moodle).
installation went fine. no prob adding schedule & appointments for teachers, students. however, i constantly encountered this error when i scheduled an appointment...
template /Applications/MAMP/htdocs/moodle19/mod/scheduler/mails/de_utf8/cancelled.tpl not found
any ideas?
Cheers, Chad
Yes Chad, of course !!
When scheduling and having activated the notifications by mail, you may have to send a mail to your students. The mail is produced using an ancient technique I used in many projects of mine, which injects data within a template.
Obviously, you will surely have translmated the lang/... subdir, wich will be of a great interest for me to add to the distribution , but you will also want these templates being translated in german, so that mails will be fired in your language.
What you need is very simple :
clone the mails/en_utf8 dir to mails/de_utf8 with all its content, open every .tpl mail template and translate or rewrite exactly the message you want in. And you'll have german notifications !!
Enjoy.
fyi - i had copied the lang files from the original scheduler download to the lang/en_utf8 dir so im not sure why i was getting a de_utf8 error?! is there a line of code somewhere that needs to be modified to ensure the cancelled.tpl is executed from the appropriate mails/lang dir?
i do speak some german, but i honestly think the translation is better suited to a native speaker!

Cheers, Chad
just a question about two minor issues I encountered:
1. when creating slots that collide with other existing slots we do get some SQL debug code (I am assuming). This may be a problem when moving to production server. Are you planning to change the message so people are not confused?
2. when adding multiple slots the option 'forcing slots' has no label - again, difficult for non technical members of staff. The help file is there, however.
When are you planning to post the final release?
Thank you very much for all the work you have put into this!
Michael
Hi Michael
I just acheived completing the developing working environment adding a dedicated bugtracker (Moodle of course (!!), end-user oriented) for Scheduler Issues. Feel free using it to report in english issues such as you mentionned in the forum.
There is no real plan for a "release" version as we worked with a french team to make a "major debug action". There may be reliquates, even in a "release". I do not have master policy on when I could qualify a version as released. Mostly would it be when actual feature level do not present any noticeable bugs. That should be acheived when enough reporting will have been done.
My policy is "be always urgently reactive when you know where to look for". Suscribing to that development space will you be immediately informed when a new release is available and which issues it will fix. (both EN and FR communication, which costs me twice !!)
Scheduler Support Bugtracker : http://www.ethnoinformatique.fr/mod/tracker/view.php?id=2364&view=reportanissue&lang=en_utf8
Cheers.
I'll post these and have a look.
I'd like to second the vote for allowing someone to book more than one appointment at a time, so I can use it as a meeting negotiation tool. I wish I had the time to check it out myself, because all of our faculty committees are on moodle and would benefit greatly from this added functionality.
Any work being done on this feature currently?
--Marty
Error 2 : This is an idiot miss of my own :
in lang/en_utf8/scheduler.php § 58 : add the label string "Force when overlap" in the value for the key "forcewhenoverlap"
Fixed in the next published released.
Error 1 : I try to produce issue...
1. Not able to reproduce it. I have indexed a first release in http://www.ethnoinformatique.fr/course/view.php?id=122. Tell me if it fixes these printings.
Thanks.
the error regarding the strange sql messages when creating overlapping slots seems to be fixed in release 1.
However, we had to re-fix the above mentioned php code:
quote:
<? instead of <?php
Apparently, our server did not understand the implicit declaration of the php bit. It is probably a good idea to add this to all of the module?
/quote
It would be great if you could integrate this into the release so we need not think about it anymore.
Thank you very much!
Michael
Should NEVER had happened !!
I check it again...
Thanks.
We have exact the same problem: Installation seems to be correct, other functions work fine. And (!): time-tables are filled with slots (I can export the tables), but nobody can see the tables (no teachers, no students).
We are using Moodle 1.8.4 and the latest scheduler version (at least with release 5, fine german translation, by the way) on a linux box with postgres as db.
Sorry, I'm late into this discussion (and moodle, come to that). I'm on 1.9.4? should I be able to access the scheduler module, or is this an optional extra?
Thanks Paul
Grear module. Trialling it now for a forthcoming parents' evening.
would it be possible to add an extra feature in future updates?
some parents have asked if a student could see a list of all the appointments they have made.
thanks for the great work.
Hello!! So I'll be the first in over three years (besides Llywelyn) to post on this thread!
This scheduler module is great, and it does what we want it to do, which is to allow faculty to put up office hours and for students to sign up. However, we can't use it. The problem is that the this module only works *per course*, and we need it to work *per professor*. We are running Moodle 2.3.1.
How difficult would it be to alter this mod to work outside of a specific course, and be connected to a specific professor? Is that option in the pipeline for the future? Thanks for any help!
Scheduler is a Moodle "activity module" (like Assignment, Quiz, Workshop, etc.) and is therefore always tied to a course. There's not much to be changed about that, at least I'm not planning to; it's the basic structure in which Moodle works.
What you can do is to create a scheduler on the Moodle front page, which would then be available to all users. Or you can create one course for each professor, where he communicates with his students/supervisees and can in particular add a scheduler. (This might seem quite complicated at first, but we do indeed run this model on our own site!)
I figured a workaround so that a prof can have a single scheduler for all her courses.
Basically, after creating a suitable Category in which to hold the moodle sites, you create a 'meta' course and add to it all the child courses that the Prof teaches. Then you merely add the scheduler activity into this course. Obviously the courses will have to be changed each semester / term but that's just a matter of adding and removing the appropriate child courses. There's no way I know of to automate this so while it would work for one or two teachers to do this manually it wouldn't scale to a whole insitution. In the latter case you'd want to hire a Moodle expert programmer to automate the process.
We do a variation of the above ideas. We've created a single course, into which we van enroll any instructor wishing to set up a schedule. (We may in the future just enroll all instructors.) They create a schedule there, copy the URL, and use it to create a web resource in each of their courses. Students not in any of the instructor's courses-- such as advisees-- could also go straight to the shared course site to schedule an appointment.
Last summer, we upgraded from Moodle 1.9 and walked away from the Scheduler module, instead recommending that faculty use the "appointment slots" function of Google calendar for setting up office hours. it was perfect, but now- with 3 weeks notice!-- Google has announced that it's terminating the feature. So I guess we'll see how the latest Scheduler works with Moodle 2.4.