## Activities: Reservation

mod_reservation
Maintained by Roberto Pinna
This activity module permits to schedule an event with a defined reservation time.
304
501
10
Moodle 2.2, 2.3, 2.4
The main targets of this module are schedule laboratory sessions and exams but you can schedule everything you want.

Teacher can define the number of seats available for the event, event date, reservation opening and closing date.
A reservation may have a grade or a scale.

After the event starts the teacher can grade the event. Students will noticed by mail.

- teacher can also define multiple sublimits for available seats basis on user profile fields;
- reservation permits overbooking, also for sublimits;
- teacher can manually reserve seats for other user;
- teacher can send messages to reserved users;
- admin can define which profile fields are shown in reservation list table in reservation module settings;
- reservation can be connected to another reservation so students can reserve to only one of them;
- managers and administrators can upload list of reservation through a CSV file;

### Contributors

• Fri, May 24, 2013, 7:28 PM
Ciao Roberto,
ho installato il modulo sulla versione 2.5 e sembra funzionare.
Prima di passare alla piattaforma in produzione, volevo chiederti se avevi già fatto delle prove per questa versionedi moodle ed eventualmente riscontrato dei problemi.
Grazie!
• Thu, Oct 17, 2013, 7:58 AM
Hello!

There is a little issue with this plugin: when it sends e-mails to teachers, then the sender is Moodle administrator (lib.php line 375).
This is a bit confusing as the admin comes from get_admin() function -- witch is the first admin and may not be connected to the reservations at all.
Users may also reply to this administrator e-mail, witch is not good.

I suggest to make the sender to teachers the "noreplay" aadress -- seems much more logical.

lib.php line 375:

if (! email_to_user($teacher, get_admin(),$postsubject, $posttext,$posthtml)) {
-> if (! email_to_user($teacher,$CFG->noreplyaddress, $postsubject,$posttext, $posthtml)) { • Wed, Dec 11, 2013, 5:56 PM Caro Roberto, ho un problema con l'ultima versione per moodle 2.4. All'interno di un corso se provo ad inserire 2 o più eventi il sistema mi da il seguente errore : Debug info: ERROR: invalid input syntax for integer: "" SELECT * FROM mdl_reservation WHERE id =$1
[array (
0 => '',
)]
Stack trace:
line 426 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 248 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 753 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1382 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
line 1354 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1333 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 175 of /mod/reservation/mod_form.php: call to moodle_database->get_record()
line 191 of /lib/formslib.php: call to mod_reservation_mod_form->definition()
line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
line 261 of /course/modedit.php: call to moodleform_mod->moodleform_mod()

potresti aiutarmi a capire di cosa si tratta ??

Grazie per la disponibilità
• Fri, Jan 3, 2014, 6:49 PM
Hi, first of all great plugin, easy to use.

Quick question though - I need to create a lot of events with registration that will occur week after week and I am searching for the 'Repeated events' function from standard Calendar events - I can't seem to find it.

Is it possible to make 'repeating reservation events'?
• Tue, Jun 24, 2014, 3:04 AM
Hi Roberto,

I am wondering if there was a way to restrict the cancelling of the reservation if a teacher were to manually put a student in there. In other words, I don't want a student to cancel and teacher assigned reservation. Any ideas?
• Mon, Apr 6, 2015, 8:44 PM
Roberto and community, I have a problelma in the app (Versão 2.7).
My students make the Reservation, however the next day without my having given a time ok these are lost by chance something has already been reported in the same way? How to fix this problem because today the teacher will approve the date that the student will comparer, but the student can Reservation for future dates
• Wed, Sep 2, 2015, 10:56 PM
Where to find the upload functionality of this plugin? I have a comma separated .csv with 34 users, who already are in the system, and want to upload them.
Another question is: how to add users manually?
I search for such plugin since couple of months, and if the above mentioned questions are possible, it will fit me perfectly.

@Roberto The icon of the plugin, which appears on the list of courses under "content" is too big. I am using Moodle 2.8
• Thu, Sep 3, 2015, 3:22 PM
Hi Stephan,
there isn't a way to upload users into reservations.
The upload features enable administrators to upload a list of reservations in order to bulk create several reservation instances sitewide.

Manual reservation can be done, during reservation time, from the Management tab. You can see a dropdown menu with user list. Just choose a user and click Reserve button. Latest release support separate groups in manual reservation.

I designed a new icon with the right size.

Thanks for supporting this plugin.

Cheers,
Roberto
• Fri, Sep 4, 2015, 3:29 PM
Hi Roberto,
My aim is to extend the plugin, or just make one from scratch (if the extending is to complicated), with the option to upload users via .csv for each reservation (possible only for the managers/admins), or to add user manually from list.
I have struggled to find the right way to upload users in face-to-face plugin. I know it will take place in mod/reservation/view.php with the filepicker form, but how to build the communication with the module afterwards? I am ready to share my work and contribute, if you have some advice for the right direction of developing.

Cheers,

Stephan
• Thu, Sep 17, 2015, 4:37 PM
can we add reservation events on Moodle Calender ?
• Fri, Sep 18, 2015, 3:21 PM
• Sun, Oct 25, 2015, 8:06 AM
Really like this plugin except I'm getting an error when I select all users and try to delete them from the reservation.

"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"

One user will be deleted but the rest won't. I have to go through the delete process for every user which is time consuming.
• Wed, Nov 18, 2015, 9:12 PM
Thank you so much for making the floating button an option! That was really important to us, as is your work in general. And thank you for makinmg your professional work available for free. That is not taken for granted.
• Wed, Nov 18, 2015, 9:43 PM
Hi Roberto, I am getting a "syntax not supported error" trying to install in Moodle 3.0. Hope this really important module will be available for 3.0. Thanks for your work!
• Mon, Nov 23, 2015, 5:22 PM
Michael, I've tried to delete all reservations and it seems to works. I'm test on the last release on github.
Sven, latest release on github already supports Moodle 3.0. I'll post new release on moodle.org today.