Your Moodle version

Blocks: MRBS

Maintained by Davo Davo Smith
Based on the stand-alone MRBS project ( ), this allows users to book rooms and other resources from within Moodle.
Moodle 2.0, 2.1, 2.2, 2.3, 2.4

For a full description of this block, please see here

A Moodle 1.9 version of this plugin can be downloaded directly here: - this is not available on as there would be a lot of work involved in rewriting it to pass the automated database naming checks.




Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Davo
    Thu, Feb 27, 2014, 9:34 PM
    c b - to do this you will need to edit the file blocks/mrbs/web/edit_entry_handler.php and at a suitable point in the file truncate the description with:
    $description = substr($description, 0, [maximum length you want to enter here]);
    This won't make any difference on the page itself (you could try adding 'maxlength=???' to the textarea in edit_entry.php, but that isn't guaranteed to work in all browsers).
  • Picture of c b
    Thu, Feb 27, 2014, 9:39 PM
    Excellent, thank you for your help i'll give that a try.
  • Picture of Adam Morris
    Tue, Mar 4, 2014, 6:04 PM
    Is there a way to give permissions to a few users to book a particular area or room?
  • Davo
    Tue, Mar 4, 2014, 6:10 PM
    Adam - on the settings for a room, give a comma-separated list of email addresses of users who are allowed to book that room. No other users will be able to book.
  • Picture of dina ibrahim
    Tue, Mar 25, 2014, 9:04 PM
    can when i book room there is link to show me which course will be in?
  • Davo
    Tue, Mar 25, 2014, 9:05 PM
    Dina - that's not possible, as MRBS bookings are global and not connected to any Moodle courses.
  • Picture of Nacho Aguilar
    Sat, Jul 19, 2014, 12:38 AM

    I have just a question.... Can I force MRBS webpage to a differente moodle theme?

    I mean I have Essential theme as main theme but I use clean theme for courses and I would like to force MRBS to use always clean theme. As Moodle suggets I tried changing url to:

    /?theme=clean or &theme= clean (or more)

    but it doesn't work.

    Any solution?

    Thanks in advance
  • Davo
    Sat, Jul 19, 2014, 1:07 AM
    The MRBS block doesn't have any built-in support for using a different theme. I haven't looked, but I assume the moodle theme functionality works by overriding the course theme, which won't work, as MRBS doesn't run within a course.
  • Picture of David Perry
    Thu, Jul 24, 2014, 6:31 PM
    I've installed the latest MRBS (1.4.11) onto one of our servers, and got the current version of the block installed onto a test m2.5.

    When I set the URL to our installation of it, it's remembering the setting on the Plugin Settings page, but the link to schedule a resource isn't pointing to it (and instead points to the one built in to the block/mrbs/web folder).

    What am I missing? I was hoping that this block would act as an SSO from our moodle into the MRBS site I've setup.
    Also only the admin user can see the block when it's on the homepage.

    I tried logging in as a student, and going straight to the blocks/mrbs/web/ site, and it said I don't have permission. But the 'View bookings' in the system-level Student role is set to Allow - so where does the code look for the capability if the link staff and students are meant to follow is on the homepage?
  • Davo
    Thu, Jul 24, 2014, 6:43 PM

    The MRBS block initially contained a very lightly modified version of the MRBS application. However, over time, this has been changed to a much greater extent and is now completely incompatible with the latest version of MRBS. There has been some talk about starting again with a clean version of MRBS, but that would require some funding to complete and has, as yet, not come to anything.

    There is no support for SSO to an external copy of MRBS, as the version of MRBS included in the plugin has been modified to directly check the Moodle login credentials.
  • Davo
    Thu, Jul 24, 2014, 6:46 PM
    To follow up your second point, the permissions are checked at the system level, not at the course level. So, unless you have allocated anyone the role of 'student' at the system level (which would give them access to every course on the site), granting view MRBS permission to the student role will not grant access to MRBS.

    You can either assign one of the custom MRBS roles to users at the system level (these roles are automatically created during install) or you can override the 'logged in user' role to grant 'view MRBS' access.
  • Picture of David Perry
    Thu, Jul 31, 2014, 8:28 PM
    Thanks, we've got it running (authenticated user has view MRBS permission). Things I can't find out how to do in settings (if it can be done):
    - holiday hours (big thing for us, but worked around by adding a link to the web page with opening hours)
    - stopping it allowing people to book appointments on days that aren't included in the 'display' settings (i.e. we've excluded Sunday from the week, and it still lets you go direct to that day and book appointments)
    - stop anyone other than those users with mrbs-edit rights being able to see the name for the booking (data protection possibly)
  • Picture of Chris Simpson
    Thu, Aug 21, 2014, 9:19 AM
    HI Davo,

    I seem to have an issue where the View Day and View Week list at the bottom of the page are advancing a day ahead. (eg Says |25 Aug| but link is /blocks/mrbs/web/day.php?year=2014&month=08&day=26&area=8).

    This is only happening with the menu at the bottom and none of the other dates (in the booking area or calendar view). Otherwise thanks for a great block.

    Thanks Chris
  • Picture of Wai Shing Ho
    Wed, Feb 4, 2015, 10:30 AM
    Dear Davo,

    I have an issue in getting the report on meetings. When I go to generate the report, in the Summary of (Entries) Hours, all total hours are negative numbers. May I know where I should fix it?

  • Picture of Wai Shing Ho
    Wed, Feb 4, 2015, 11:05 AM
    Dear Davo,

    I found the problem now. There was a typo in the code report.php, line 201.
    The first input argument should be &$item instead of &$row. Then, the computation of summary will be correct even if period is disabled.

    Wish that this will be included in next version. smile

1 2 3 4
Please login to post comments