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.2, 2.3, 2.4, 2.5, 2.6, 2.7

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
    Mon, Nov 25, 2013, 6:15 PM
    Jorg - please add any feature requests to

    Note that there are not currently any plans to work on a new release for this plugin - I work on maintenance / bug fixes when I can, but new features are only likely to be added if another developer writes them, or if an organisation sponsors the development.
  • Picture of Jürg Hoerner
    Thu, Jan 23, 2014, 9:49 PM
    I can not import. Has someone an example

    I testet with coma separate:

    00:01,00:02,2014/01/23,1,ComputerNB_AEWS Zi19,,,Stundenplantest2
    00:02,00:03,2014/12/25,1,ComputerNB_AEWS Zi19,,,Stundenplantest3

    in the path I wrote xxxx\moodle\mrbsImport\ -> notihing works
    or with a file name xxx\moodle\mrbsImport\stundenplan02.csv

    What is wrong??

  • Davo
    Thu, Jan 23, 2014, 9:55 PM
    The first thing that strikes me is that you have stated that the file was called:

    but in the settings you wrote:

    Have you tried putting the actual file in the settings (rather than just the name of the directory which contains the file?)

    Then, have you run a cron update? (/admin/cron.php)
    If so, was there any output relating to MRBS?
  • Picture of Jürg Hoerner
    Thu, Jan 23, 2014, 10:17 PM
    Thank you very much for your fast answer.

    As I run the crone with this path

    than I receive the following crone message:
    Finished activity modules
    Starting blocks
    Processing cron function for mrbs....... started 14:58:36. Current memory use 86.6MB.
    Processing cron function for rss_client....... started 14:58:36. Current memory use 86.8MB

    Is the .csv with comma separated correct?
    Is the time and Date correct? I tried also with time 25/01/2014

    No entry in the mrbs

    As I understand you, the file name must not be written after the path.
    - xxxx/moodle/mrbsImport/
    This should be correct.

    I have custom periods

    The first should be 00:00,00:01,
    is comma OK? Or better semicolon

    Thank you very much for your fast help.
  • Davo
    Thu, Jan 23, 2014, 10:25 PM
    Try directly running blocks/mrbs/import.php (this is the script that cron runs). Make sure debugging is on for the site.

    And just to be entirely clear about this - the very first line of code takes the full path+filename entered in the settings and checks to see if that file exists on your server. If the standard PHP function 'file_exists' does not locate the CSV file, based on the location specified in the settings, then no attempt is made to load the non-existent file.

    If you see no output from the cron / import.php file, then that means the file you specified either does not exist or could not be opened.
  • Picture of Jürg Hoerner
    Thu, Jan 23, 2014, 10:48 PM
    It seams that the file could not be opened. I will try it later. Thank you very much for your help.
  • Picture of Georg Moersheim
    Fri, Feb 7, 2014, 5:01 PM
    Hi Davo,
    the block is very usefull. Does the mrbs-version for Moodle 2.5 work as well on Moodle 2.6?
  • Davo
    Fri, Feb 7, 2014, 5:07 PM
    Georg - I cannot think of any reason why it wouldn't work in Moodle 2.6, but I haven't fully tested it with that version.
  • Picture of c b
    Thu, Feb 27, 2014, 9:27 PM
    I would like to limit the number of characters that can be entered in to a field ( more specifically the description box so that the names aren't too long ) Thank you
  • 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.
1 2 3
Please login to post comments