Reservation icon

Reservation

Maintained by Roberto Pinna
This activity module permits to schedule an event with a defined reservation time.
Price option: Free

Supports Moodle 2.0-4.5 See all versions
Latest release: 3 years ago
Installations: 909
Downloads (last 90 days): 403

Frankenstyle name: mod_reservation
Activities

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Hi Borko,
there was a problem with PHP 5.4 now fixed. For info see: https://github.com/bobopinna/moodle-mod_reservation/issues/8
You can download latest release to resolve it.
Hello Derek,
I don't think I ever tested it with other DBs but it use Moodle DB library functions to make queries.
Did you notice particular issues with another DB?
Roberto.
Robert,
Has your module only been tested with MySQL or have you checked it with other DBs? Thank you.
- Derek
Hi
It's 2017022101 version
Please could you tell me which Reservation version did you use? You can find it in Adiminstration block ->Site Administration->Plugins->Activity Modules->Manage activities
I get this message
Parse error: syntax error, unexpected '=', expecting ')' in C:\moodle\server\moodle\mod\reservation\locallib.php on line 615
Hi Carl,
you can't do it with Reservation plugin.
I think can look at Scheduler (https://moodle.org/plugins/mod_scheduler) plugin that it's developed also for that purpose.
Cheers,
Roberto.
Hi Roberto,
I have teachers who want to schedule a great many events - they have some tutorial time every day, every week, for the whole course. I would like to make a lot of reservation events without making many hundreds of events. Is this possible?
Cheers,
Carl
Hi,
I worked on a couple of requested features:
- teacher can choose if reservation list or number will shown to the user at the end of reservation time or anytime
- single user calendar events. When a user reserve in a reservation, a user calendar event could be added as a reminder.
You can get them now, if you download Reservation module from https://github.com/bobopinna/moodle-mod_reservation, or wait 3.2 module version on moodle.org for some other features.
Cheers,
Roberto.
Hi Roberto,
Thanks for your prompt reply. I'll be looking forward to your update.
Cheers,
Lina
Hi,
thanks for your suggestion, I will implement it as soon as possible.
Cheers,
Roberto
Hi Roberto,
Thanks for your contributions to this very useful plugin. We are using it for our staff training event booking.
But I found that it won't send reminder emails to the user who has reserved the event. If we enable the "Create an event from start to end dates (the event)", all the students will have this event on their calendars. But what we want is just for the students who has reserved the event will have this event on their Calendar. Would it possible for your to provide this function?
Many thanks.
Best wishes,
Lina
Thanks for the reply. I think that the name of the option is misunderstandable. A lot of our teachers think that, setting that option, the request list should appear to every student at every time.
To address the complaints I have now changed the if:
if (has_capability('mod/reservation:viewrequest',$context) || (($reservation->showrequest == 1) && ($now > $reservation->timeclose) && (is_enrolled($coursecontext)))) {
to this one
if (has_capability('mod/reservation:viewrequest',$context) || $reservation->showrequest == 1 ) {
Now, if the option is set, students can see the request list at every time. Moreover, also teacher/manager/admin can see the list if they switch the role to student.
Bests,
Valentino
Hi Valentino,
the first one is not a bug.
Student can view request list, as for reservation number, only after the reservation time has expired.
This is done because during reservation time the list numbering can change.
A new feature for the next release could be to let the teacher choose when list or reservation number are shown.
For the second I think could be useful to add a capability instead of using course one.
Cheers,
Roberto.
Hi, I've discovered two small bugs. I provide the descriptions and the fixes in the following. Perhaps, it should be good to integrate them in the next realease.
1) The option "Users can view requests list" doesnt work. The problem is a ">" instead of a "<" in line 878 of view.php as in the following:
($now < $reservation->timeclose) && (is_enrolled($coursecontext)))) {
2) The list of teachers in the reservation settings shows also the managers inherited from the category where the course resides. A possible fix in mod_form.php is to replace the line
if ($teacherusers = get_users_by_capability($context, $capability, 'u.*', 'u.lastname ASC')) {
with these two
$teacherRole = $DB->get_record('role',array('shortname' => 'editingteacher'));
if ($teacherusers = get_role_users($teacherRole->id, $context)) {
Bests,
Valentino