MRBS

Blocks ::: block_mrbs
Maintained by DavoDavo Smith
Based on the stand-alone MRBS project ( http://mrbs.sourceforge.net ), this allows users to book rooms and other resources from within Moodle.
Latest release:
545 sites
50 downloads
28 fans
Current versions available: 3

For a full description of this block, please see here http://docs.moodle.org/en/MRBS_block

A Moodle 1.9 version of this plugin can be downloaded directly here: https://github.com/arborrow/moodle-block_mrbs/zipball/MOODLE_19_STABLE - this is not available on Moodle.org as there would be a lot of work involved in rewriting it to pass the automated database naming checks.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Comments

  • Oliver Webb
    Wed, 15 May 2013, 10:09 PM
    Thank you, that worked perfectly.
  • Oliver Webb
    Tue, 21 May 2013, 9:33 PM
    Hi,

    Sorry to trouble you again, just finalising the block before I make it live.

    The last thing I want to do is not major - I would like the colour of the text in the bookings to be white, not black. I've searched through the code and the css to find where to change this, but haven't succeeded.

    Once again, if you could point me in the right direction I would greatly appreciate it.

    Many thanks,

    Ollie
  • Davo
    Tue, 21 May 2013, 9:36 PM
    Oliver, I'm not quite clear as to which text you are referring to.

    I suggest you open up the page in Chrome, then right-click on the element you are interested in and select 'inspect element'.

    That should give you enough information to construct a CSS rule for changing the colour of the text (I suggest you put it in your theme).
  • Oliver Webb
    Tue, 21 May 2013, 10:03 PM
    It's the actual text in the booking, so where in my last question I wanted to change it to the description rather than the user.

    I've had a look, and as far as I can tell there's no specific css relating to those cells. The only way I can change it is by changing the colour of hyperlinks in styles.css on lines 11-13, but this changes the colour for every link.

    What I'm struggling to find is the code that actually draws the cell, then I could assign some css to that.

    Hope that's clearer!

    Ollie
  • Davo
    Tue, 21 May 2013, 10:07 PM
    Oliver - day.php - line 241 (similarly in week.php, moth.php)
  • Andrew Chapman
    Tue, 16 July 2013, 10:00 AM
    We are getting PHP errors (using PHP 5.4 on Moodle 2.5) wherein "PHP deprecated: Function split() is deprecated... mrbs\import.php line 73. The function split has not been supported since PHP 5.2. This possibly causes a cascade of errors (for us), with multiple succeeding PHP errors: Trying to get property of non-object... import.php line 217.
  • Andrew Chapman
    Tue, 16 July 2013, 1:11 PM
    We traced the "Trying to get property of non-object" error in import.php line 217 to the use of the global $cfg_mrbs; line. It seems global variables are not supported in PHP 5.4, so $cfg_mrbs was not instantiated. We have got around this by altering the code of import.php to pass the global variables as parameters to the functions.
  • Davo
    Tue, 16 July 2013, 3:17 PM
    I'm not sure why you are getting the error you are getting, but it is certainly not due to global variables being unsupported in PHP 5.4 - if that were the case then the entirety of Moodle would break, as that relies on the globals $USER, $DB, $PAGE, etc. to work.

    If you've found a workaround, then I won't try to figure out what the problem is, but I'll keep an eye out in case I come across something similar in the future.
  • me
    Tue, 16 July 2013, 4:26 PM
    Hi Davo
    thanks for your rapid reply to Andrew. We have solved this issue with the workaround - but I am still puzzled as to why the variable $cfg_mrbs was creating a problem within a particular function call at line 217 - and that passing this variable as a parameter did solve the problem. In the same import.php, $DB is treated in a similar way but did not create a problem. Andrew and I are novices with PHP - but are confused by the behaviour. Are some variables declared global for moodle (eg. $USER etc) in a manner that $cfg_mrbs is not?

    Another question I have for use of MRBS - we have 300 or so staff that we need to add as MRBS_Schedulers - and clearly don't want to do this manually. Given that it is recommended and convenient to place MRBS on the front page - but as far as I can tell it is not possible to bulk upload system wide roles (via CSV) - is there an efficient way to add our teachers to this role?
    In an ideal world - we would be able to use a group in our active directory to save having to remember to add a new staff member as a scheduler on their arrival at our School.

    Kym
  • Brian Rigwald
    Fri, 23 Aug 2013, 8:25 PM
    Hello. I just installed this block to help schedule some new computer carts that our department is getting. I am assuming that I need to click on the "schedule a resource" link in order to get into more of the settings (inputting the cart names, for example), but every time I attempt to click on the link, I get a server error. According to the server logs, the error being returned is:

    [Fri Aug 23 05:13:59 2013] [error] [client 50.33.36.85] File does not exist: /home/rigwald0/public_html/SUBDOMAINS/moodle/500.shtml, referer: http://moodle.rigwald.com/
    [Fri Aug 23 05:13:59 2013] [error] [client 50.33.36.85] SoftException in Application.cpp:256: File "/home/rigwald0/public_html/SUBDOMAINS/moodle/blocks/mrbs/web/index.php" is writeable by group, referer: http://moodle.rigwald.com/

    I am not a server/it person/programmer. I am a humble teacher who has a very basic knowledge of html and has access to a free hosting server with all the bells and whistles (for free!). Any help would be greatly appreciated!

    Brian Rigwald

  • Davo
    Fri, 23 Aug 2013, 10:26 PM
    Brian - according to the error message you appear to have set the file permissions for blocks/mrbs/web/index.php to allow group members to write to the file.

    Obviously some sort of security setting on your server is objecting to this and refusing to allow the script to run until the writable permission is removed. Please contact your hosting provider if you are not sure how to fix this issue.
  • Brian Rigwald
    Sat, 24 Aug 2013, 4:11 AM
    I went in and changed the permissions and removed write abilities from group. Now it gives me a 403 error - You don't have permission to access /blocks/mrbs/web/index.php on this server.
  • Davo
    Sat, 24 Aug 2013, 6:18 AM
    Brian - I'm not sure what to suggest here. It sounds like you might have removed the read (and possibly execute) permissions as well as the write permissions (or maybe the wrong user owns the files).

    Either way, this sounds like a server/permissions configuration issue, rather than anything related to the MRBS block itself.
  • John Szkudlapski
    Mon, 26 Aug 2013, 9:08 PM
    Hi, I have installed this on a 2.4 Moodle box, but I am unable to get it to send email (I have configured the SMTP settings)

    The SMTP settings are mirrored from a working 1.9 Moodle (which is on the same physical box).... when I make a booking it says "Email Failed"
  • Davo
    Mon, 26 Aug 2013, 11:02 PM
    John - please can you check that other email sending is working (e.g. when sending someone a Moodle message)? If it is, then this may be a MRBS-specific problem (which would surprise me, as it uses the standard Moodle email-sending function). If other email sending is also broken, then this is a general issue on your site and not related to this plugin (please try posting into the 'general help' forum).
Please login to post comments