CMS integrations: MRBS Integration

CMS integrations: MRBS Integration

by Anthony Borrow -
Number of replies: 383
Picture of Core developers Picture of Plugin developers Picture of Testers
I am looking (as if I really need something more to do) at using MRBS to schedule/reserve Computer Labs at our high school; however, if possible I would like it to be integrated with Moodle so as to simplify the user interface.  I think this should be a reasonably simple process of creating a link to the MRBS system which allows authentication from an external database (namely mdl_user table).

Currently, I'm thinking of adding the link into the admin block (similar to Database for PHPMyAdmin) such that if is_teacher then show the Schedule Lab link otherwise do not show the link. This would prevent students from scheduling rooms. I would welcome any thoughts, feedback, comments, suggestions, or warnnigs. Peace.
Average of ratings: -
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by David Fountain -

I created a course with a complex enrolment key and then manually added the teachers as students, followed your lead on the authentication and it works easily.

Putting the mrbs home page as a resource, web link, works but if anyone finds the url and types it in and is a member of the site they will have access - so not perfect sad ...thinking off the top of my head, haven't tried this yet - I could put a new field in the database table and  manually make it equivalent to the moodle username (for teachers), this would keep students who used the URL out...my (lack of) knowledge of php stops me automating this part.

In reply to David Fountain

Re: CMS integrations: MRBS Integration

by David Fountain -
The above works - we have about 100 staff and usernames are fixed so it shouldn't be too much to do this for my site, but if anyone knows how to take a list of users from the database, identify which are staff and to make this new field take on the value of their username I'd like to know more...as it is I guess I'll go find a book to stick my head into to see if I can figure it out.
In reply to David Fountain

Re: CMS integrations: MRBS Integration

by charles howell -
I am VERY ineterested in this.

I have had some good programmers busting their heads trying to make a scheduling sytem to fit into moodle, with mixed success...

do you have a screenshot or a link I could follow
In reply to charles howell

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
The link for MRBS is http://sourceforge.net/projects/mrbs/ - attached is a quick screenshot that I took of the MRBS program. I have not had a chance to work on any significant integration with Moodle.
Attachment mrbs_ss.jpg
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Michael Penney -
Does MRBS support shibboleth or pubcookie? If not, one way to get to at least SSO integration could be to shibbolize MRBS or to write a pubcookie PAM for Moodle.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by shailesh kumar -
I have copied the MRBS block in to the moodle/blocks folder and followed the steps
described here (http://docs.moodle.org/en/MRBS_block). But do not got any link on the homepage for accessing mrbs block or even did not get any activity for MRBS.
It has created the required tables in the database for MRBS.

How will I access MRBS from within moodle.

Can anyone suggest me???

Thanks
In reply to charles howell

Re: CMS integrations: MRBS Integration

by David Fountain -

mrbs accessed from within moodle

This is the screenshot of my mrbs - it's not integrated within moodle just hosted and shown as a resource. The authentication uses the moodle username and password, but does require a login at this point - note that the user here is logged into moodle but not mrbs. The user logs in using the same login details as their moodle account and is authenticated against the same database, they just have to do it twice - I sell this to staff as an extra security layer, but the truth is I'm too dumb to figure out how to integrate it.tongueout

In reply to David Fountain

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I have taken a stab at integrating this with Moodle to avoid the double login and to keep students out. I am exploring a couple of ways of preventing students from being able to reserve a room. The first that I did was just a check based on the username because our student's usernames are numbers. However, this would likely not be the best solution for other users. The other way is to require that the user be a teacher of a particular course. I plan on having all of the faculty be teachers of a Moodle demo course. A third option, which I have not been able to get to work yet is that the user would have to be a teacher of the course calling the resource  - the disadvantage here is that each course would have to have a link to the resource and I would like to see the Room Scheduler on the homepage. In any case, I have renamed the files so that they end in the php extension and included the Moodle require_once(config.php) lines. I am thinking it might be good to get something started in CVS at contrib/mrbs but I'm not sure who to contact to get my SF username (arborrow) added to be able to maintain that code. At this point, I would like to start generating a wish list of integration features besides not having to login again. 
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by James Ballard -
Hi

We are also looking at the integration of this. We can get it to work as a resource with two logins but would like to integrate further.

My current idea is to make MRBS a new course format, thus potentially allowing multiple instances and hopefully simplifying authentication.

I am looking at specifying no authentication for MRBS but assigning the levels (0,1,2) according to issteacher etc. in Moodle. I would like to add the option for students to be able to book time slots for computer labs etc.

This should also include customisable language strings and CSS support.

I have attached a screenshot of my current progress to give an idea of the course format, which still allows section 0 for resources/activities/information to be added.

Let me know what you think and if it will be beneficial to try and collaborate on this.

Yours
James


Attachment course-screen.gif
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi

I am having difficulty getting the calendar to function correctly as a course format, so I took step back and worked on the integration of single sign on.

I now have MRBS running as a resource with the Moodle config included on day.php, admin.php, and edit.php.

I have then created a new session and authentication that work as follows.
  1. User name is taken as current Moodle user.
  2. Access permissions are set as follows:
  • Guest Users (if allowed) can view bookings (level 0)
  • Site administrators or creators have access to admin (level 2)
  • All other users with Moodle accounts can book (level 1)
To install: download the attached files to your MRBS directory and change to the following in config.inc.php:

$auth["session"] = "moodle";
$auth["type"] = "moodle";

Currently I haven't tested distinguishing between students and teachers because I have the resource set up on the main page in a folder that sits outside of the Moodle directory. I will have to investigate the potential for course ids to be involved as well.

I have attached the files for people to test if they can.

Anthony,
will it be possible to get your Moodle-ised MRBS files, as I have avoided duplicating that so far to see what you got.

Yours
James

PS - In my inital course format attempt I singled out a lot of the layout generation and started seperating these from actual functions. If anyone has any thoughts on the layout etc. within Moodle then feel free to post. I will try - time depending - to create customisable CSS for this, so it can be better incorporated into your Moodle theme.
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
James - For what it is worth, I attempted to post the zip file here of what I have; however, it exceeds the file size limit. So, I have posted it to http://www.jesuitcp.org/moodle/demo You should be able to login as teacher (p: teacher). The mrbs.zip file is in Demo Course 1. Let me know if you have trouble finding it.

While I like the idea of levels, it does not necessarily fit what I am looking for since I want teachers to be able to schedule but not students. My thought is to add the Meeting Scheduler link to the admin block and show it if it is a teacher. I would also like to have the MRBS authentication use Moodle's isTeacher function so the course id would have to be passed into MRBS. Peace - Anthony
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi

Thanks for the files smile

The levels I used are inherent to MRBS so changing them would mean reworking the whole MRBS authentication - MRBS defines 3 levels of access so I am assigning those based on Moodle parameters. I can add isteacher (level 1) and isstudent (level 0) to the authentication but I haven't got round to testing if it will work at course level.

Currently my MRBS sits outside of the Moodle_data and there is only one instance of MRBS.  Unfortunately there are no teachers on the main page, only admins, creators, guests and users so I started with these. I am going to alter it later this week to see if a course resource behaves differently. If it does then isteacher will also work.

Alternatively it is possible to manually add the access level of a Moodle user but that is a pain to maintain if you have more than a handful of teachers using it.

My plan to allow multiple instances is awkward unless you do an install of MRBS per course or convert it to a course format, block, or activity, which all have their difficulties. I almost have a course format working but something from /course/view.php prevents the calendar working and only the current day can be displayed. I also need to merge the databases to include a course id field.

I'll report back  when I've  run a few more tests in different areas and tidied up the multiple versions I currently have.

Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I am fine with sticking with the 3 MRBS levels. The reason why I suggested putting the MRBS link in the course admin block was to avoid having it on the Main Menu. Each teacher would see it when they went to their course. It would be a single MRBS install for all of the courses but the course id would be passed so that isTeacher could be verified for that course.

FYI - I made some minor changes to the MRBS code so that the teachers name is automatically filled in. I like the idea of pulling as much information out of Moodle into the MRBS to limit data entry. I was trying to make it a few click experience for convenience. 

Unfortunately my summer duties do not currently allow for me to spend much time on this. Hopefully in July I will be able to play some more. I am happy with how my current setup works for my site but would like to have it be more flexible and usable for others.

Peace - Anthony
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
The code for the MRBS-Moodle Integration code is now available through the Modules and Plugins database.
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On

by Stefan Ramaker -
Hello Anthony,

sorry, I can't find a entry in the database under your link.

But let me say, this is really a fantastic tool to combine with moodle, I can't wait to integrate it into my moodle plattform. Actually, I started the integration into my 1.7.1. moodle yesterday with the package you provide on your site and the MRBS_Changes.zip.

The Installation workes fine and the users (admin/username) are recignized by the MRBS. But I wasnt able to have admin-rights in the MRBS or login again to the System with my moode user/pass.

Is this one of the problems solved by the MRBS-Moodle Integration Pack you mentioned?

thanks for your work and greetings from Hamburg

Stefan

In reply to Stefan Ramaker

Re: MRBS Integration - Test Single Sign On

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Stefan - I have emailed you a copy of the latest zip file for 1.7 - there were some issues with roles on the main page (course=1) but I thought that they had been corrected. In order to have admin rights in MRBS you would need to have admin rights on the main course page.  Stephen is probably more familiar than I am with the details of this as I am just beginning to understand how roles work. If you continue to have trouble I would start by looking directly in the database for the context id of the main system and make sure that you have the role of admin assigned for that context id. Let me know if you need help doing so and I will go database diving to find some answers. Peace.
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Bhupinder Singh -

Hi James,

 

I am excited about MRBS. COuld you let me know where and how I could get information on Integrating MRBS into Moodle.

GArry

 

In reply to Bhupinder Singh

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
Hi Garry,

I guess this page is the only source of information at this time. You could try following the advice James gave in his reply to my question. smile

- Olli
In reply to Bhupinder Singh

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi Garry

As far as I am aware myself and Anthony are the only ones who have released some progress on this.

In a sense they technically don't integrate as such - the two run seperately, although you could share the same database if you like.

What we have done is made MRBS take user information from Moodle to remove the double log in scenario - now if you are logged into Moodle you are logged into MRBS and authentication for MRBS is based on your user status in Moodle (e.g. if you are an admin on Moodle you are an admin in MRBS). This allows you to use MRBS as a resource within Moodle, which is what we wanted.

As part of this Anthony converted all the MRBS files to PHP form and added the Moodle includes. That is the version I have provided a link to below.

Further details on installing MRBS can be found at:
http://mrbs.sourceforge.net/INSTALL.html

Hope that helps

Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
Hi James,
I've installed your zip package in the same directory as moodle:

webroot/
 -moodle/
 -mrbs/
  -auth_moodle.inc
  -session_moodle.inc

Then I put include_once("../moodle/config.php"); in the beginning of day.php, edit_entry.php (there is no edit.php?)  and admin.php

$auth["session"] = "moodle";
$auth["type"] = "moodle";

As a result, mrbs only gives empty pages anywhere.

If I use $auth["session"] = "php"; I get a working mrbs on those pages where I haven't included moodle's config (week.php). Otherwise, it's all blank. Any thoughts?

The idea for me is to use rmbs as an exam reservation system for moodle so that students could reserve exams in advance and then go to a special computer where it's allowed to do exams. mrbs would then check if that student has a reservation at that time and if so, would show her/him just that exam.
In reply to Olli Savolainen

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi

I've since used Anthony's conversion of MRBS to PHP pages along with the authentication I mentioned and have included this all in the following:

www.barkingcollege.ac.uk/cw/moodle/mrbs_moodle.zip

If you alter the config.inc.php file to suit your settings it should all work. I am using 1.6 but am unaware of any conflicts it would cause 1.5.

I place the MRBS folder within the Moodle directory and then link to it as a weblink resource from either a course page or the main page. User information should then be taken from that particular page so you can use the same MRBS tables across multiple Moodle courses.

Alternatively if you download Anthony's version I think that one uses the Moodle DB for authentication whereas mine uses the global $USER variable from the session. I am not sure what difference the two make.

In the auth_moodle.php file you can alter the levels of access for different users.

Hope that helps

Yours
James

In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
I'm using 1.6 too so I guess it should be okay.

I see you've included the entire mrbs in the package. The problem with this approach is that I've no way of knowing which files have been changed (though I guess I could try to run diff or sth) - I work for a university so I need to be sure of the integrity of the code as well as about the possibilities to upgrade should there be a new version of mrbs (or moodle, for that matter). Also, we have our own customizations to make to rmbs as well so things seem to get out of hand pretty quickly :P. So could you tell me what's actually changed. Thanks smile.

Gonna try your version now anyway.  smile
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
Seems to work! smile thank you. Will have to work on it - I'm planning to make major modifications to rmbs though so I'd still appreciate if you could tell me the steps of mrbs modification, at least approximately, so I could keep track of what actually has been changed.

in at least edit_entry.php at least if I:
  • open mrbs
  • click an entry to edit it (says I can't since not logged in)
  • in another window log in as student in moodle
  • reload the edit_entry page
it gives "Coding error: isteacher() should not be used without a valid course id as argument. Please notify the developer for this module." right at the top of the page.

This got me a lot forward in my work, so thank you again muchly smile!
In reply to Olli Savolainen

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi

The problem arises because you shouldn't be accessing MRBS directly but through Moodle - unfortunately I didn't get that far - I did try restricting the page to force logins but it didn't work.

Regarding the changes from MRBS standard:

  • All pages were renamed to have a .php or .htm ending instead of .inc as original.
  • All pages include the Moodle config.php file via require_once
  • Some of the language strings were altered to reflect different nature of rooms (e.g. internal/external booking is now class/non-class)
  • Username is automatically filled into form - I am looking at making this a hidden field when I get time so that we can track who made bookings.
  • print_header function in functions.php is changed to print_header_mrbs to avoid conflict with Moodle's print_header function and subsequent pages are modified to reflect this
  • auth_moodle and session_moodle are new files
It wouldn't take long to get a new install of MRBS working if you need to.

I also started work on making room booking a course format, which would give it greater flexibility as a Moodle integration and allow multiple instance but I had difficulties with the calendar and a couple of smaller issues to iron out. I may pick this up again when I have time after sorting out our 1.6 upgrades.

Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
Thank you! smile. The automatic filling of username will probably suit me as well.

A course format would be great, too - if we could completely deny users access to mrbs directly. It would probably also make it easier to make the outlook of mrbs more compliant with moodle, and also the CSS could be integrated. It would probably be smart to cooperate with the original MRBS project since the changes you have are so small, so as to build the original one to work with moodle effortlessly. I can imagine that this could be required by wider audiences, too.

Though for my need, I'll probably need to edit mrbs a _lot_ to make it more wizard-like. The current system doesn't have all the fields we need and the UI is also too complicated for novice users.
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Olli Savolainen -
Hi James,

Update: I commented out the following in in auth_moodle.php, and as actually in my project we probably won't need teachers of specific courses to have any rights to the system anyway, it's pretty ok - - though I still don't perfectly understand what the problem is/was.

    // Set access level for teachers, if at course level
/*    if (isteacher()) {
        return 1;
    }*/

I'm in fact trying to extend mrbs to an extent - the database is OK but a new interface is required. Thus, I've made a new php file which works along the lines of week.php or edit_entry.php. 

Now, although in MRBS isteacher() only gives the error in the screnario described above, in any file created by me I get it however I access the file, even if it's a resource on moodle and displayed in a frameset: "Coding error: isteacher() should not be used without a valid course id as argument. Please notify the developer for this module error". The only exception is that

Also, that error being displayed seems to cripple IE in some cases so that it displays nothing but that error on the page.

Any thoughts? Thank you. smile

test source:

<?php //error_reporting(E_ALL);
header("Content-type: text/html; charset=utf-8");
require_once('grab_globals.inc.php');
include "config.inc.php";
include "mrbs_auth.php";
if(!getAuthorised(1))
{
        showAccessDenied($day, $month, $year, $area);
        exit;
}
?>

we are in!


the result:

<HTML><HEAD></HEAD>

<BODY>

<DIV class=notifyproblem align=center>Coding error: isteacher()
should not be used without a valid course id as argument. Please
notify the developer for this module.</DIV><BR>
we are in!</BODY></HTML>

Update: I commented out the following in in auth_moodle.php, and as actually in my project we probably won't need teachers of specific courses to have any rights to the system anyway, it's pretty ok.


    // Set access level for teachers, if at course level
/*    if (isteacher()) {
        return 1;
    }*/
   

In reply to Olli Savolainen

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Bhupinder Singh -

Hi James,

I have installed MRBS . It works all thanks to your suggestions above.

I have had to do the following:

Set parameter  $unicode_encoding = 0  The value has been changed from 1.

A LITTLE HELP REQ.:

For the integration of Moodle with MRBS with with the Moodle_MRBS Download which has been graciously provided on the site.

Where is the integration to be placed . Under moodle at the Moodle Direcory?

Under Mod or any other place.

Any precautions that you suggest.

After the integration how does the single sign implemented/ work??

Thanks in advance.

Garry

In reply to Bhupinder Singh

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by James Ballard -
Hi Garry

Place the MRBS folder in the main Moodle directory rather than a subdirectory, otherwise you will need to change the require_once to reflect the new relative location of the config.php file.

We haven't noticed any problems, although I would not say it is a full integration and more of a workaround to remove a second login.

The basic idea behind the single sign-on is to take the user data from the PHP Moodle session and authenticate against that user's permissions in Moodle. This will depend on where you link to MRBS from so that if you link from the main page all users are considered students and there are no teachers, whereas a link from a course page can allow teachers to be given different access to students.

Hope that helps
Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Bhupinder Singh -

Hello James and Anthony,

I have installed the mrbs in the moodle directory. But I am not sure how a single log in will work.

I have copied the files from the zip into MRBS folder The link works and the mrbs opens but anyone can open it.

How to ensure that only limited users can open it.

 

Any ideas.

Garry

 

 

In reply to Bhupinder Singh

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers

I will update the zip on the demo site. There are 2 files to customize for your site. The first is the /web/config.inc.php to setup the db host, username, and password variables.

The second file is the /web/auth_db_ext.php file. There is a line in the authGetUserLevel($user, $lev1_admin) function that is hard coded with the course id of the course in which I use to distinguish teachers from students (I enroll all of the teachers into some type of faculty page) This will be able to be changed once 1.7 comes out and we can use the role of teacher. In the meantime, while not elegant - this has provided me with the functionality needed.

//hard coded course id (1492) for faculty (all faculty members who can schedule a room are teachers of this course)

if ( (!isset($user)) or (!isteacher(1492,$USER->id)) )

the 1492 should be changed to the course id of the course you want to use for such purposes.

From there it is just a matter of creating a link to the /mrbs/web/index.php file. Let me know if you have any questions or have any other problems.

Peace - Anthony

In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Bhupinder Singh -

Anthony,

Thanks for reply.

Well I tried but failed.

It appaers that I am doing something wrong. Could you put put up the file with the changes so that I could replicate the same??

Thanks

Garry

In reply to Bhupinder Singh

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I have updated the zip file on http://www.jesuitcp.org/moodle/demo/ so that you should be able to download that file which is a copy from my production server. Let me know what problems you are having and I will see if I might be able to walk you through it. If you were to write up the steps you take for installation it could be useful to have in case others want to take advantage of this integration. Peace. 
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Ger Tielemans -
Works great with 1.6.1 under Suse:
  • I added some include config/require logins on several pages, so it is now only accesible from Moodle.
  • I added if isteacherinanycourse { } to let the teachers do the reservations and the students do the lookup
   I love the simplicity, thanks:

One question: on this moment only the admin can set the specs for the rooms and the building and overrule a reservation. How can I give this right also to our local coursecreators?
In reply to Ger Tielemans

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by James Ballard -
Hi

I believe there is an iscreator function that can be run alongside the isadmin like:

if (isadmin() || iscreator()) {...} where MRBS level is set

Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Ger Tielemans -
creators already have admin rights blush
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Julian Ridden -
Hi Anthony.

Any news on updating this for 1.7 roles yet?

Julian
In reply to Julian Ridden

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Julian - I have not had a chance to play with it; however, it appears that Stephen did and while I have not tested it myself, I am grateful for his work which you can find at http://moodle.org/mod/forum/discuss.php?d=38604#p300682

I also want to look at the latest release which is now at 1.2.5 and see what has changed. I am not sure when I will actually have a significant amount of time to dedicate to this. I may have to wait until the end of the school year for things to settle down.
In reply to Anthony Borrow

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Julian Ridden -
Whatever time you have is very much appreciated.

P.S. I just moved to a Jesuit College here in Sydney. So howdy from Down Under smile
In reply to Julian Ridden

Re: MRBS Integration - Test Single Sign On-MOODLE 1.6

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Julian - I am glad to hear that you are part of the Ignatian family. I am hoping to give a presentation this summer here in the US on Why Moodle is Ignatian. I believe there is some exciting possibilities for increased collaboration between the Jesuit schools with Moodle 1.8's MoodleNets. I hope that you have a smooth transition from your recent move. Peace.
In reply to Olli Savolainen

Re: MRBS Integration - Test Single Sign On

by James Ballard -
Hi

I had noticed something similar but it was working Ok so I didn't touch it. I believe isteacher should contain an argument such as:

isteacher($course->id)

or

$course = get_record('course', 'id', $this->instance->pageid);
if (isteacher($this->instance->pageid))

I tried the former of these and it generated an error for isteacher but not isstudent, and I am wondering if ids are being carried across pages correctly in MRBS or whether it starts using it's own system and loses the Moodle course ids, which is quite likely.

Yours
James
In reply to James Ballard

Re: MRBS Integration - Test Single Sign On

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
James - I believe that the session should be php. I get errors when I change it to moodle. I believe the line should remain $auth["session"] = "php";
In reply to Anthony Borrow

Does MRBS let you set limits on numbers of attendees?

by Michael Penney -
We have an old, really bad, Postnuke based registration system/room booking system, which does let you register rooms for events and set limits on numbers of registrants. Can MRBS do something like this?
In reply to Michael Penney

Re: Does MRBS let you set limits on numbers of attendees?

by Olli Savolainen -
MRBS does have a field for defining the number of people in a room, but it seems that it isn't capable of having multiple reservations for the same room simultaneously. For this you would have to "fake it": MRBS does have a concept "area" which contains rooms - you could eidt the language file and call "areas" -> "rooms" and "rooms" -> "chairs" or something, and then let people reserve chairs.

It's not the same though, I know.
In reply to Olli Savolainen

Re: Does MRBS let you set limits on numbers of attendees?

by Ger Tielemans -
For chair reservation inside a room you can use the module reservation or the choice modul with limit set to your wished max.
In reply to Michael Penney

Re: Does MRBS let you set limits on numbers of attendees?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
AFAIK, the answer to your question is not really since MRBS does not track who is attending. It does allow for the capacity of a room to be defined but that information from what I can tell is not utilized. As indicated you could switch it up a little and assign seats to accomplish what you are looking for; however that does not seem to be ideal.  Or you could then do an additional choice and have folks signup using the capacity number to limit the number of respondents to a given choice. Peace.
In reply to Anthony Borrow

Ang: MRBS Integration

by Jens Gammelgaard -
Picture of Translators
Hi,

I am trying to implement Anthony's version in 1.61+ - I am getting these error even though the files are there:

Warning: main(lang.da): failed to open stream: No such file or directory in /home/myaccount/public_html/moodle/mrbs/web/language.php on line 141

Warning: main(lang.da): failed to open stream: No such file or directory in /home/myaccount/public_html/moodle/mrbs/web/language.php on line 141

Warning: main(): Failed opening 'lang.da' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myaccount/public_html/moodle/mrbs/web/language.php on line 141

Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/moodle/mrbs/web/language.php:141) in /home/myaccount/public_html/moodle/mrbs/web/index.php on line 47

Can you please help me to the next step there?

smile Thank you!
In reply to Jens Gammelgaard

Re: Ang: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I vaguely remember running in to this - I will have to search my brain and get back to you but I wanted you to know that I did read the post. I'm in the midst of a busy semester and have not had much chance to sit down with code but I do have the MRBS integration working on my production server and would be happy to send you the files. Feel free to send me an email and I will zip them and send them to you. Peace.
In reply to Anthony Borrow

Moodle to MRBS i18n code

by Olli Savolainen -
Hi,

I needed for our application to use the moodle language menu in our MRBS based application, so created the below little snippet of code. It's Public Domain, do as you please.


<?php
/*
 * moodle_lang_to_mrbs.php
 * Olli Savolainen
 *
 * Based on
 * 1. if not empty, the language selected on the current page (GET param), else:
 * 2. if not empty, $moodle_curlang, else:
 * 2. if not empty, moodle session user language, else:
 * 3. moodle site default language
 * sets the language both in the moodle user language settings
 * (session and if $modify_user_preferred_lang===true, also
 * in the user preferences in moodle database)
 * and for mrbs for the current page ($override_locale and
 * $default_language_tokens).
 *
 * This means that you can have the moodle language menu, but still use
 * the mrbs i18n and its simple language files to allow users to switch languages.
 * After executing the below code, the mrbs function get_vocab() should
 * return strings in the selected language.
 *
 * Requires access to moodle functions, that is, moodle's config.php
 * has to be included/required before this code is executed. The
 * code here should be executed before including/requiring mrbs's
 * config file, and the lines, which set $override_locale and
 * $default_language_tokens should be commented out in that file.
 * Assumes mrbs charset is utf-8. You will probably need to comment out
 * $override_locale and $default_language_tokens lines in mrbs/config.inc.php.
 *
 * Only calls moodle library functions in addition to PHP's,
 * and uses only moodle's globals.
 */

require_once("config.php");
require_once "./mrbs/grab_globals.inc.php";
require_once "./mrbs/config.inc.php";
require_once "./mrbs/functions.php";
require_once "./mrbs/$dbsys.php";
require_once "./mrbs/mrbs_auth.php";

//print_r($CFG);
$modify_user_preferred_lang=true;
$langs_check_arr=(get_list_of_languages());
$moodle_curlang=current_language();
if(!empty($_GET['lang']) && isset($langs_check_arr[$_GET['lang']])){
    $langstring=$_GET['lang'];
    if(!(isset($USER->username) == FALSE)){
        $langstring=$_SESSION['USER']->lang=$_GET['lang'];
        if ($modify_user_preferred_lang){
            set_field('user', 'lang', $_GET['lang'], '', '');
        }
    }
}else if(!empty($moodle_curlang)){
    $langstring=$moodle_curlang;
}
else if(!empty($_SESSION['USER']->lang)){
    $langstring=$_SESSION['USER']->lang;
}
else if(!empty($CFG->lang)){
    $langstring=$CFG->lang;
}
else{
    exit("No language selection could be retrieved. Check your moodle installation.");
}
$override_locale = $langstring[0].$langstring[1]."_";
$default_language_tokens = $langstring[0].$langstring[1];
if (ereg ("([a-z]{2})_([a-z]{2})_utf8", $langstring, $regs)) {
   $override_locale .=strtoupper($regs[2]);
$default_language_tokens.="-".$regs[2];
}else{
    $override_locale .=strtoupper($langstring[0].$langstring[1]);
}     
$override_locale .= ".utf8";

/* End of language setting, print the moodle language menu.
 * You will probably want to move the following somewhere else in your
 * output, or assign it to a smarty var, but just for demonstration.
*/
/*

if (empty($CFG->langmenu)) {
    $langmenu = "";
} else {
    $currlang = current_language();
    $langs    = get_list_of_languages();
    $langmenu = popup_form ($page_constants->menu_http_path."?lang=", $langs, "chooselang", $currlang, "", "", "", true);
}

echo $langmenu;
*/
?>
In reply to Olli Savolainen

Re: Moodle to MRBS i18n code

by John Szkudlapski -

I got this running (thanks for all the advice above), now im having a strange problem.

I have set both Area Admins and Room admins, but when a client books a room, the Area/Room admin do not recive an e-mail.

However , if the client delete's the booking, they are sent an e-mail.

Below are my settings;

###############################################

# Email settings

###############################################

define ("MAIL_ADMIN_ON_BOOKINGS", TRUE);

define ("MAIL_AREA_ADMIN_ON_BOOKINGS", TRUE);

define ("MAIL_ROOM_ADMIN_ON_BOOKINGS", TRUE);

define ("MAIL_ADMIN_ON_DELETE", TRUE);

define ("MAIL_ADMIN_ALL", TRUE);

define ("MAIL_DETAILS", TRUE);

define ("MAIL_BOOKER", TRUE);

define ("MAIL_DOMAIN", 'bsfc.ac.uk');

define ("MAIL_USERNAME_SUFFIX", '');

define ("MAIL_ADMIN_BACKEND", "mail");

#****************************

# Miscellaneous settings

define ("MAIL_ADMIN_LANG", 'en');

define ("MAIL_FROM", $mrbs_admin_email);

define ("MAIL_RECIPIENTS", $mrbs_admin_email);

define ("MAIL_CC", '');

$mail["subject"] = "BSFC E-Booking Entry/Modification";

$mail["subject_delete"] = "BSFC E-Booking Entry deleted";

 $mail["new_entry"] = "A new entry has been booked, here are the details:"; $mail["changed_entry"] = "An entry has been modified, here are the details:"; $mail["deleted_entry"] = "An entry has been deleted, here are the details:";

Could anyone offer up an idea as to why when a booking is made, the area/room admin do not get an e-mail, but when a booking is deleted they do get an e-mail

does it matter that our vle is on vle.bsfc.ac.uk domain and our mail is on the root on the domain bsfc.ac.uk

if not please feel free to tell me to go away.

Cheers

In reply to John Szkudlapski

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I vaguely remember reading something about some confusion/problems with emails getting sent from MRBS in their mailing list. You may want to check out what has been said there by going to http://sourceforge.net/mailarchive/forum.php?forum=mrbs-general
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Genner Cerna -
is MRBS capatible with moodle 1.7+ and 1.8?

This application is very interesting hope someone will reply?
In reply to Genner Cerna

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I have not tried it with 1.7+ or 1.8beta - perhaps I will have some time today to play with it. Off the top of my head I do not see a reason why it would not work but I am just starting to get my head around roles. Basically the MRBS is just a resource with some customized code in MRBS to use the Moodle user login information. Peace.
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
MRBS does work nicely with Moodle 1.7, but I haven't tested it with Moodle 1.8.
I had modified it for my local installation to work with the new roles and capabilities included in Moodle 1.7+.

Attached is a zip file with the changes.

There are two parts.

1. Is an updated copy of auth_moodle.php from the MRBS integration. This copy works with 3 Moodle defined roles.

mrbs:administermrbs - Allows the user to have administrator rights to the MRBS installation

mrbs:editmrbs - Allow the user to edit content in the MRBS installation

mrbs:viewmrbs - Allow the user to view the MRBS installation (If the user does not have at least this level of access, the MRBS block does not show up)

These permissions need to be assigned at the site level not the course level.

2. A Moodle block used to add the capabilities to the define roles page.
There is 1 bug with the block however. It will not work correctly until you configure it from the administration page. The block is designed to only appear on the front page and the MyMoodle pages.

The idea behind these changes was to allow for me to assign editing or administrator rights to specific users while allowing other users read-only access.

I hope you find this useful

-Steve
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Steve - Thanks for your contribution. I will take a look at your changes as I move toward updating it for 1.8. I am still working on getting my head around roles so I really appreciate your initiative and sharing of these updates. Peace - Anthony
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I find this most helpful as you describe it. I am thinking that I would like for the student role to inherit the mrbs:viewmrbs capability, and the teacher to inherit the mrbs:editmrbs, and the admin role to inherit the mrbs:administermrbs capability.
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
This is actually aready being done. If you look at the access.php file for the block it is assigning permissions as follows:

mrbs:viewmrbs - granted to: student, teacher, editingteacher, coursecreator, and admin

mrbs:editmrbs - granted to: teacher, editingteacher, coursecreator, and admin

mrbs:administermrbs - granted to: admin

These capabilities are assigned using the "CONTEXT_SYSTEM" which is site level. You may need to change the context used to another context (such as CONTEXT_COURSE) to make this more usable. (There were issues with Moodle 1.7 assigning users the student or teacher roles on the site level.)

-Steve
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I think we probably should think this through a little about where to handle the access but I must say you have done a wonderful job of integrating with Moodle roles. Initial testing in 1.8 is great! I will probably create roles for MRBS_Admin, MRBS_Teacher, and MRBS_Student and assign the various MRBS capabilities to them. Reason being that I do not want all teachers to be able to post to the Main page. We reserve that as an administrative function. I don't want to bump the access down to the course level contexts because then (if I understand roles correctly) any teacher of any course would be able to edit entries and we have some students who serve as teachers of clubs although I could create a moderator role for them at the course level.

As for installation I thought it was pretty straight forward. After I copied the auth_moodle.php file to the /mrbs/web directory the only problem I had was that I needed to require ../../config.php because I had to go up an additional level because I kept the files as they were in MRBS (i.e. /mrbs/web). I think we should probably just go ahead and rename the web directory mrbs and place that immediately under the Moodle root.

Thanks again for a wonderful contribution! I am going to repackage the whole thing with your included files and use that as the 1.7 and 1.8 download version.
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Stephen - I am still confused about roles and how this gets implemented on a practical level. I am wondering if we might not create some documentation for this. Just a simple step by step approach to create a teacher. I went in and did not see where the mrbs capabilities were. How do I assign those to a role? Ideally, I am thinking that the best place for this might be to assign it to the Resource Scheduling Block. That way an admin could assign the admin role to that block and it would give admin access to MRBS, similarly for teacher and student roles. I think that the block gives us a nice context to work with.

Another thing that I was not able to do was to assign the URL within the block - it did not seem to retrieve. I noticed that in the config_global.html file it references $CFG->block_mrbs_serverpath; however, in the mdl_config table there is a record with the name of block_mrbs. I suspect that these should be the same. I changed the references in config_global.html and /blocks/mrbs/block_mrbs.php to reference what was in the database; however, we can append server_path if you think that would be cleaner and should we want/need to add other variables.

Peace - Anthony
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
>>Another thing that I was not able to do was to assign the URL within the block - it did not seem to retrieve.

There was a typo on line 6 of config_global.html.

The line
<input name="block_mrbs" type="text" size="38" value="<?php

should have been

<input name="block_mrbs_serverpath" type="text" size="38" value="<?php

It's fixed in the updated zip file I posted in my other reply

>> I went in and did not see where the mrbs capabilities were. How do I assign those to a role?

The Roles are assigned under Administration -> Users -> Permissions -> Define Roles

There should be a section called "Resource Scheduling" It will appear just above the RSS Client section. See the attached screenshot.


Attachment mrbs_roles.png
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I'm afraid that I do not see the capabilities listed with the installation in Moodle 1.8. Let me try 1.7 and see if it is different.
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Stephen - Where ought the access.php file go? Is this to be added to the \lib\db\access.php file?
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
The access.php file is called as part of the install process of the block. The basic structure of the block is as follows:

In the blocks/mrbs folder there should be the following files:
block_mrbs.php
config_global.html
DB
Lang

The language file can either remain at blocks/mrbs/Lang/en_utf8/block_mrbs.php or you can move it to the Moodle lang directory. It will find it at either location.

The DB folder should contain the following files.
access.php
mysql.php
mysql.sql

Just unzip the attached file into your moodle/blocks folder and everything should work (hopefully)
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Julian Ridden -

I have installed your code into 1.8 and the block installs and displaysd correctly.

I do not however have the ability to see resource scheduling in the roles are as you described above. Any ideas?

In reply to Julian Ridden

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
That's bizarre, I just checked the code here on my 1.8 install and it seems to be OK

Can you check in your database for the table mdl_capabilities and look to see if you have the following 3 entries:

Attachment database.png
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I checked the database and the entries are not there. I went ahead and deleted the block and then went to /admin/ where it said that the resource scheduling tables had been created; however, again the records were not there. I will continue to investigate. Peace - Anthony

p.s. - I would like to make sure that the /block/mrbs/db folder is lowercase - in your zip it is uppercase. Also, the mysql.sql file seems to be empty. Might this explain the lack of records? And while I am thinking about it, since the block can setup some things it would be ideal if we tested to see if the mrbs tables were created and if not go ahead and create them. This would make for an easier install.
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
The records for the roles are created by the access.php file. I had used the RSS Client block as the model.

The mysql.sql file is empty because I wasn't creating any DB tables. The only DB table I ended up using was added to mdl_config.

I do like the option of creating the MRBS tables using the block. I'm not quite sure how to do that however. My current install is using a seperate MRBS database.
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
>>I would like to make sure that the /block/mrbs/db folder is lowercase - in your zip it is uppercase.

I built the block for a windows 2003 server. MS Windows doesn't seem to care if the folder is uppercase or lowercase. I'm wondering if that is the issue. if you change the folder to lowercase and re-install the block, does that fix it?
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
OK - I deleted the block, double checked to make sure all of the files were properly named with lowercase, and re-installed. Happily, everything seemed to create just fine. I have added the contents of the tables.my.sql file from mrbs to mysql.sql and on install it creates the mrbs_ tables in the Moodle database. If the mrbs tables already exist it will produce a warning error that the tables already exist but users can just ignore that and continue. I will repackage this block and update the zip files.

Just to make sure that I understand how the roles work, you users to the student, teacher, and admin roles of the Resource Scheduling block to give them the appropriate access to the MRBS calendar. I ask because when I logged in (actually login not through Moodle's login as) the student account was not able to see the block.

p.s. I updated the MRBS4Moodle17.zip file to include the updated mysql.sql - AFAIK this should work nicely for a clean install. Thanks again to Stephen for his help in greatly improving this integration.
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
As long as the user has the one of the three moodle roles assigned to them they will have access to the block.

The block is hidden if they do not have at least the role mrbs:viewmrbs assigned to their account in moodle

This block was designed this way because I wanted the teachers to be able to view the schedules but only allow a few users to actually perform the scheduling. Students were not to see the schedules.

(For example I didn't want teacher who were not trained on how to use our mobile computer labs, to be able to schedule the mobile computer labs. Once the teacher was trained, I could give them the ability to schedule the labs)

By default the Moodle Guest users (members of the role "guest") do not have the privlidge mrbs:viewmrbs, so the block is hidden. If you want these users to view the block, you will have to give that role access by adding the mrbs:viewmrbs capability (Admin-> users->permissions-> define roles)

You can change this behavior of the block by modifying the if statement on line 25 of the block_mrbs.php file (This is the line that hides the block for users who don't have the appropriate capabilities)


In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Julian Ridden -

OK, changing to lower case fixed the issue. Our linux servers are alot more specific than the windows boxes.

New question.

I notice that the block is designed to work on 'site' alocated roles. The issue I have with this is that when I assign teacher at the site level, they are given teacher access on every course which goes against our current model.

I would like it so that the block picks up the permissions from the course it is in. Now I have allready adjusted the block to make it available in courses, but I dont knwo where to start to have it loko at the course permissions.

Any ideas?

In reply to Julian Ridden

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Julian - I am just beginning to understand the whole context-role-capability model. My guess at this point is that we would need to change the contextlevel to the course level rather than the current value of 10. I'm still not clear what changing the contextlevel does - I know it is described in the docs but I don't have enough hands on experience that I feel like I really understand it. What would happen to the behavior if you changed the mdl_capabilities for the mrbs block to have a contextlevel of 50 instead of 10? Currently, to get students to see the block what is your procedure for assigning the student role? Does the block look to see if the person is a student of the front page? That is my current understanding. Likewise they would need to be teacher of the front page. What would happen if we changed the contextlevel to 80 and had a block on the main page? How would the role definition be done there to gain the mrbs functionality that we are striving for? Could each teacher then create separate blocks in their courses and if so would/could they add their own list of students? Below are the various contextlevels - now we just need to figure out to do with them and how to use them. This is one of the reasons why I love Moodle - there is always more to learn! Peace - Anthony

00025: // context definitions
00026: define('CONTEXT_SYSTEM', 10);
00027: define('CONTEXT_PERSONAL', 20);
00028: define('CONTEXT_USER', 30);
00029: define('CONTEXT_COURSECAT', 40);
00030: define('CONTEXT_COURSE', 50);
00031: define('CONTEXT_GROUP', 60);
00032: define('CONTEXT_MODULE', 70);
00033: define('CONTEXT_BLOCK', 80);
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
>> What would happen to the behavior if you changed the mdl_capabilities for the mrbs block to have a contextlevel of 50 instead of 10?

Changing the roles behavior of the block is the easy part...
look at line 21 and line 22 of block_mrbs.php.

The code is there it is just commented out.

The problem I ran into was trying to the the mrbs/auth_moodle.php file to recognise the lower contexts. that's why I went with CONTEXT_SYSTEM.

You'e welcome to take a look at it. You would just need to adjust line 67 of auth_moodle.php

>>Could each teacher then create separate blocks in their courses and if so would/could they add their own list of students?

I'm not entirely sure how this would work. Wouldn't this require more than 1 MRBS install otherwise anyone assigned to the "student" role would be able to work with the sites MRBS install.

In reply to Julian Ridden

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers

>>I notice that the block is designed to work on 'site' alocated roles. The issue I have with this is that when I assign teacher at the site level, they are given teacher access on every course which goes against our current model.

I had encountered the same problem while I was building the block. The simplest work around is to create a new role called "MRBS_Editor" or something like that and give that role the capability "block/mrbs:editmrbs". Just leave all of the other capabilities at "inherit"

Finally just assign this role (on the site level) to the people who you want to be able to edit the MRBS install. (Users can have more than 1 role assigned to them)

On my current installation I have 3 site wide roles defined for MRBS:

MRBS_Viewer which is set to:
block/mrbs:viewmrbs - Allow
block/mrbs:editmrbs - Inherit
block/mrbs:administermrbs - Inherit

MRBS_Scheduler which is set to:
block/mrbs:viewmrbs - Allow
block/mrbs:editmrbs - Allow
block/mrbs:administermrbs - Inherit

MRBS_Admin which is set to:
block/mrbs:viewmrbs - Allow
block/mrbs:editmrbs - Allow
block/mrbs:administermrbs - Allow

I just assign these as needed to users on the site level.

In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Stephen - I agree that the MRBS roles makes the most sense to me and keeping it on the site level keeps it simple. Last night I was toying with auth_moodle.php but was not able to get the results I wanted. For now, I am going to leave well enough alone and implement it the way you have described above. Peace - Anthony.
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Finally just assign this role (on the site level) to the people who you want to be able to edit the MRBS install. (Users can have more than 1 role assigned to them)

I was able to do this by going to /admin/roles/assign.php?contextid=1 ; however, I did not see a GUI way of getting to this. Is there a manage roles icon for the main page?
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
>>Is there a manage roles icon for the main page?

Yes,
Site Administration Block, Users-> Permissions->Assign Roles
Then just click on the name of the Role
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Steve,

You said These capabilities are assigned using the "CONTEXT_SYSTEM" which is site level. You may need to change the context used to another context (such as CONTEXT_COURSE) to make this more usable. (There were issues with Moodle 1.7 assigning users the student or teacher roles on the site level.)

I am wondering what the best default contextlevel is for most users. I want all of my teachers to be able to schedule one of our computer labs. I want the students to be able to view the calendar in case they need to lookup if their teacher is going to be in a computer lab. I want admin users to be able to administer the site. I'm just not sure how the various contextlevels work. I do not want to make all of the teachers a teacher of the main site page - that is reserved for our administrators and Moodle admins. Since you seem to have a functional understanding of these things might you be willing to explain how it would be behave with various contextlevels. Is it simply a matter of changing the contextlevel value in the mdl_capabilities table? I really need to do some more reading on roles so that I understand them better.

Peace - Anthony

p.s. Thanks for your patience with my questions. I'm very pleased with this block and feel that once we get this last piece worked out I would feel comfortable checking it in to CVS contrib under blocks. Also, I switch the table creates in the mysql.sql to create if not exists mrbs_table so that there would be no error if the table already existed or gets moved into the database from an external one. This allows the capabilities to be added regardless of whether the table exists.
In reply to Anthony Borrow

Re: Moodle to MRBS i18n code

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
My post above explains why I had used the system context and not the course context for the integration.

As for how to set up the scenraio you describe above, I would look at doing the following:

For teachers:
Create a new site wide role "MRBS_Scheduler" and give it the following capabilities:
block/mrbs:viewmrbs - Allow
block/mrbs:editmrbs - Allow
block/mrbs:administermrbs - Inherit

Leave everything else to "Inherit". Assign all of your teachers to this role on the site level

For the Students:
Modify the default user role: "Authenticated User"
and add to it the capability:
block/mrbs:viewmrbs - Allow

(Authenticated user is specific to moodle 1.8, moodle 1.7 uses the guest role for everyone who is logged into the site)

The default user role is assigned under administration > Users > permissions>user policies
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Stephen - I am considering moving the /mrbs folder under /blocks/mrbs/mrbs. My only concern is that the double mrbs may be confusing and perhaps it would be best to have a different name. We could still allow for the server_path to be set to something else but by default it would by $CFG->wwwroot/blocks/mrbs/mrbs/index.php The advantage to doing this is that from my perspective everything would then be in the block. I would move /lang back under block as well. Once everything is in block then I can work on uploading it to CVS contrib. Let know me what you think. Thanks - Anthony
In reply to Anthony Borrow

Re: MRBS for Moodle now in CVS

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
OK - I opted to follow the original mrbs naming of the folder containing the mrbs code (i.e. web). So the path to the resource scheduler should be http://mymoodlesite.com/blocks/mrbs/web. I think I am willing to give this CVS thing a shot - wish me luck. I have uploaded a copy of the MRBS block to CVS which should work for Moodle 1.7 and Moodle 1.8. The MRBS block is located at http://moodle.cvs.sourceforge.net/moodle/contrib/plugins/blocks/mrbs/ Please feel free to test it and report any problems to me at arborrow@jesuits.net. It is now designed to be a simple installation. Copy the files, goto the admin page and allow the mrbs tables to be created, and it should work. I am open to any suggestions for improvement.
In reply to Anthony Borrow

Re: MRBS for Moodle now in CVS

by Sayeesh S -
Hello,
I was just testing the MRBS plugin with my new Moodle 1.8 installation. The installation went on well but I am getting a blank screen when I click on the MRBS block's link.
For your info, I am using xampp v1.6.1
I made a small changes to the MRBS config.inc.php and index.php files. As the directory structure of MRBS was different, I made the following changes to access moodle's 'config.php' file.
I changed the line: require_once("../config.php");
to: require_once("../../../config.php");
in both the files. Now I started getting a blank screen. Please help me fix this issue.
Thank you in advance.
In reply to Sayeesh S

Re: MRBS for Moodle now in CVS

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Sayeesh - Yes, I discovered this when I was upgrading to 1.8 as well but I did not have time to fix it in CVS before leaving town. I had decided to move the files from directly under the Moodle dirroot to within blocks so that it is completely self-contained. As a result, all of the files in /blocks/mrbs/web/ need to have the require_once("../config.php"); replaced with require_once("../../../config.php"); It should then work. I will correct this in CVS when I return to Dallas around June 10th. Do you have a program that will search and replace in all of the files in that directory? I have used WinGrep but any editor with multi-file search and replace should work fine. Peace - Anthony
In reply to Anthony Borrow

Re: MRBS for Moodle now in CVS

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Sayeesh - OK, I made it back to my office and finally got a chance to look at this. It looks like I had CVS correct but needed to update my zip files which are linked to from the Modules and plugins page. Let me know if you experience any further problems or have any questions. Peace.
In reply to Anthony Borrow

Re: MRBS for Moodle now in CVS

by Tom Norwood -
Hi Anyone,

I've managed to install mrbs4moodle OK I think. I'm running version 1.8.2 of moddle and downloaded the MRBS files for that version.

I put the folder mrbs under the /blocks folder, changed the config file, uploaded everything, created the tables in phpmyadmin, went to the /admin page in the browser and it seemed to work OK.

Problem is, when I go to the page /blocks/mrbs/web/ it just gives me a blank page.

Any suggestions?

Warm regards,

Tom.

In reply to Tom Norwood

Re: MRBS for Moodle now in CVS

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Tom - I am getting settled in well enough to my new place in Berkeley, California to begin looking at code and catching up on things that I had copied to a folder to follow up on. Your post being one of them. My apologies for the delayed response. Were you able to get it so that you could see things or are you still getting a blank page? Peace - Anthony
In reply to Anthony Borrow

Re: MRBS for Moodle now in CVS

by David Fountain -

Anthony, thanks for your work on this.

I think the readme file needs to be updated.

I am having problems. Users only seem to be able to book events if they are assigned a role globally is this true (or is it just me smile - I created a role MRBS user and gave permissions to mrbs.

In reply to David Fountain

Re: MRBS for Moodle now in CVS

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
David - No doubt that the readme file does need to be updated as I don't think the changes reflect the work that Stephen did to integrate. As it is currently implemented it does require the creation of the global roles. This is something I may revisit but my focus is currently on GBPv2 and a migration path to 1.9. I'd be interested in a discussion of how else we might handle the roles; however, it might be good to start another discussion on that one. Peace - Anthony
In reply to Stephen Bourget

Re: Moodle to MRBS i18n code

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Steve - If you get a chance, could you check out the Modules and Plugins and make sure that the everything works as intended. I have removed the old site where users had to login as I wanted to make it easier for folks to get the code and I figure the less hoops one has to jump through the better. I've included your auth_moodle.php and the mrbs block code for 1.7 and 1.8 which seems to work great. I reorganized the files so that they are easier (IMO) to install. It should be unzip and copy to Moodle. I've also tried to provide clearer instructions for how to install. Thanks for any feedback you and others might be able to provide. Peace - Anthony.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jürg Hoerner -
I didn't find the mrbs Integration. Is it available for 1.7+?
In reply to Jürg Hoerner

Re: CMS integrations: MRBS Integration

by Stefan Ramaker -
Hello Jürg,

yes it is. I guess it will be soon in the Modules and Plugins Area. Anthony sent me the Integation, so I am glad to give you a downloadlink so you can start with the integration.

http://www.medianopoly.de/mrbs/mrbs4moodle17.zip

With a little help I was able to make it run in 1.7.1. I you have a question, we can maybe also talk in german about it.

Greets

Stefan
In reply to Stefan Ramaker

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Thanks for posting - until it is approved in the database I can go ahead and put the link for the MRBS4Moodle17.zip file here.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Julian Ridden -

Thanks for posting the link Anthony. There seams to be an issue with it however as the link appears to be broken.

In reply to Julian Ridden

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Oops, I forgot to put the 17 at the end of the link - I have created another file so the link should work now. Peace.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jesús Martín -
Here it is a new Spanish translation.
Thanks.
In reply to Jesús Martín

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jesús - Gracias por la translación. Thanks for the translation for the MRBS4Moodle integration. I definitely preferred your translation to many of the strings that were previously in the file. I have committed the changes to CVS. Could you verify that it works as intended. I was not sure about some of the character formatting. Peace.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jesús Martín -
Saludos, Anthony.
El archivo anterior estaba con UTF-8 (lo he probado en la versión 1.8)
Lo vuelvo a subir con codificación 8859-1

Hasta pronto y gracias.

Jesús
In reply to Jesús Martín

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jesus - Favor de perdonar mi ignorancia de los "character sets" y la codificación. Me parece que el archivo lang.es.php es igual con aquel que está en CVS. Supongo que todo debe estar con el UTF-8, ¿no? Me parece que hay algunas letras extrañas en el archivo mrbs_block.php especialmente los siguientes:

$string['adminview'] = '¿Cuál es la ruta de tu instalación de MRBS?';
$string['mrbs:administermrbs'] = 'Acceso MRBS (Lectura / Escritura / Administración)';

¿Es un error o deben estar asi?

---
Please forgive my ignorance of character sets and codification. From what I can tell, the lang.es.php file is the same as that which is currently on CVS. I am assuming that everything should be UTF-8. However, it seems to me that there are a few strange characters in the mrbs_block_php file as seen above. Do they need to be corrected?

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jesús Martín -
Saludos.
Estoy hecho un lío... así que los envío en las dos codificaciones. Espero que esta vez vaya todo bien. Si no... me lo dices y empezamos de nuevo.

Jesús
In reply to Jesús Martín

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Gracias por mandarme los archivos con la codificación de las dos formas. Creo que ya lo tengo arreglado. El problema fue (de mi entendimiento) que mi computadora (o sea editor) no estaba mostrando bien las letras especiales con la codificación UTF8, pero despues de poner los mismos archivos en el CVS las letras salen bien. Si necesitamos cambiar los archivos favor de avisarme pero creo que ya están bien.
---
Thanks for sending the files with both codifications. I think that I have it fixed. The problem was (as I understand it) that my computer (editor) was not displaying correctly the special character in the UTF8 codification, but after uploading the files to CVS those letters seem to be fine. If we need to change the files please let me know but for now I think they are fine. Peace.
In reply to Anthony Borrow

MRBS Installation

by andy choo -
Hi,

I'm very excited on this module.
I'm wondering whether any kind soul here can give me a guide to the installation of this wonderful module.

I'm using Moodle 1.8

Thanks in advance
In reply to andy choo

Re: MRBS Installation

by Tom Norwood -
Hi,

I had trouble installing it at first too but it's actually very very simple.

Upload the whole folder mrbs to the /blocks folder which is in your moodle directory.

Then, go to www.yoursite.com/moodledirectory/admin

The tables will automatically be created in the database.

If you then go to www.yoursite.com/moodledirectory/blocks/mrbs/web/ you will find your working calendar!

Thanks to Anthony and all others who have put the time and effort into doing this for all those of us who run schools and have desperately been seeking a software solution like this.

Regards,

Tom.
In reply to Tom Norwood

Svar: Re: MRBS Installation

by Daniel Håkansson -

Hi this block seems verry verry good.

But I think i done something wrong because when I have added this block to my moodle page,

for the first I can only add the block at my main page not in the courses,

for the second and the worst part when i try to log in as a teststudent i cant find the block. Can any one help me were to change this.

Kind regards /Daniel

In reply to Daniel Håkansson

Re: Svar: Re: MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Daniel - MRBS4Moodle is designed primarily to be used on the main page. I've not had a chance to play with creating it in various courses. Were you ever able to get this working so that the students could find the block. If not let me know and I will see if I can walk you through it. I've made some minor patches recently which would be worth getting. I'm hoping to upgrade to the latest version of MRBS in the not too distant future. It is not a high level priority but I would like to get to it during the New Year. Peace - Anthony
In reply to Anthony Borrow

Svar: Re: Svar: Re: MRBS Installation

by Daniel Håkansson -

Hi i found where to change the access so that the students could se and do the nessesary booknings. But now i have a new question and that is if it is possible to stop the time from ticking in the block, the reason i am asking is that i think that this module could be used as an index for our frezzer storage if i could stop time and have a fixed week displayed. do you think this is possible?

Kind regards

Daniel

In reply to Daniel Håkansson

Re: Svar: Re: Svar: Re: MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Daniel - I'm not 100% clear what it means to freeze time. Actually, I'm not even familiar with the ticking time since we have used class periods as the default. Might that be what you are looking for. Could you include a screenshot so that I can see more clearly what you are referring to? Peace - Anthony
In reply to Anthony Borrow

Svar: Re: Svar: Re: Svar: Re: MRBS Installation

by Daniel Håkansson -

Hi what i meen is when you are in mrbs like me attached screenshot, what i would like to do is to make the time stand still that you always display the same week in this case monday 31/12 - 6/1. is this possible?

Kind regards

Daniel

Attachment stoptime.JPG
In reply to Daniel Håkansson

Re: Svar: Re: Svar: Re: Svar: Re: MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Daniel - You can of course supply the values for day, month, and year in the URL. Would that help? Peace - Anthony
In reply to Anthony Borrow

Svar: Re: Svar: Re: Svar: Re: Svar: Re: MRBS Installation

by Daniel Håkansson -

I think that actually will be suficient for me at this point thanks Anthony.

Kind regards Daniel

In reply to Daniel Håkansson

Re: Svar: Re: Svar: Re: Svar: Re: Svar: Re: MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Daniel - Excellent - sometimes the best fix is that simple one. Peace - Anthony
In reply to Daniel Håkansson

Too many areas to be in one list, needs columns

by Daniel Håkansson -

HI I was wondering if there is anyone out there that can help me with a (hopefully) simple problem. I have too many areas and rooms in my mrbs to be convenient for using one list or dropdown boxes. Is it possible to have those lists divided into columns? Just so you know I am old fashion and use version 1.2 for moodle 1.9.4, since it is to heavily modified to fit our needs, to be easily upgraded.

Kind regards Daniel

In reply to Daniel Håkansson

Svar: Too many areas to be in one list, needs columns

by Daniel Håkansson -

I have one more question that maby could be quite easily answered, I would like to modify the del_entry file. so that when you are done you come back to the week  wiew of that perticular room. To get to the week wiew is easily done. you just change for day.php?.... to week.php?... after Location: but the problem is to get the $room_id any idea how to get access to that data?

Kind Regards Daniel

In reply to Daniel Håkansson

Svar: Too many areas to be in one list, needs columns

by Daniel Håkansson -

One ide i have how to make this possible is to copy the following part of the week.php "

# Show all areas
 echo "<td width=\"30%\"><u>".get_vocab("areas")."</u><br>";
}

  # show either a select box or the normal html list
  if ($area_list_format == "select") {
 echo make_area_select_html('week.php', $area, $year, $month, $day); # from functions.php
 $this_area_name = sql_query1("select area_name from $tbl_area where id=$area");
 $this_room_name = sql_query1("select room_name from $tbl_room where id=$room");
  } else {
 $sql = "select id, area_name from $tbl_area order by area_name";
 $res = sql_query($sql);
 $sql = "select id, area_name from $tbl_area order by area_name";
 $res = sql_query($sql);
 
 if ($res) for ($i = 0; ($row = sql_row($res, $i)); $i++)
 {
  if ( $pview != 1 )
   echo "<a href=\"week.php?year=$year&month=$month&day=$day&area=$row[0]\">";
  if ($row[0] == $area)
  {
   $this_area_name = htmlspecialchars($row[1]);
   if ( $pview != 1 )
    echo "<font color=\"red\">$this_area_name</font></a><br>\n";
  }
  else if ( $pview != 1 ) echo htmlspecialchars($row[1]) . "</a><br>\n";
 }

" And add it as many times as you want columns and there after select in the red marking on what number you want the column to star. The only thing you need to add more then is when the column should stop. so that you can define the interval you want to write in each column. Any onw knowing how to do that? or have a better solution?

 

Kind Regards Daniel Håkansson

In reply to Daniel Håkansson

Re: Svar: Re: MRBS Installation

by Jürg Hoerner -
When I make a booking, in the description field is the text "Class", where can I change this standardtext?

Thank you very much for the mrbs block for moodle.
In reply to Jürg Hoerner

Re: Svar: Re: MRBS Installation

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
The "class" and "non-class" options are defined at the end of the config.inc.php file. (look in blocks/mrbs/web/config.inc.php)

This option was recently moved to the admin settings page in the latest version of MRBS.

-Steve
In reply to Stephen Bourget

Re: Svar: Re: MRBS Installation

by Zbysiu Rodak -
This is what I have at the end of my config.inc.php file -
# $typel["A"] = "A";
# $typel["B"] = "B";
#$typel["C"] = "C";
# $typel["D"] = "D";
$typel["E"] = get_vocab("external");
# $typel["F"] = "F";
# $typel["G"] = "G";
# $typel["H"] = "H";
$typel["I"] = get_vocab("internal");
# $typel["J"] = "J";

How do I set it so that, for example, "A" shows "Holiday" in the drop down menu?
In reply to andy choo

Need help with MRBS Installation

by ahmet b -
all,
Thanks for designing this nice tool. I tried the demo and it is what i am looking for..
however, after I installed is asking me the follwing message on notification page...
I put my moodle page link but doesnt do anything?

can anyone help me?

thanx in advance...

What is URL to your MRBS Install?
i.e. http://localhost/mrbs
Block mrbs: block_mrbs not implemented
In reply to ahmet b

Re: Need help with MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ahmet - For which version of Moodle are you trying to install the MRBS block? I would want to make sure that you using the correct version. I suspect ultimately you will want the version for Moodle 1.8. Once you verify you have the right files downloaded, then it is a question of making sure they are in the right location. As the MRBS block evolved there were changes as to where the files were to be located. I had initially thought of it as being an independent installation; however, finally settled on making it a block within Moodle. Once we sort out what you are working with we can get you working. Peace - Anthony
In reply to Anthony Borrow

Re: Need help with MRBS Installation

by ahmet b -
Hi Anthony,
Thanks for the quick respond.
I have 1.8.4. honestly I am kind of new to moodle.
I unzipped the MRBS files and put the block.mrbs.php into my moodle Lang file, and then move the entire mrbs folder into my moodle blocks folder.
i went to notifications and get the message that was asking where the mrbs file install.

I haven't made any changes on codes. please let me know where should I make changes.

I appreciate

-ahmet

In reply to ahmet b

Re: Need help with MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ahmet - I did a quick check and the latest version available at:

http://download.moodle.org/plugins/blocks/mrbs.zip

should allow you to simply copy the mrbs directory into the /blocks folder resulting in /blocks/mrbs and the various subdirectories /blocks/mrbs/lang, /blocks/mrbs/web/, etc. You should be able to leave the path blank and it should find it OK. After the notifications page, go to the front page and try adding in a Resource Scheduling block and see if that creates a link to the MRBS code that works. If not let me know and we will walk through and see what is happening.

Peace - Anthony
In reply to Anthony Borrow

Re: Need help with MRBS Installation

by Vitor Torres -
Hello i am using the moodle 1.9 and i need some kind of tool that can provide the chance to make the booking of a laboratory room. I think the MRBS can help in that point. I did the download of the MRBS folder, i have unziped the file and i copy that folder to moodle/blooks. Now i don't know the next steps that i should do. Can you please help me writing step by step to put this block well working on moodle?

Cheers,

Vitor
In reply to Vitor Torres

Re: Need help with MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Vitor - After installing any custom block, login as an admin and go to the notifications page. That will create the mrbs tables and mrbs related roles. Then on the front page you should be able to add the Resource Scheduling block. I have not tested this with Moodle 1.9 but hope to do so in a couple of weeks. Let me know if you have any further questions or run into problems. Peace - Anthony
In reply to Anthony Borrow

Re: Need help with MRBS Installation

by Vitor Torres -
Hello Anthony

I have copied the folder to the right place and i accessed to the moodle with admin login. When i access to "notofications->modules->blocks->manage blocks" this ask me for that: "What is URL to your MRBS Install?" so....i don't know what i must put here. i already tried some URL's all didn't work. Can you help me please?

Cheers,
Vitor
In reply to Vitor Torres

Re: Need help with MRBS Installation

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Vitor - I really need to go back and check this out and see what is happening. I think the behavior we want is that by default, the URL to the MRBS install is:

http://yourmoodlesite.com/blocks/mrbs/web

Please give that a try and let me know what happens. I'll try to break away from the books and see how this works on a fresh install in Moodle 1.9. Peace - Anthony


In reply to Anthony Borrow

Re: Need help with MRBS Installation

by Sylvia Wingo -

I have installed Moodle 1.9 on a new server and it is up and running. I am trying to get the MRBS block to work. I have copied the files and created the tables and I hae added all the roles that were specified. I am able to add it as a resource but it will not open from that link. No URL I put in works even though I can go the the same URL in my browser and it will open up. However it opens up to the admin page with me already logged in. If I log out and try to login again using the administrator password I am not able to login. I have tried numerous installs today and read many posts but I am still at a stand still.

Thanks

Sylvia Wingo

In reply to Sylvia Wingo

Re: Need help with MRBS Installation

by Jens-Peter Misch -
Hello Silvia Wingo,
Ok, just check the following:
1) login as Admin
2) Block Websiteadministration / Modules / Blocks
3) Resource Scheduling
4) check
MRBS Installation path it must be like: "http://yoururl.de/moodle/blocks/mrbs/web"

Was this the problem?

or

Sometimes your webserver can not handle the .htaccess file in the block/mrbs/web directory. Delete/rename this file...

Was this the problem?

Jens-Peter
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Larry Elchuck -
Anthony

I just installed the MRBS block et al into my Mooodle 1.9 beta 2 build.

As cited in an earlier post by another member of this site, it is only accessible at the site level.

Here's my situation. Hopefully you can shed some light on whether this is possible or not.

We use a booking system to allow teachers and students to schedule live video chats (using Marratech) for large group instruction and small group collaborations ... hence the need for students to be able to book an a/v classroom.

Is there any way that all users can be given the rights to book (and delete their own) rooms using MRBS but not have any other admin rights?

I looked at the roles capability for this block but no users appeared when I clicked on the roles icon (since none are defined at the site level).

It's ok that the booking system be viewed at the site and course level to allow students in different courses to see when the common resources (rooms) are booked by someone in different course.

We currently use phpScheduleIt by linking to it externally. But this requires adding to the external database when new users are added to Moodle.

Hope this is clear enough.

larry
In reply to Larry Elchuck

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
I think it should be possible to do what you describe.

Try this:

Add to the "Authenticated User" role the capability "block/mrbs:editmrbs"

Every logged in user on your site is automatically assigned to this role. This way the users will be able to view and book rooms. They should not be able to change the bookings for other users as they will not have the capability "
block/mrbs:administermrbs" assigned to them.

As to adding the block to the courses that can be done by modifying line 13 of the file
"blocks/mrbs/block_mrbs.php" by changing:

return array('site' => true,'my' => true);

to

return array('site' => true,'my' => true, 'course' => true);


In reply to Stephen Bourget

Re: CMS integrations: MRBS Integration

by Larry Elchuck -
Thanks Stephen

Much appreciated.

Both adaptations worked ... with one minor desired adjustment.

Is it possible to have the page navigation visible using this block?

If not, I noticed that by adding the link as an added resource link to page, I can still keep it with the header and breadcrumbs still showing?

larry
In reply to Larry Elchuck

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
The only way I know of to show the navigation bar is to add your MRBS install as a resource.

-Steve
In reply to Stephen Bourget

Re: CMS integrations: MRBS Integration

by Larry Elchuck -
Thank Steve.

I did this and hid the block that I created at the site level. Since I gave all authenticated users the read/write capabilities, the link still works for them and keeps the mtbs system within the moodle portal.

I had to comment out the link back to the server in the config.inc.php file (//$mrbs_company_url = $CFG->wwwroot;) to avoid a cascading effect when the name of the server is clicked.

larry


In reply to Larry Elchuck

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Larry - Could you add a feature request in the CONTRIB section of the tracker (Block: MRBS component). I would like to have this available. Part of what I had done initially was when thinking of the block as being one predominantly for the front page the link at the top will take you back to the front page; however, if it is going to be used in multiple contexts then the breadcrumb navigation would be nice. At some point, I would like to go through and update the code to incorporate fixes made in MRBS; however, it may be a while before I get to that. Peace - Anthony
In reply to Anthony Borrow

Svar: MRBS Integration

by Daniel Håkansson -

Hi Anthony. i am wondering if you can help me with a little modifications of the entery page for new bookings? What i would like to do is to hide the the rows:

"date" pre defined as the date you clicked on to get to the booking,

"Length" always 1 hour/period

"Room" the one you were in when clicking

"sort"

"repeats" weekly ...

"end of repetition"

"number of weeks".

When i have tried to delete this fields i get errors or wrong settings do you have any ide how to do this?

And finaly when clicking on save i would like the user to go back to week wiew not day as it is now.

Thanks Daniel

 

Attachment new-entry.jpg
In reply to Daniel Håkansson

A quite moodified mrbs

by Daniel Håkansson -

Hi a have mutated the mrbs moodule a bit. It's no longer used for bookings of rooms etc but as a inventory system that can be used for example for freezers (as we do) etc. It's not a pritty code but i think it's works quite good, I am not a profesional, so I beg for pardon if it insults any one.  its only one thing that i cant get to work, not a major problem but it would be nice if the last column in the search results would show the "Rack" (former "area") and "Box" (former "room") insted of "place" (former "date") i would realy appriciate if any one can help me solve this.

I dont know if any one else will have any use of it but here it is...

Kind Regards Daniel

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Vitor Torres -
Hello Anthony,

I already have posted some doubts here but in fact i still with the same problem. I will try to explain what is functionality that i would like to have on moodle. So...in the moodle server we have some school subjects. In one of these subjects the students can book the access to one computer(for example) if the desired student's time slot is empty. The interface that i would like to have when the students access to the booking activity is a kind of week calender, where each day is divided by one hour time slots. So each time slot has one icon where the student can click and make his reservation to that time slot, and after done, this reservation can be viewed for other students that also would like to do their reservation. I think there are more then on module to fulfill this goals (like MRBS, Scheduler module or WebCalendar. Can you please advice me which module i should use and what kind of modifications i must do? By the way, I am using moodle 1.9

Cheers,
Vitor
In reply to Vitor Torres

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Vitor - I'm not 100% that I understand your situation but I will give a shot and hopefully we can get you closer. I am not that familiar with the scheduler module or webcalendar so I can only really address MRBS which I know a little. If you treat your subjects like areas and the computers like rooms would MRBS work for you? They could certainly be allowed to book a room for an hour. MRBS has a week view which may be what you want. The part I do not understand is "if the desired student's time slot is empty" - I think you mean if the time slot that the student desires is empty or available (in other words no other students have signed up for it). It sounds like MRBS would meet your needs. Feel free to install it and give it a shot. Then if you have questions we can have something specific to work from. I tend to be a very visual person so a screen shot goes a long way in helping me to understand. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Vitor Torres -
Hello Anthony,
So, as i told you, i am using moodle 1.9 and EasyPHP on my computer to create a moodle server. I have sucessfuly installed the mrbs block on moodle, at least it was what showed up when i clicked on notifications link. But when i added the block mrbs and i tried to use the Schedule Resource clicking on the created link, one new white page showed up saying :"The requested URL /index.php was not found on this server.". Can you please help with this?
By the way, do you have MSN or SKYPE? Maybe it could be easier to communicate.
Cheers,
Vitor
In reply to Vitor Torres

Re: CMS integrations: MRBS Integration

by John Ryan -
Vitor,

Once you have installed the block you need to go to Admin > modules > Blocks >mrbs and edit the setting to
http://<your web site>/blocks/mrbs/web
In reply to John Ryan

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
John - FYI, thanks to Stephen I think this was improved in the latest version for 1.9 (and HEAD) so that we are using the settings.php option for blocks (see CONTRIB-421). You may be interested in taking a look at CONTRIB-422 and comment there with any feedback you might have. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Neale Graham -
I have MRBS working as a block within Moodle 1.9 and was wondering if it is possible to open the block within the moodle frame rather than in a new window?
Thanks
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by William Lu -
Picture of Particularly helpful Moodlers
Dear Antony,

I like your mod. It is so easy to install (much easier than the BRBS itself).
But, the role is not working in my Moodle1.9. Only Admin can edit a schedule. No any other teacher or student. The error msag says: no permission.

I've checked your default role for teacher is "allow" to edit. But, no teacher nor students can do anything.

I am in PHP4.4.7 and MySql4.0

In reply to William Lu

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
The current MRBS block looks at the users permissions from the SYSTEM level and not the course level. These permissions are assigned through the Site Administration block under Users->permissions->assign system roles

I would not suggest assigning users to the student and teacher roles on the system level as they will appear in every course. Instead I would suggest creating roles specifically for MRBS as outlined in this post:

http://moodle.org/mod/forum/discuss.php?d=38604&parent=177615#p304105

If you want everyone to have at least read access, assign the block/mrbs:viewmrbs permission to the "Authenticated User" role since this would apply to every user who is logged in.

In reply to William Lu

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
William - I am glad you like the block and found it easy to install. It has gradually been improved thanks to the feedback and work of folks like Stephen. I agree that you will want to create a custom role on the system level and assign the teachers at your institution to that role. Let us know if you have questions. Happy Moodling!
In reply to Anthony Borrow

set locale to "en_US.utf-8" (Unix)

by William Lu -
Picture of Particularly helpful Moodlers

Dear Stephen and Anthony,

Thank you very much for your quick replies and valuable suggestion. It works on my Moodle1.9

To install the software:

  1. Upload mrbs to blocks
  2. upload block_mrbs.php to lang/en_utf8
  3. In Notifications, let moodle to install it.
  4. In block setting, set the url to yoursite/moodle/school/blocks/mrbs/web
  5. At front page, add mrbs block, and click on it to open a new window of booking system. The magic is, the name of the moodle site already at the left-top banner and the admin’s name at the top-right corner. So easy and smooth installation!

To assign role:

  1. Front page > Front page role > Override permissions > Authenticated user > Resource Scheduling: Access MRBS (Read only) to Allow
  2. User > Permissions > Define roles > Add a new role > name as ‘mrbs’ > allow Access MRBS (Read / Write)
  3. User > Permissions > Assign system roles: Assign a user to ‘mrbs’. This user will be able to add new booking. Thank you very much. It is fantastic!

But, only one small problem.

At the very top, shows:


[Warning: Server failed to set locale to "en_US.utf-8" (Unix)]

Since this mrbs is so easy to use, I’ve installed it into different host (some with PHP4, some with PHP5), but all show same warning.

Looks like it require some language file. In config.inc.php, I tried to # out the language override, encoding, tokens, then it shows (no utf-8 at the end)

[Warning: Server failed to set locale to "en_US" (Unix)]

Would you please tell me how to stop this warning? The mrbs is working very well but this warning is annoying.

I guess it might because:

In moodle setup > Language settings > Sitewide locale Default: Empty

Choose a sitewide locale - this will override the format and language of dates for all language packs (though names of days in calendar are not affected). You need to have this locale data installed on your operating system (eg for linux en_US.UTF-8 or es_ES.UTF-8). In most cases this field should be left blank.

This field is empty for all of my Moodles on different servers. What I should enter here?

Thank you very much.

In reply to William Lu

Re: set locale to "en_US.utf-8" (Unix)

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
William - Thanks for the feedback. I am going to reference this to another MRBS issue in the tracker (CONTRIB-422) so that when I go through and try to move more options into the settings.php file so folks can control how MRBS behaves without having to hack the code - so that everything is in Moodle. I will look at what is happening to generate this error too. Peace - Anthony
In reply to Anthony Borrow

Re: set locale to "en_US.utf-8" (Unix)

by João Filipe Oliveira -
I get this message only with MacOS Safari, but not with Firefox. I suppose this is related to the browser identification.
In reply to William Lu

Re: set locale to "en_US.utf-8" (Unix)

by chandra sekhar -
Hi,

A small trick to overcome following error, as its still present with Moodle v1.9.
Error-> Warning: Server failed to set locale to "en_US.utf-8 (Unix).

Once mrbs is installed (blocks directory), this is for unicode encoding
Edit: blocks/mrbs/web/language.php
Line 263
$locale .= ".utf-8"
change this to
$locale .= "_utf-8"

C.



In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Zbysiu Rodak -
Ha! so it's a Block and not a Module. How fiendishly clever. Now it's all falling in to place. clown
Zbysiu
In reply to Zbysiu Rodak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Zbysiu - Yep, it is a block, Happy Moodling! Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
I just installed the latest version of this block on our Moodle 1.9.2.
It installed just fine.
It's running fine but... it's impossible to make a repeated booking.
Bug?



In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Zbysiu Rodak -
When you book a room, select the "n-Weekly" radio button, then the Repeat Day, then The Number of Weeks section. We have a two week timetable, meaning that lessons repeat every other week, so in the number of weeks section I type "2". If you have a weekly timetable type "1" (without the quotes). The other important thing to do then is to select your Repeat End Date, i.e. when you need this repeat booking to end.
HTH
Zbysiu
In reply to Zbysiu Rodak

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
I tried this but it isn't working for me.
Are you using the same (latest) version of this block?
I installed version 1.4 2008/08/07
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Zbysiu Rodak -
Looking at the ReadMe file it says that it's MRBS v.3.2.1. I downloaded and installed it on 08/July/2008. Either way it was the latest version (at the time) for Moodle 1.9.
I did make the mistake of first putting it in the Modules folder blush and wondering why it wasn't showing.
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - Sorry I have not been following the forums closely this week. There does seem to be something not working with the repeated scheduling. Could you file a bug for that in the tracker and give me details about what values you are putting in which fields so that I can reproduce and troubleshoot it. Thanks - Anthony

p.s. - I've taken a quick look at the code and it looks like when I was patching up the sql injection problem I was a little over zealous. Actually, it looks like I forgot to pass the repeat parameters from edit_entry.php to edit_entry_handler.php.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
Thanks for checking, Anthony.
I filed the bug in the tracker: contrib-653
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - Thanks for the bug report and for your help testing. I think I have it fixed so if you could get the latest version (keeping in mind that it takes 24 hours for the zip files to get updated - but if you are using CVS you should be able to get the latest). Let me know if that fixes things for you. If there are any problems, just comment on CONTRIB-653. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Zbysiu Rodak -
It does integrate with Moodle/SSO already, and can be added via Blocks>Room Bookings. What I have done is set the Default Front Page Role in Front Page Settings to Student. When a student logs in they can't see the Room Bookings Block, but when a Teacher does, he/she can. By clicking the Room Bookings link you are then taken to the MRBS, already logged in to it.
I hope I've not misinterpreted your question.
Zbysiu
In reply to Zbysiu Rodak

Use MRBS in course

by Ken Tuley -
Hi... I'm reading in the MRSB block documentation that MRSB is designed for the front page...is there a way to switch this and use it for one specific class?


In reply to Ken Tuley

Re: Use MRBS in course

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
It is possible,

You would still need to assign the permissions at the system level but only to the members of the course.

You could then either modify the code for the mrbs block to appear in a course as described in this post (http://moodle.org/mod/forum/discuss.php?d=38604#p374489) or just add a resource pointing to the URL of your mrbs instalation. If you modify the code for the mrbs block, it will be possible for any teacher to add it to their course.

-Steve

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
Hi,

1. I just found that I can see the mrbs block pages (.../mrbs/web/day.php?day...) without having to login.
Is there a way to prevent this?
I know there is a read only permission in roles but what's the use of it if you don't need to be logged in to see bookings?

2. When addressing such a page without Moodle
login and clicking on the add booking sign I'm asked to log in.
Unfortunately this doesn't bring me to the Moodle login screen.
Is there a way to change this?
It's rather confusing for users.
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
>> I just found that I can see the mrbs block pages (.../mrbs/web/day.php?day...) without having to login.
>> Is there a way to prevent this?
>> I know there is a read only permission in roles but what's the use of it if you don't need to be logged in to see
bookings?

MRBS works internally by using 3 separate access levels:

Level 0 - Read
Level 1 - Edit
Level 2 - Admin

By default MRBS assigns all unknown / non-logged in users to access level 0 (read only) access.

The three Moodle permissions were set up to correspond with the three MRBS access levels.

block/mrbs:administermrbs - is assigned MRBS Level 2 permissions.
block/mrbs:editmrbs - is assigned MRBS Level 1 permissions.
block/mrbs:viewmrbs - is assigned MRBS Level 0 permissions.

Since MRBS assigns read level access to everyone, the block/mrbs:viewmrbs permission in reality only determines if the user can see the mrbs block inside of moodle.

The access levels are determined by the file: block/mrbs/web/auth_moodle.php

-Steve
In reply to Stephen Bourget

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Steve - I think we can easily enough add in an authenticated user check that would ensure that only users who are logged in to Moodle can view the pages. If someone could create an issue in the tracker I will make an effort to work on it before classes start up again. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
Thx again Anthony.

It's in the tracker.
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - Thanks for adding that to the tracker and for noticing/reporting that oversight. I really enjoy how this group collaboration works. I've committed a fix that should allow folks to have the best of both worlds. To view the MRBS data, since it is usually on the front page, I've decided to rely on the $CFG->forcelogin setting. If set to true, then to view the MRBS block the user will have to login. In order to edit any data, login will be required. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
I tested the latest version. Perfect.
Now I noticed some strange behaviour of the block using IE7.
Loading (or refreshing) a page takes way over 20 seconds (and even CPU load of my computer goes up to 50%).
No such problems usinf FF2 or the old version of the block.




In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
I did some extra testing and I think it's the javascript cursor.
Turning it off or opting for the bgcolor highlite method eliminates the problem. So, is this a IE7 issue?
In reply to Anthony Borrow

Re: MRBS Integration - bulk upload of room bookings?

by Sarah Quantick -

I have installed the MRBS block on 1.9.2 and it seems to be working. But is there a way of bulk uploading room bookings I need to import our timetable into it and wandered if it can be done quickly?

Thanks

Sarah

In reply to Sarah Quantick

Re: MRBS Integration - bulk upload of room bookings?

by David Fountain -
Hi Sarah

Yes it is possible, I do it each year but there are some tricky sections to watch out for. I use 'periods' not time so the start_time and end_time values work slightly differently. Also BST causes a little problem and I have to adjust those timings. My spreadsheet on this is at school not at home so it will be next week before I can look at it in more detail, but if you have any questions feel free to reply or message me...I'm in Kent, did I hear you have moved on elsewhere?

Dave
In reply to David Fountain

Re: MRBS Integration - bulk upload of room bookings?

by Sarah Quantick -

Hi David

I am planning on using time rather than periods but if the spreadsheet would help that would be great.

I still live in Kent but have left CCW now self employed as an ICT Consultant.

Sarah

In reply to Sarah Quantick

Re: MRBS Integration - bulk upload of room bookings?

by David Fountain -
I've not used timings so I'm not sure how it will handles the end of one booking matching the start of the next but all I did was plug in a few manual bookings and looked to see what timings were put into the table and then developed the formula from there to get each timing. Time is in seconds and as you are using straight forward timings I guess it will be easier(!), you will need to check the daylight saving issue and make sure your server has the right time zone. It was then just a case of creating a csv file and uploading it to the mrbs_entry table.
A day is 86400 seconds and a week 604800, so once you get the values for the first week then just add these...I'll dig out my spreadsheet next week and see if I can tweak it to do timings and then put a link in this forum.

I took care of the daylight saving by doing a SQL update for times between the start and end dates.
In reply to David Fountain

Re: MRBS changing .css file

by Zbysiu Rodak -
I'm trying to tweak the MRBS to reflect the design of the rest of our site and have had a go at tweaking the mrbs.css file. I've done everything locally first and got it looking how I want, but when I upload the .css file to the server and refresh, the changes don't take effect. I'm using the mrbs.css file in blocks\mrbs\web.
In reply to David Fountain

Re: MRBS Integration - bulk upload of room bookings?

by David Fountain -

Couldn't find my spreadsheet but for straight forward 'time' entries...

=(DateCell-25569)*86400

converts an Excel date/time to the unix timestamp. This (I think) does GMT, so to get the daylight saving you have to either add or subtract 3600. If you can get your yearly timetable into Excel it's then a case of swapping your room designations to the room_id in mrbs, and if you want the teacher to be able to alter their timetables setting the 'create_by' field to their login id.

The csv file I upload to the mrbs_entry table:

start_time and end_time use the above

entry_type is 0

repeat_id is 0 (I avoided using repeating sessions as I found it easier)

timestamp is 0 (but could be anything you like - it can make deleting groups of records easier if you give it a set value)

name is text (appears as the booking - I use the class designation eg 10IT1)

type is I

description can be anything but I set it to 'Timetabled' to separate it from ad hoc bookings.

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Mike Worth -
I have sucessfully installed this add-on (Thanks a lot for making it) and have populated it with all the timetabled sessions (We are a college which allow teachers to reschedule classes to computer rooms etc). This amounts to about 35,000 rows in mdl_mrbs_entry; the web interface has slowed noticeably- is this normal and is there anything I can do about it (except asking for a more powerful server)

Thanks a lot,
Mike
In reply to Anthony Borrow

Re: MRBS Integration - Entry Types

by Zbysiu Rodak -
How do I increase the number of Entry Types to reflect the number of Faculties we have?
In reply to Zbysiu Rodak

Re: MRBS Integration - Entry Types

by Tran The Trung -
Hi how can one increase the number of entry types? (at least from A to Z, but a larger limit - say the number of color available - is what I am really wishing for)
In reply to Anthony Borrow

Re: MRBS Integration-some can see some can't

by Ken Tuley -
I've add this wonderful block to my site...it's on a class page...but I assigned the MRBS roles at the system level to those in the class.... my problem is that some can see the block, others can't. I've assigned the same role to each and can't figure out why one can see the block and others can't. Any thoughts as to where to look to see what's happening here?

Thanks

Ken
In reply to Ken Tuley

Re: MRBS Integration-some can see some can't

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ken - Can you let us know what version of Moodle you are using and which version of the MRBS block you have? Then we can work on trying to re-create your scenario and see what is happening. The capability check reads:

if ( has_capability('block/mrbs:viewmrbs', $context) or has_capability('block/mrbs:editmrbs', $context) or has_capability('block/mrbs:administermrbs', $context)) {

where $context is defined as:
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);

Could you provide a step-by-step as to how you assigned the roles? Peace - Anthony
In reply to Anthony Borrow

Re: MRBS Integration-some can see some can't

by Ken Tuley -
Thanks Anthony....
here's the details you requested....

Moodle 1.9.2+ (Build: 20080813)

Meeting Room Booking System - MRBS 1.2.5
DatabaseMySQL 4.1.22-log
SystemDarwin mhscluster.aps.edu 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh
PHP: 4.4.8

I assigned the roles, by going to the admin settins block, front page, front page roles, select the role (scheduler) and click on appropriate names in the list to move them to that role. I did give some folks the read only role..same process.
again, for the majority of folks this worked as advertised. but for at least a couple of people, the module doesn't show up, no matter what role I assign to them.

hope that helps find the answer.

thanks again.

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Neale Graham -
Is there a way to integrate MRBS into moodle running on a MS SQL server?
In reply to Neale Graham

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Neale - Not currently; however, feel free to create an issue in the CONTRIB section of the Moodle Tracker. Keep in mind that I do not have an MSSQL server to use for testing; however, I do not think it would be that difficult to do. Nevertheless, I do want to move toward making the MRBS block more platform independent (especially on the database side) but it will probably be a good while before I get back to looking at that code. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Mark Drabble -

I know this was asked over a year ago, but has anyone done anything getting mrbs running ms sql?

I have no idea about php programming but I'm more than happy to give it a go.

In reply to Mark Drabble

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Sorry Mark as I am not using MRBS where I am I have not done much with the code for the MRBS block. Ideally I would like to go through and make sure that it is database independent. If there is not already an issue in the tracker would you mind creating one. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
Hi,

I'm looking for a way to prevent users booking more than 14 days in advance.
I found a hack on the MRBS mailing list.
Unfortunately I have no idea which file to change.
Did anybody in this forum tried doing this?
Any help would be appreciated.

Jean-Pierre
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - I've not tried the patch mentioned in that post; however, it would go in the /blocks/mrbs/web/edit_entry.php flie. Best of luck. If you run into troubles just let us know. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Iain Roberts -
Could someone give me some more guidance on this. I'm trying to achieve the same thing: preventing non-administrators from booking a room more than n days ahead.

From the Sourceforge page, I've got some code that looks plausible (though may not be quite right). When I plug it into edit_entry.php it simply has no effect. It might be that the code is wrong, or possibly it's in the wrong place in the file.

$user = getUserName();
$usr_level = authGetUserLevel($user, $auth["admin"]);
$SevenDays = time() + (7 /* days */ *
24 /* hours */ *
60 /* minutes */ *
60 /* seconds */);
if (($starttime > $SevenDays) && !getAuthorised(2)){
$err = "You cannot book a room more than 7 days in advance. Please contact
reception.<BR> ";
return $err;
exit;
}

In reply to Iain Roberts

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
I got this working using the patch proposed in this edugeek discussion.
You'll need to patch 3 files:
function.php , edit_entry_handler.php , and config.inc.php.

Mind that this patch doesn't prevent a user to make a repeated booking.
(So we had to limit the repeated bookings to 1 sad.)
In reply to Anthony Borrow

Re: MRBS Integration with server clock

by Kae Magat -
Hello, is it possible to embed or place a server clock/time running on the MRBS page? It is very useful for our students to know the current school time while they are booking their schedules. Please post it here how to do it. Thank you for your help!
In reply to Kae Magat

Re: MRBS Integration with server clock

by Mike Worth -
It's easy enough to have the time at which the page was generated printed to the page using PHPs date function. Can the students not just use their own clock?
In reply to Kae Magat

Re: MRBS Integration with server clock

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Kae - I had not previously considered it, but it is an interesting idea. I'm kind of thinking like Mike and wondering how useful or needed it is but feel free to create a feature request in the Moodle tracker in the CONTRIB project there is a component called Block: MRBS. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Rene Scheppler -
Hello,
I actually have trouble installing MRBS into moodle.
I get it running (MRBS for Moodle 1.9 and newest version - I do have Moodle 1.9.2). I can make entries, but:
1) only the first entry I make shows up in the calendar. All other entries are written to the database and can be found via search as well but do not show up in calendar.
2) All entries get strange durations even if I don't change the number of periods. The first entry block the whole day starting fron the period I choose as beginning. But it blocks even more periods than I tell it.

Anything else seems to work. I cann edit ressources and rooms via admin.
Might that be because my phpAdmin tells me that the database uses latin1?
Thanks for your help...
René
In reply to Rene Scheppler

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
René - I would recommend using the 1.9 version (not the latest version) of the code. I've not had enough time to test the latest version. In any case, your difficulties sound strange. I make the assumption that all of the tables in Moodle databases are utf8 now so I'm not sure about why they were created as latin1 but I would like to make sure that if there something we can do with the code to prevent that from happening that we do so. Please create an issue in the Moodle tracker (in the CONTRIB project for the Block: MRBS component) and we can track down what is happening with your calendar. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Rene Scheppler -
My whole moodle database is running latin1 tables. I know changed the tables to utf8_unicode_ci but whithout success. I also changed to Moodle 2.6.2

After reinstalling mrbs several times (I really tried all versions available) I got the newest version running correct and stable.
BUT WITH ONE BUG: Set to periods (I need that because my server (Webspace) is located in USA and I want to use German time zone - so I want to use periosds) the mrbs blocks all periods of a day starting from the one choosen in the calendar. Opening the entry it shows a number totally different from what was entered. Even changing the existing entry does not fix it.
So how can I get mrbs using the number of periods I tell it?
Thanks for your help...

Update: It does not work: The first entry is shown. But any further entry does not appear in the schedule (but is written to the database). sad((
In reply to Anthony Borrow

Disable student login to MRBS?

by Travis Wilhelm -
I am more than happy to help with this project as it is very useful and I am looking at implementing it on a "Staff" course (kind of a staff intranet), for booking of resources like Computer rooms etc.

I want to be able to disable students from being able to even view the MRBS booking if they happen to get the URL. I know how to revoke permissions on the block, but that doesn't help if they happen to stumble across the URL and go there automatically.

I understand this is probably an extension of MRBS, rather than Moodle, but if someone has a clear idea of how this is possible, it would be great! smile Thanks.
In reply to Travis Wilhelm

Re: Disable student login to MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Travis - Could you please create an issue in the tracker to address this. I do want to make sure that we fix this up and will look at how the authentication is being handled. It should not be too difficult to get fixed up but I may not get to it until mid-December once classes are finished. Thanks for your patience and help in reporting this. Peace - Anthony
In reply to Anthony Borrow

Re: Disable student login to MRBS?

by Travis Wilhelm -
Issue created on the tracker: http://tracker.moodle.org/browse/CONTRIB-876

Thanks Anthony.
In reply to Travis Wilhelm

Re: Disable student login to MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Travis - Thanks for taking the time to create the issue in the tracker which is assigned automatically to me. I receive a notification anytime something happens with that issue so feel free to add any comments there until we get it resolved. It may be a few weeks before I get a chance to play with it but it is now on my official to do list. Peace - Anthony
In reply to Anthony Borrow

Strange duration

by Rene Scheppler -
Hi,
I installed the newest version of MRBS plugin into moodle 2.4.2 and it runs .
I am able to setup erverything correctly - even access by different user groups.
But I have a big problem: Whenever I enter a new entry I choose the number of periods which should be blocked. That entry is writen to the database (checked) and is searchable by the mrbs search. But it does not appear in the timeptable. When I search the entry and open it from within the search results, following strange duration is shown: "3.41606E+15 periods" instead of my choosen 1 period.
when I change the end time manual in the database, the entry appears in the timetable.
What is going wrong with end time?
The server and database are running on a US-Server with US-time. Moodle is set to german timezone and German language.
Thanks...
René
In reply to Rene Scheppler

Re: Strange duration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Rene - What version of Moodle are you wishing to use the MRBS block with? I think the best version is the one for 1.9. I've noticed some issues with times that I have not yet had a chance to work out. Let me know which files you are using and I'll try to help you figure out what is going on and get it working properly. If you could, create an issue in the tracker under CONTRIB and the Block: MRBS component. Thanks - Anthony
In reply to Anthony Borrow

Re: Strange duration

by Rene Scheppler -
Hello Anthony,
I am using moodle 1.9.3 and downloaded the latest version of mrbs plugin.
I can create rooms but if I create an event it will not schow up in the timetable. When I search it, it is found but it the event details it says "duration: 3.41606E+15 periods".
The database is mysql and I changed all the tables from latin1 to utf8_unicode.
I don't know, how to fix that - I tried so much sad
Thanks for your help...
René
In reply to Rene Scheppler

Re: Strange duration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
René - I've been busy with classes but am trying to catch up. Let me know if you are still having trouble with the MRBS block. I would recommend using the 1.9 version rather than the latest. If that does not help you out let me know and I'll see if we can work through whatever the issue is. Peace - Anthony
In reply to Anthony Borrow

Re: Strange duration

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hi there Anthony -I hope this is the right place to ask this question; I wasn't sure smile

I went out to a school today just starting in Moodle and they have MRBS on their front page for teachers but also want the students to be able to see sitenews on the front page. My understanding is that for students to see sitenews the default front page role has to be set to student instead of authenticated user but what happens then is that the teachers lose the ability to see the resource scheduling block. How can we resolve the two please? (I have only ever added this block myself once at a school so have very little experience of it and they didn't have sitenews showing)

In reply to Mary Cooch

Re: Strange duration

by Jens-Peter Misch -
Hi Mary,
you find in the block "Site Administration"/"Users"/"Permissions"/"Define Roles" every Role of the System.
When you install the mrbs-Block you get 3 more Permissions (Access MRBS (read/write/admin), (Access MRBS (read/write), (Access MRBS (read only)).
Here you can define what you want....

Jens
In reply to Jens-Peter Misch

Re: Strange duration

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi Peter. And so are you saying if the relevant teachers have been given the access MRBS read/write permissions this will override the fact that the default front page role must be set to student? (I had presumed he had defined the extra MRBS permissons but maybe I should check that)
In reply to Mary Cooch

Re: Strange duration

by Jens-Peter Misch -
Hi Mary,
extra role ist the easy way to solve your problem. Only read/write permission, and the give all teachers this role....


Jens
In reply to Anthony Borrow

linking mrbs

by Asma Asma -

Hi Anthony and all,

I installed mrbs block and it is working, I can see calendar and time slots but now I don't know how can I insert mrbs block to my moodle or my website front page? is it by linking to the mrbs URL directory?

My second question is: what should I do to match a booked time slot to the specified ressource?

Regards,

In reply to Asma Asma

Re: linking mrbs

by Jens-Peter Misch -
Hello Asma,
when you install the block correct, you find after login with your admin acount in moodle at the block site administration , modules/blocks/resource scheduluing the global configuration area of this block.
when you have configured that, go to the start page of your moodle, turn editing on and add the Block resource scheduling.
Is this the tip you need?

Jens
In reply to Jens-Peter Misch

Re: linking mrbs

by Asma Asma -

Hello Jens-Peter Misch,

ok, so I add the Block Resource Scheduling by specifing the URL of this block

adding new  rescource>> link to a file or website and I put in location this URL  http://127.0.0.1/blocks/mrbs

now I want to link the time slot to the rescource URL in booking.

for exemple when some one book for room 1 or area 1 how can I match these area to the  specified URL rescource?

thanks

In reply to Asma Asma

Re: linking mrbs

by Jens-Peter Misch -
Hello Asma,
the link should be like this:
http://127.0.0.1/blocks/mrbs/web/week.php?year=2009&month=2&day=12&;area=3&room=8

You have to find out which area id is which text in your mrbs. This is very easy. Go to your mrbs, then move the cursor over the area text you want to link, in the footer of your browser you find the id number for this area. The same way is to find out the room id....

Was this the right tip for you?

Jens
In reply to Jens-Peter Misch

Re: linking mrbs

by Asma Asma -

Hi Jens,

Thank you, but I will detail my problem more:

after login to my moodle you will find a list of courses, if you click on one of these courses a page containing a link to the mrbs block will be displayed.

folowing that link, you are in the Meeting Room Booking System, you can see all the time slots for this area.

you choose one time slot for booking, you fill the form for booking and that's all,

so normally now when you click on your name in the chosen time slot this link normally redirect you automatically to an other web page that I should specified.

but what is happening is that when I click on this link I see only information that I entred previously in the form.

my prblem is where should I enter the URL of the last web page, in a way that when I click on my name at the booked time I can access the web page of the booked area.

Thanks and Regards,

Asma

In reply to Jens-Peter Misch

Re: linking mrbs

by andy choo -
Hi,

Same problem here.
I have successfully installed MRBS onto Moodle and it is working fine.

Now that i have tried to create a link onto my website and try to login directly onto the MRBS using the username and password, I'm not able to as the system shows that i am not authenticated.

Wondering anyone can help me out.

Thanks in advance.
Andy
In reply to andy choo

Re: linking mrbs

by Jens-Peter Misch -
HelloAndy,
I need more information.
Version of your Moodle, Version of the mrbs-Block

Jens
In reply to andy choo

Re: linking mrbs

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Andy - As I understand what you are asking, you cannot log in directly to MRBS without logging in to Moodle. It is a single sign on where by Moodle's authenitcation is the MRBS authentication. It has been quite a while since the two systems were actually separated. Say more about what you are hoping to be able to do and we will see how close we can get you to it. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Thorsten Groß -
Hello Anthony,

in your description you say "MRBS requires MySQL"; we run Moodle 1.9 with postgres.
Do you know (or anyone else) whether there are conflicts or problems importing the MRBS-Modul in postgres?

Thank you in advance

Thorsten
In reply to Thorsten Groß

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Thorsten - I have not tried it but feel free to give it a shot. Some of the changes may have made it a bit more database independent. So if you are running 1.9 it just might work. If not, just add an issue to the tracker to add support for postgres and let me know what issues you run into and we will see if we can get it working. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Brian Morris -
This is one of the most useful blocks ever. Thanks to all who made it happen. I have two quick questions.

1.) How does one change the default periods? For example we have a block schedule so instead of period 1 it needs to be period 1A, period 1B, period 2A, Period 2B, etc.

2.) Is there a way to change the default view to month instead of Day?

Thanks.
In reply to Brian Morris

Re: CMS integrations: MRBS Integration

by Brian Morris -
Never mind. I found it. You have to edit the config.inc.php file inside the web folder.
In reply to Brian Morris

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
If you are using the latest version, both of these options can be found in the site admin menu under Modules -> Blocks-> Resource Scheduling.

If you are using an older build (such as the moodle 1.9 or 1.8 versions) then you will need to modify the config.inc.php file that will be located in blocks -> mrbs -> web folder of your moodle install.

The period names can be assigned in the calendar settings section, and the default view can be found in the Miscellaneous section.
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Alan Brown -
I really want to use this block in my polytech site, however, our Moodle host won't install it because of security issues. This is their response:

I'm sorry to be the bearer of bad news, but we have been conducting a code review and the mrbs block is unsupportable in its current state and will need to be substantially rewritten, in fact there is a page about it here http://securityreason.com/securityalert/3492 

The way the code uses $_POST and $_GET in emulating register_globals leaves it vulnerable to cross-site scripting, SQL injection attacks, and potentially overwrites variables elsewhere in the Moodle code. The code in the file grab_globals.inc.php should be replaced by optional_param() and required_param() calls.

The database connectivity is currently implemented using a bespoke API which duplicates the functionality of Moodle's adodb library, and has not had a history of thorough security review and testing experience.

Is there any reply for these guys, as I want to be able to implement this? According to your documentation, sql injection vulnerability has been patched, but with downloading the 1.9 version, MRBS still says version 1.2.3 when installed.
In reply to Alan Brown

Re: CMS integrations: MRBS Integration

by Stephen Bourget -
Picture of Core developers Picture of Plugin developers Picture of Testers
Try taking a look at the version available under "Download Latest Version". (It is written for Moodle 1.9.X)

I believe that build is using 1.2.5 of MRBS and all of the $_GET and $_POST requests were removed in place of Moodle's optional_param() and required_param().

The upgrade to MRBS 1.2.5 was addressed as part of CONTRIB-230

The security alert you referenced above was addressed as part of CONTRIB-254

No idea on the Database portion. I know it was looked at as part of CONTRIB-629
but was not changed.

-Steve
In reply to Stephen Bourget

Re: CMS integrations: MRBS Integration

by Alan Brown -
Thanks for that. The version I was looking at was "Download for 1.9" which is 1.2.3, but that latest 1.2.5 seems to have addressed the areas of concern. Hopefully our host will be happy with this, as I think this is an excellent resource and will be invaluable for our school.
In reply to Stephen Bourget

Re: CMS integrations: MRBS Integration

by Alan Brown -
Ok. The response from our Moodle host is this:

Whilst some problems have been addressed, the code still makes very poor assumptions. It still includes the code in grab_globals which emulates register_globals, and still uses it's own simple database access code, which performs no checking, filtering or escaping of variables that come straight from the GET variables from the URL query string.

Obviously they are still not happy esp with the database access. I didn't think it was such an issue, but they do. Time to set-up our own server perhaps??! thoughtful
In reply to Anthony Borrow

mrbs integration with moodle1.9.3

by Asma Asma -

Hi.

I tried to indtall mrbs block with moodle 1.9.3 and it was working well.

but now I installed the moodle 1.9.3+ and I put  mrbs file in moodle/blocks but when I press notifications this windows appear.

1.Enabling the PHP setting display_errors is not recommended on production sites because some error messages may reveal sensitive information about your server.

2.The cron.php maintenance script has not been run for at least 24 hours

3.Please register your site to remove this button

I uninstalled the 1.9.3+ and I installed the 1.9.3 but it was the same thing

although it was working.

In reply to Asma Asma

Re: mrbs integration with moodle1.9.3

by Tech 8055 -
hia Asma,

Well nothing to do with mrbs, its related to server settings.

In your php5 (php.ini) turn off the display errors and you have to run cron.php every 24 hours to check for the errors (if there are any), just clicking on cron.php.

If you want to register your moodle site with moodle.org then click on register button if not
forget about it.

Cheers
Kieron :0)
In reply to Tech 8055

Re: mrbs integration with moodle1.9.3

by Asma Asma -

Thank you Kieron, I changed the php.ini and the message is removed.

but still no notifications, and mrbs is not working.

In reply to Tech 8055

Re: mrbs integration with moodle1.9.3

by Asma Asma -

Hi Kieron,

Everything is ok now!

tnk you.

In reply to Asma Asma

Re: mrbs integration with moodle1.9.3

by A FRI -
I´ve used the mrbs for quite a while now with moodle 1.9.3.
Because of the announced security issues I updated my moodle site to 1.9.4. and installed the mrbs for 1.9.
From the admin page there are no error messages, but mrbs does not work.
When I try to access mbs, there are error messages like
"Table 'nameofdatabasetable.mdl_mrbs_area' doesn't exist" and
"Table 'nameofdatabasetable.mdl_mrbs_entry' doesn't exist"

Any ideas?

Thanks in advance

Andi


In reply to A FRI

Re: mrbs integration with moodle1.9.3

by Jens-Peter Misch -
Hi Andi,
look at your database. In old mrbs version the prefix of the table was mrbs_. In the new version it is like the other tables of yout moodle system. Maybe this tip can fix your problem....

Jens
In reply to Jens-Peter Misch

Re: mrbs integration with moodle1.9.3

by A FRI -
Hallo Jens-Peter,
das wars!

Da ich bisher sowieso nur mit Probedaten gefahren habe, konnte ich die Datenbanktabellen rauswerfen, von moodle neue anlegen lassen und jetzt funzts....

Andi
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Adam Campbell -

Hi,

How do i completely remove the days and months view, leaving only a weekly view as standard?!

Thanks, great block!

Adam

In reply to Adam Campbell

Re: CMS integrations: MRBS Integration

by Adam Campbell -

I changed the standard view to weekly:

$default_view = "week";

How do i delete the 'view day' and 'view month' options at the bottom. Would i do this in index.html?

Kinds regards,

Adam

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Fernando Oliveira -
Picture of Plugin developers

Hello Anthony and all,

When I install the block as per the included instructions and then insert the block into my front page, I get a dead link labelled "Schedule a Resource (Computer Room)" 

Wondering if someone could shed some light regarding some basic installation questions...

1. Is the /web directory (ie.the actual MRBS program) supposed to get installed outside the moodle directory or does it stay where it is?  ...and if it stays where it is, what URL should get entered into the block config section?

2. The MRBS config file looks like it uses the moodle config file to access the database. Is that correct? Do I need to make any changes here?

Thanks for your work on this one,

Fernando

In reply to Fernando Oliveira

Re: CMS integrations: MRBS Integration

by Jens-Peter Misch -
Hello Fernando,
question 1:
the web directory must stay where it is (blocks/mrbs/web). You can see the link if you login as admin, put the block on your front page in moodle and move the cursor of the mouse over the text in the block.
question 2:
when you install the block, you can configure it by the global configuration of the block. Login as admin, Administration Block / Modules / Block / Mrbs section. There you find the configuration section for this block. In the older versions of the mrbs block, you have to confige the config.inc.php file in the mrbs block directory.

So if you use a new block version it is easy to configure this block.

can I help you with this words?

Jens
Average of ratings: Useful (1)
In reply to Jens-Peter Misch

Re: CMS integrations: MRBS Integration

by Fernando Oliveira -
Picture of Plugin developers

Hello Jens and thanks for your reply.

Still no luck.

The admin section for this block just asks for a URL ("What is URL to your MRBS Install?"). In this section I enter (http://mymoodlesite.com)/blocks/mrbs/web

When I follow the link in the block, I get a "Internal Server Error" message.

Any ideas?

Thanks,

Fernando

In reply to Fernando Oliveira

Re: CMS integrations: MRBS Integration

by Jens-Peter Misch -
Hello Fernando,
it looks like your webserver do not like the .htaccess file in the web directory. Please delete this file - I think then it will work....

Is this the tip you need?

Jens
Average of ratings: Useful (1)
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Paul Taylor -
Just an FYI really after some help from Anthony off the forum. I had installed MRBS for someone and it was working well (1.9.3+). However, the school wanted to change the wording of the block and the wording of the link within the block. The defaults are: Resource Scheduling for the title, and Schedule a Resource (Computer Room) for the link. The school wanted different wording as it was not totally relevant.
The obvious one was to change the block_mrbs.php file in the main directory, this didn't work on several servers. I then tried the same file in /lang/en_utf8 in the mrbs block folder, and again there was no result. I thought it might be a caching issue, but it never fixed it. I noticed in another post in this forum that the file can also be in the main /lang/en_utf8 folder, and that fixed it. Hope this helps someone else.

Great work Anthony, a very useful piece of coding.

Paul
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Gareth Hollowell -

Hi

I have the MRBS block installed and fully up and running and all staff at our school think its brilliant...... only sometimes we notice it running REALLY REALLY slowly. Is this a common characteristic for most people i.e. does it run quite heavy? Also these periods of time when it runs slow arnt jut when the site is being hammered, i have tried using it with no one else online and it still runs very slowly!

Any one else find the same problems?? or is it more likely to be a server related problem at my end?

Thanks to anyone who can reply!

Gareth

In reply to Gareth Hollowell

Re: CMS integrations: MRBS Integration

by Mike Worth -
What browsers are you using? I had a problem with ie taking ages to load pages because of some css highlighting, there is a setting to disable this- try turning it off and see if it makes a difference

Mike
In reply to Mike Worth

Re: CMS integrations: MRBS Integration

by Gareth Hollowell -

Hi Mike,

Using ie6 and mainly ie7, had a breif look at the block settings but cant identify the css highlighting you mention am i looking in the right area?

Thanks for your help Mike much appreciated!

Gareth

In reply to Mike Worth

Re: CMS integrations: MRBS Integration

by Gareth Hollowell -
realised where the problem was its in the hybrid highlighting function in the block settings, works fine if you just use background colour highlighting! Thanks for your help Mike!
In reply to Gareth Hollowell

Re: CMS integrations: MRBS Integration

by Sarah Quantick -

Since moving the clocks forward for British summer time all of our room bookings prior to this are an hour behind. Please could someone give me some guidance on how to rectify this issue

Thanks

Sarah

In reply to Sarah Quantick

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Sarah - Yes, this is a known issue. It is related to CONTRIB-1152 and some possibilities for working to resolve it are above. If you need help with this just send me a Moodle message and I'll help guide you through the process. Peace - Anthony
In reply to Anthony Borrow

Installation Probs

by Peter de Groot -
Hi .. this block looks exactly what I need..

I have downloaded and installed from the moodle modules page using the download latest version link. A more of the block_mrbs.php shows the date of 2008/12/27.
The version number is a lot older than that. But I think I have the latest version.

I installed and followed the doc as stated in the README.

I was a bit confused, but think I have created the roles as stated.

The problem .. When I add the block and then click on the link it brings up the main
mrbs page .. but says I am not logged in.

I tried to login manually using the admin username and password. .. but no joy.

Can I get some hints as to where I go from here.....

Am running moodle version 1.9.3 +

TIA
Peter


In reply to Gareth Hollowell

Re: CMS integrations: MRBS Integration

by Ben Ticehurst -

Gareth.

you are the best. thank you for posting this fix. MRBS now flies between screens.

In reply to Ben Ticehurst

Re: CMS integrations: MRBS Integration

by A FRI -
Hello all,

in the block "Site Administration"/"Users"/"Permissions"/"Define Roles" I see that no
extra Permissions (Access MRBS (read/write/admin), (Access MRBS (read/write), (Access MRBS (read only)) for MRBS roles are shown.

So at the moment only the administrator can see the MRBS block.

moodle 1.9.4+
PHP Version 5.2.8
MRBS 1.2.3

Thanks for any advice

Andi


Strange: There seems to be a problem with the databank tables:
Although I deleted them in administration/modules/blocks and created them new via administration/notification there still seems to be data (a testroom and testarea).






In reply to A FRI

Re: CMS integrations: MRBS Integration

by A FRI -
Sorry, found the permissions (in manage roles).
But even putting someone as editing teacher on the front page didn´t make him see the MRBS block, even if an editing teacher should be able to view and edit mrbs.

Andi
In reply to A FRI

Re: CMS integrations: MRBS Integration

by Mike Worth -
The mrbs block requires its capabilities to be set at a system level. Don't assign editingteacher at system level (as this will make all teachers teachers of all courses), create a new role with just mrbs permissions and assign this at system level.

Mike
In reply to Mike Worth

Re: CMS integrations: MRBS Integration

by A FRI -
Thanks- that did it!

Andi
In reply to A FRI

MRBS Integration

by A FRI -
On my new installation (started from scratch) I´ve got new problem:


1. When I try to Forcibly book a room the following message is shown:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/htdocs/w00b7d51/moodle/blocks/mrbs/web/mysql.php on line 62

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /www/htdocs/w00b7d51/moodle/blocks/mrbs/web/mysql.php on line 64

Does any one know what this means?


2. Although I created a global role mrbsedit who is allowed to read/write/admin mrbs, force bookings and see all users timetables, only the moodle-site-administrator, not the mrbseditor is allowed to access the admin-part of mrbs....


Moodle 1.9.5+ (Build: 20090624)
MRBS 1.2.5
Datenbank: MySQL 5.0.51a-3ubuntu5.4
System: Linux dd20416 2.6.24-24-server
PHP: 5.2.9-1nmm1

Thanks for any help

Andi

In reply to A FRI

Re: CMS integrations: MRBS Integration

by Jens-Peter Misch -
Hi Andi,
I need the mrbs-Block versionnumber. The actual build is 2009061900. You find this if you login as admin, block website administration, modules, blocks, Manage Blocks.

I just install this build on a 1.9.5+ Version yesterday without any problems...

Jens
In reply to Jens-Peter Misch

Re: CMS integrations: MRBS Integration

by A FRI -
Hello Jens-Peter,

the version number is 2009060100.
I´ve downloaded it last week from here
http://download.moodle.org/download.php/plugins19/blocks/mrbs.zip
(Download for moodle 1.9) Somewhere it was written not to "download the latest version" because it is for moodle 2.0

Andi
In reply to A FRI

Re: CMS integrations: MRBS Integration

by Mike Worth -
This is odd; in the case of MRBS, the latest version should work fine with 1.9.x (this is what it was developed on- it probably doesn't work on 2.0). The 'download for 1.9' shouldn't have the force book version. Could you send me a copy of the block that you're using so that I can have a look at exactly what code you've got? My address is michael_worth@btinternet.com

Thanks,
Mike
In reply to Mike Worth

Re: CMS integrations: MRBS Integration

by A FRI -
I´ve installed the latest version now (as proposed by Jens-Peter).
It works admirably.

Thanks,
Andi
In reply to A FRI

Re: CMS integrations: MRBS Integration

by Ted Max -
Hi,

Firstly, thanks for all the hard work getting this module going. I have it working well in 1.9.3 and the 'latest' version. Teachers can book rooms etc and it is working well with the Custom Corners theme.

There is a bug though. If you add a second area and a few rooms, when you go to the 'Add Entry' page the 'Room' combo box collapses to nil preventing any further action. If you refresh the page the combo box fills briefly then collapses again. Once the second area is deleted the combo box returns and everything works fine again.
In reply to Ted Max

Re: CMS integrations: MRBS Integration

by Ted Max -
Just adding to my previous post...if you set the option to 'forcibly book a room' everything works fine with two areas including the number of computers in a room (which don't appear when the option is not selected).

Moodle 1.9.5+
PHP version 5.2.10
mysql 5.1.35
mrbs version 1.2.5
In reply to Anthony Borrow

Re: MRBS Integration - roles clarification

by Vinny Stocker -
Picture of Plugin developers

Hi Anthony (and all),

Just thought I'd highlight something that could be mentioned in the docs.

Setting up new MRBS roles as per the docs doesn't quite work. If the only capability set to allow is one of the 3 new ones mentioned (the others left as not set) and the role assigned to users for the front page, the block does not appear. There must be other capabilities needed at a higher context than authenticated user or whatever a logged in user defaults to on the front page. To get the block displaying the roles need to be assigned as site.

Please correct me if I'm wrong, but this is what I had to do to get the block behaving correctly on my site (1.9.4+).

BTW will the MRBS block work with 2.0? smile

Vinny

In reply to Vinny Stocker

Re: MRBS Integration - roles clarification

by Jens-Peter Misch -
Dear Vinny,
give the role as global role, not front page role....then it should work...
was this the right tip?
I describe this in the german moodledoc.
Jens
In reply to Jens-Peter Misch

Re: MRBS Integration - roles clarification

by Peter de Groot -
I put the admin account into the site wide mrbs administrator role, but still no luck sad

When I created the role ... I just selected the option for admin on the administrator
account, and so on for the other roles (view/edit). Is this correct ??

Can you offer me any other suggestions ?

TIA
Peter

In reply to Peter de Groot

Re: MRBS Integration - roles clarification

by Peter de Groot -
Got it ! ... and a possible bug.

The link contained in the block was point to my OLD moodle install on another server/web address . I had installed mrbs onto this old server/web address and then migrated to the new one, sans the mrbs block. The new server/web address is very similar to the old one.

I had to edit the moodle database and change the web address in the mdl_config table to point to the new server !

I assumed that the web address of mrbs was in the block config page, where it was correct. Is this a bug. ?

Anyway ... the logins work well... excellent in fact. I am impressed. Still having fun with roles.. but that is the learning curve..


Another problem ... The n week function in the repeat booking does not appear to be working. I had to put in an end date...

Also ... when I created a series for a lunch period for all the rooms in an area. When I tried to delete the series .. it did not appear to delete it from all of the rooms. I had to go to each room and delete ...

Also .. .how hard is it to increase the number of number of colour codes from 10 (J). I was going to put all all of our courses (more than 10) so I could go crazy with colour .... but will this cause problems with the listing at the bottom of the table ?

Nice module .. tx

Regards
Peter

In reply to Vinny Stocker

Re: MRBS Integration - roles clarification

by Nicky Crampsey -
Hi, I'm having a problem with this module following an upgrade from 1.7 to 1.9. The problem is with a user who previously had the role of MBRS_Scheduler and had read/write access to the booking system.

Following the upgrade, I installed the 1.9.x version of mbrs, recreated the MBRS_Scheduler role via Site Admin, assigned it read/write access to the MBRS block, then allocated the user to this role in System Roles (when I view Assign System Roles, I see the user correctly allocated to the role). The problem I have is that the user still gets an Access Denied error when they try to create a new entry in the booking system. I have no idea why this is happening. I personally have no problem creating new entries as I have Administrator privileges. For some reason, setting block/mrbs:editmrbs to Allow does not seem to be sufficient, however I don't see any other privileges which should need to be enabled for this type of access. Just as a test, in the MBRS_Scheduler role privileges, I set moodle/site:doanything to allow and the user was then able to create new entries, so changes to the privileges of the MBRS_Scheduler role are obviously still taking effect.

Can anyone help with this? Thanks in advance.

In reply to Nicky Crampsey

Re: MRBS Integration - roles clarification

by Jens-Peter Misch -
Hi Nicky,
sorry for this lat answer...
did you update the block mrbs files too?
Mybe there is/was the problem...
Can you tell me the version of your mrbs block?

Jens-Peter Misch
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Dave Thompson -
Hi,

I'm testing the MRBS module on 1.9.5+ but for some reason, only the Administrator account can make/remove bookings. I've globally defined the READ/WRITE MRBS flags as ALLOW for Students and Teachers but I'm still getting the Access Denied - No permission error.

What error(s) might I be making and where should I look?

Thanks,

Dave Thompson
In reply to Dave Thompson

Re: CMS integrations: MRBS Integration

by Jens-Peter Misch -
hi Dave,
when using the mrbs Block you have to give the permission to the front page (after login) on moodle.
Normally the users are authenificatet users after they logged in in moodle. In my moodle I make a special role "Mrbs Bookings" for my teachers in the moodle. This role has read/write permission. Our students get the read permission over the change in the role authentifivated user (read mrbs)....

Understanding my words (in very bad english)....


Jens-Peter Misch (Germany)
In reply to Jens-Peter Misch

Re: CMS integrations: MRBS Integration

by Kieran Bailey -
I am hoping to be able to automatically enroll teaching staff to the System Wide MRBS Scheduler role. Is this possible? I don't fancy having to do this in a manual fashion.

I was hoping to add staff to the group based on which OU they are in in Active Directory (similar to the Course Creators).

Can anyone help with this?
In reply to Kieran Bailey

Re: CMS integrations: MRBS Integration

by Jens-Peter Misch -
OK now I know...
The easiest way is to make a new role with only the rights to read/write mrbs. Then all teacher must set to this role.

You find this
http://docs.moodle.org/de/MRBS_Block
here, but only in german.....
Jens
In reply to Jens-Peter Misch

Importing timetable into MRBS?

by Zbysiu Rodak -
We have a two week timetable which I'd like to import into the MRBS system which is a block on our Moodle VLE, and I need some guidance on how to set about this please.
In reply to Zbysiu Rodak

Re: Importing timetable into MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Zbysiu - Not quite sure what you are wanting to do. I do not recall any import functionality but it has been quite a while since I have looked at the MRBS code. Peace - Anthony
In reply to Anthony Borrow

Re: Importing timetable into MRBS?

by Zbysiu Rodak -
Hi Anthony,
at the moment I have to input the room bookings manually so that teachers can then see which IT suites are free for which periods and book them. This takes a long time and can lead to mistakes. With a two week timetable, that is Week A and Week B bookings are repeated every 14 days. We have a person responsible for the timetabling, which is a complicated task, and she produces as spreadsheet from which I can then input the necessary information into MRBS, usually at the weekend. Managing the Moodle VLE in school is not my main job, I'm an IT technician, so anything which would ease this task would be helpful.
In reply to Zbysiu Rodak

Re: Importing timetable into MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I believe you should be able to do this using the n-Weekly repeat type and specifying number of weeks (for n-weekly) to 2 and selecting the repeat end date as the cut off. Here is what I did to create a series of reservations until Christmas for every other Saturday.

Repeat Type: n-Weekly
Number of weeks(for n-weekly) 2
Repeat Day: Saturday
Repeat End Date: Friday 25 December 2009

Let me know if this gets at what you are hoping for. Peace - Anthony
In reply to Anthony Borrow

Re: Importing timetable into MRBS?

by Zbysiu Rodak -
I wish it was that simple Anthony. We have 11 ICT suites/laptop trolleys which can be booked via MRBS. There are 5 periods in a day and the two week timetable is logical in that if Week A is followed by a week's holiday, then the first week back after the break is Week B, so that I can't simply start a resource in September and carry it through to July, or whenever. Two week holidays are fine in this respect. This is why being able to import from an excel spreadsheet or csv file would save this duplication and my eyes.smile
In reply to Zbysiu Rodak

Re: Importing timetable into MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I did double check and there is no import functionality as part of MRBS. Feel free to create a feature request in the tracker. Peace - Anthony
In reply to Anthony Borrow

Re: Importing timetable into MRBS?

by Zbysiu Rodak -
Oh well. Thank you for all your time and effort.
In reply to Zbysiu Rodak

Re: Importing timetable into MRBS?

by David Fountain -
Actually I forgot that I put this into an access database this year, so you can try this, it's part of the database that I use to populate mrbs with our timetable,
http://www.irpens.co.uk/moodle/MrbsConversion.mdb
You will need to figure out how to get your two week timetable in and it will only work if you use 'Periods' - it's set up for 7 but I think there will be no problem for fewer...
In reply to Zbysiu Rodak

Re: Importing timetable into MRBS?

by David Fountain -
It is possible, I do this. It takes a bit of juggling and the BST/GMT daylight saving time can mess it up...I use periods rather than times so there may be some differences but the process is:

Create the mrbs_entry structure in Excel. To do this you will need to:
  • examine mrbs_room and put the room to ID mapping into Excel.
  • Get your timetable for the year into Excel, I put the calender into Access and the weekly timetable and link them together on the weekday. (Your two-week timetable will make this only a little more tricky I imagine)
  • Arrange the timetable into the column headings seen in mrbs_entry
  • change the dates/times from your timetable into seconds
    • I use periods rather than actual times, so what I do to establish a baseline is to put in one booking and then find it's start_time in mrbs_entry
    • Change 'datetime' from timetable into seconds using the baseline, adding 86400 increments it by a day
  • use a lookup to change rooms from the timetable into the ID required by mrbs
  • entry_type is 0
  • repeat_id is 0
  • timestamp (I normally use a small number like 2009 so I can identify entries I've made via this upload to allow easy removal if I get it wrong)
  • create_by - anything you like but I make this the teacher in charge of the class (they have access to edit etc if you use the same authentication then)
  • name: the class title eg Y10 Set 1)
  • type: you can put anything here, I actually use a letter not included by mrbs in general and then can use that with CSS to colour code the cells in the calender - this makes it easy for me to see what are timetabled lessons and what ad hoc booking have been made.
  • don't put an ID field in, mrbs will create this when you upload the csv.
  • upload to your database. (I have the little DB utility installed that allows me to access the database from moodle's admin screen, list the column headings in the CSV upload...)


Every day = 86400 seconds (start_time and end_time use seconds)


In reply to David Fountain

Re: Importing timetable into MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
David - Thanks for sharing your experience as this is helpful information. I was tempted to mention manipulating the database but opted not to. I should have been clearer that through the MRBS UI there is currently no import functionality. As always, any time someone decides to directly manipulate the database they should have some confidence that they know what they are doing and should start by making a backup in case something goes wrong. Peace - Anthony
In reply to Anthony Borrow

Re: Importing timetable into MRBS?

by Carol Booth -
Hi Anthony,

I am confused. I'd like to import MRBS bookings and the MRBS docs mention MRBS block/import as a way of importing timetable via cron. I have seen http://tracker.moodle.org/browse/CONTRIB-1189 which appears to be exactly what we want.

Is this feature not 'live' yet?

thanks,
Carol
In reply to Carol Booth

Re: Importing timetable into MRBS?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Carol - Sorry I had forgotten about this work that Mike Worth did. In theory it exists but I have not tested it. Rather than using cron it looks like it uses import.php. So in the latest version (HEAD) it should be 'live'. Perhaps Mike might be able to offer some clarity. Peace - Anthony
In reply to Anthony Borrow

Re: Importing timetable into MRBS?

by John Rickard -
Hi guys,

The import function of MRBS seems fantastic, but...

Is it at all possible to import into periods?

Cheers
JR
Treviglas Community College
~Newquay, Cornwall~
In reply to John Rickard

Re: Importing timetable into MRBS?

by David Fountain -

How do you get the CSV imported?

For periods I think you set period 1 starting at 00:00 and ending at 00:01, period 2 at 00:01 to 00:02...but until I figure out how to get the csv file in I cannot test it smile

In reply to David Fountain

Re: Importing timetable into MRBS?

by John Rickard -
To get the CSV in I have created a folder in the MRBS folder called, import...

In the settings of the block (Administration > Module > Blocks) there is a field at the very bottom, which you have to put the path to the file in, this is imported when cron runs...

Its very much worth reading the import documentation, which I suspect you have seeing as you know about the CSV import

Cheers
JR
In reply to John Rickard

Re: Importing timetable into MRBS?

by John Rickard -
Hi Everyone,

I have managed to bodge an import into periods...

The periods are timed from midnight for one minute... So, Period one is 00:00 until 00:01 then Period two is 00:01 until 00:02 and so on...

If you format your CSV into the above time frame then it will import...

Hope this helps others...
In reply to John Rickard

Re: Importing timetable into MRBS?

by David Fountain -
Cheers John, had to kick myself - I'd seen the field but had interpreted it as a cookie session lol smile
In reply to Dave Thompson

Re: CMS integrations: MRBS Integration

by Ian Serrao -

Hi Dave,

I'm also having this problem. can you advise how you got over it.

The only user who can add a room booking is the Admin user. I have added myself to the roles but still have access problems.

Ian

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Ken Tuley -
Having an issue with roles here. I have a large group of people assigned to the scheduler role. most can schedule just fine. others get an access denied error when trying to schedule. They can read the calendar just fine.

I've tried changing their role, but nothing seems to work.

Any thoughts? ideas? places to look? things to try?

I'd enter this in the tracker, but it's down for an upgrade at the moment. Thanks in advance.

Ken
In reply to Ken Tuley

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ken - If the folks who are being denied have been set to the mrbs_scheduler role at the site context I cannot think of a reason why they would be denied access. I'm not sure if anyone else has seen this behavior. Let me know if there is anything I can do to help you troubleshoot it. Have you been able to isolate a couple of users that are being denied access? Peace - Anthony
In reply to Ken Tuley

Re: CMS integrations: MRBS Integration

by Ian Serrao -

I'm also having this problem. can you advise how you got over it.

The only user who can add a room booking is the Admin user. I have added myself to the roles but still have access problems.

Ian

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -

Did We lose the possibility to delete a repeated booking?
I had to delete the repeated entries one by one...

I'm Using: block_mrbs.php,v 1.10 2009/06/19.
In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - If we did it is a bug so thanks for sharing your experience. We were having some issues with language strings that was preventing deleting options from showing. I recommend removing any new lines from the blocks_mrbs.php language file. If that does not resolve your issue please file a bug report in the Moodle tracker and we will work toward reproducing it and seeing what needs to be done to resolve it. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jean-Pierre Pawlak -
Anthony

I did a quick search for new lines in the blocks_mrbs.php language file.
I didn't know what to look for so... I didn't find anything suspect.

Just an annoying bug, I think.
It's in tracker now: CONTRIB-1560

Cheers
Jean-Pierre


In reply to Jean-Pierre Pawlak

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Jean-Pierre - Thanks for filing the issue in the tracker. I've commented on CONTRIB-1560 and look forward to getting to the bottom of what is happening. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Carol Booth -
Hi, I'd like to remove the 'log off' button from the mrbs screen - it's redundant because the authentication is coming from Moodle and it's likely to cause confusion.

I managed to customise the links at the top left by changing

$vocab["mrbs"] in moodle/blocks/mrbs/web/lang.en.php

and
$string['accessmrbs'] in moodle/blocks/mrbs/lang/en_utf8/block_mrbs.php
Can anyone tell me where to comment out the 'log off' button?

thanks! Carol
In reply to Carol Booth

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Carol - I would be happy to help you remove the logoff button. Start by checking the /blocks/mrbs/web/session_php.php file. Let me know if you have any questions. Peace - Anthony
In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by John Rickard -
Hi Everyone,

I am looking at doing an upload into the MRBS tables to make it easier for bulk creation of events...

As we use this for a school timetable, booking computer rooms the timetable repeats weekly...

So its not going to be as easy to upload into mrbs_entry - im guessing something needs to go into mrbs_repeat

Could someone give me some pointers? - mainly on how the repeat table i setup - I am a l;ittle confised about the repeat type and how it works that out...

Thanks
JR
In reply to Anthony Borrow

MRBS Version

by Greg Jeffrey -

Hi Anthony,

My Department manager recently downloaded the standalone MRBS from their website.  I was coincidentally working on the Moodle integrated block (ver MRBS 1.2.5).  My leader is keen on some features that appear in the standalone - MRBS 1.4.3.  May I ask if the update would be a simple process to make us both happy smile (and is there any likelihood of the Moodled version being updated which would make us even happier? )

Greg

In reply to Greg Jeffrey

Re: MRBS Version

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Greg - I felt like I needed to fork away from the original MRBS project around version 1.2.5 because of some security issues. After that, and forgive my poor memory as it has been quite a while, there were significant changes that made it difficult at the time to incorporate the code into Moodle as a block. I forget what the errors were that I was receiving when I tried. I am no longer using the code in a production environment but recognize that many folks have found the block helpful. Stephen Bourget stepped in and helped out with getting roles setup. More recently, I have asked Mike Worth to help me out with maintaining the code since I believe he is actually using it in production and had some suggestions for improvement. So, I am open to revisiting the issue with Mike Worth and seeing what it would take to get 1.4.3 working as a Moodle block but at the moment I do not anticipate having much time to work on that project. If someone is interested and wants to work on it, I would be happy to guide them along but it will require someone stepping to the plate. Suffice it to say, I am very open to more community involvement on the MRBS block. At this point, I consider my efforts primarily as maintaining it as best as we can but not really developing it further. There are many unresolved MRBS-related issues in the tracker and plenty that can be done to improve things. Please feel free to add to the list any issues, suggestions, feature requests, etc. and we will see how folks respond. So the short answer is that no the update would not be simple but it may be worth considering. Peace - Anthony
In reply to Anthony Borrow

MRBS multiple installations?

by Ken Tuley -
Is it possible to have multiple instances of MRBS on the same site? Want to put one set of "rooms" for booking in one course, another set of rooms in another course.

My guess is that I"d have to do some modification to the db and tables... as well as the code?

or is there some other solution?

Thanks.

Ken
In reply to Ken Tuley

Re: MRBS multiple installations?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ken - Currently MRBS block is not setup for various courses. This would require a reasonable amount of work which is not insurmountable but not something I am planning on doing any time soon; however, if someone wanted to take it on then I would be willing to help review, test, and commit when ready. We would need to begin associating a courseid with each area, room, and booking. I'm not sure if there is a feature request for this in the tracker - if not please feel free to create one. Peace - Anthony
In reply to Anthony Borrow

Re: MRBS multiple installations?

by Ken Tuley -
Thanks Anthony.... I have created a feature request.

CONTRIB-1676

In writing the description, I figured out a work around, it just means that multiple schools (courses in my moodle setup) would see and thus be able to book rooms at other schools.

so I guess it's really more of a convenience thing, although it also avoids mistakes as someone from one school could book the library at another school.

Ken
In reply to Ken Tuley

Re: MRBS multiple installations?

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ken - Thanks for creating the issue. Your comments remind me that we need to give some thought as to how to handle areas and rooms. I am wondering if there would be situation in which a course should have its own set of areas. I would be interested in some actual use scenarios. But I also recognize that common areas and rooms (those at the site level) should be included in the bookable options with in a course. Peace - Anthony
In reply to Anthony Borrow

Teacher access to MRBS block

by Aidan McCanny -
Hi Ken

I have recently installed the MRBS block in Moodle. As an administrator everything works fine. However, no-one else (ie teachers) can see the block. I created a new role - roombooker - and allowed "Access MRBS (Read / Write / Admin)". I created a 'teacher' account and give them the role of the roombooker but wasn't able to see the MRBS block. I assigned the role of roombooker to the 'teacher' account in the Front Page setting but still to no avail. I clicked on the assign roles icon on the block itself and assigned the roombooker role to the teacher account. Still nothing. As I tried various other alternatives, I had the 'teacher' account able to 'Turn Editing On' (for the MRBS block only), they could then see the block heading - they had the rights to delete the block, move the block, etc but couldn't actually see the contents of the block and so couldn't access the Room Booking system. I even made the 'teacher' a Front page administrator. I was again able to edit the MRBS block but unable to see the contents.

Any thoughts?

Aidan
In reply to Aidan McCanny

Re: Teacher access to MRBS block

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Aidan - Keep in mind that these role assignments need to be made at the system context level. I would be happy to look at this with you. Let me know how we can be of help. Peace - Anthony
In reply to Anthony Borrow

Re: Teacher access to MRBS block

by Aidan McCanny -
Hi Anthony

Thanks for getting back to me. Can you explain what you mean by "role assignments need to be made at the system context level"?

Aidan


In reply to Aidan McCanny

Re: Teacher access to MRBS block

by Aidan McCanny -
Hi Anthony

I have made the MRBS available as a block within a course. If I am in as a site administrator, I have access to the block and can go and book a room as expected. If I go into the course as a user that has been made administrator of that particular course, I can see the heading of the block but not the link and so can't book a room.

I don't want to make every teacher a site administrator just so that they can book an ICT room.

Any help appreciated.

Thanks

Aidan
In reply to Aidan McCanny

Re: Teacher access to MRBS block

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Aidan - Try using the Site administration block (on the frontpage) -> Users -> Permissions -> Define roles -> Add new role to create a role for MRBS_Schedulers (or something similar) that has the capabilities to read and write in the scheduler. Then go back to Users -> Permissions -> Assign system roles and add the teachers you want to that newly created role. Then the teachers should be able to schedule in the MRBS block without having to be admins. Let me know how that goes or if you have any questions. Peace - Anthony
In reply to Anthony Borrow

Re: Teacher access to MRBS block

by Aidan McCanny -
Anthony

That's brilliant - now working as expected, thanks.

I have another 'request' - when I had previously set up MRBS outside Moodle, I was able to restrict the number of sessions a teacher could book at any one time by using the $max_days_ahead variable (e.g. $max_days_ahead=5 for a max of 5 sessions) within the config.inc.php file. This was to prevent teachers from block booking a period for a whole term!! I'm unsure if I changed/added anything else.

When I added the line: "$max_days_ahead=5;" to the end of the config.inc file within the moodle mrbs block, nothing changes.

Any suggestions?

Thanks again


Aidan
In reply to Aidan McCanny

Re: Teacher access to MRBS block

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Aidan - My guess is that the $max_days_ahead functionality may have been something introduced in the MRBS after I forked it for security reasons. Feel free to create a feature request for the functionality you desire and if I get a chance I'll work on implementing it. I'm not sure if others may have a patch for the requested functionality but I would be happy to look at it if it does exist. Peace - Anthony
In reply to Anthony Borrow

Re: Teacher access to MRBS block

by Michael Feldmann -
I have managed to integrate mrbs into my moodle finally, and having found the way how to assign people to the MRBS_Scheduler role, this works.

But, as, when the system finally goes online, there will be some 1300 students and 120 teachers. So it will be rather tiresome to find those in the long, long list who are actually entitled to book rooms. Does someone have an idea for an easier way?

Regards
Mike
In reply to Anthony Borrow

Character conversion from browser to database

by Oktay Dayıoğlu -

Hi,

When I enter non-English characters in Reservation for section of the entry form in unicode enabled browser, in mysql database the non_emglish characters are shown as html codes. Character conversion from browser to database is failing.

Example: ÇöşüğIçÖÜÖ will be shown in database as ÇöşüğIçÖÜÖ

When I enter course short names with non-English characters  in mrbs they will not match to moodle's course short names.

Help needed.

Thanks

In reply to Oktay Dayıoğlu

Re: Character conversion from browser to database

by Toni Soto -
Hi,

I'm dealing with the same issue described by Ahmet. I use utf-8 for the whole site. When I type spanish characters in a form (i.e adding or editing an entry) the database (MySQL with utf8_general_ci) saves non-standard characters.

For example: if I write: 'España' the database shows 'España'.

This only happens int the mrbs block. It doesn't happen when I add a resource or edit a web page in Moodle. The same I write is the same I read from the database.

I have also checked out that my browser was not causing this issue. Both Moodle (include the mrbs block) and the browse were in utf-8.

Any idea about how to solve this issue...?

Best regards from Spain.

Toni

In reply to Anthony Borrow

MRBS Integration on IE is appearing slowly

by Steve Audus -

Greeting all,

I've just installed MRBS, and now adding existing bookings into the rooms.

But the problem i am having is the main page takes ages to load when using IE.

It appears fine using firefox and opera, but at work we are restricted to IE only.

could anyone quickly look at this page

http://moodle.chaucer.sheffield.sch.uk/blocks/mrbs/web/

and spot the problem, any suggestions welcome.

Thank you

Steve Audus
Chaucer BEC 

In reply to Steve Audus

Re: MRBS Integration on IE is appearing slowly

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
Steve - Which version of IE are you having troubles with. Since I do not use Windows it would be good if we could get some more information about the issue and then I would be happy to try to get things patched up. Thanks for raising the question. Peace - Anthony
In reply to Steve Audus

Re: MRBS Integration on IE is appearing slowly

by Jean-Pierre Pawlak -
Did you try to set the highlight setting to bgcolor (standard = hybrid)?
This solved our issue with IE.
Average of ratings: Useful (1)
In reply to Jean-Pierre Pawlak

Re: MRBS Integration on IE is appearing slowly

by Steve Audus -
Sorted Instantly Fixed the problem. Thank you
In reply to Anthony Borrow

Two Week Timetable

by Steve Audus -
Is it possible to make a room booking every other week?

We have a 2 week timetable, so for example

Room 120 may be timetabled and unavailable Monday Period 1 Week 1
but available for booking the following week (week 2)
Then of course unavailable the next week. (week 1)
and so on.

Any suggestions?
Thank you


In reply to Steve Audus

Re: Two Week Timetable

by David Fountain -

Steve

There is the n-week function which (I've not used) I believe allows you to book every 'n' weeks - setting this to 2 should do an every other week booking. The problem will be if you have breaks in the timetable, eg due to a week's holiday.

I have always taken the year's timetable as a csv and imported it directly into the database. Using Excel or Access I can get the timetable right first and then put it in. Further up this forum list are some guides on how to do it.

A link to the Access database program I use (Please back up any MRBS tables before using it) It would need a little tweaking to fit a 2-week timetable (but not a lot) and it uses periods rather than actual times (again a small tweak would probably do it)

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Mark Smith -
Okay, I have been running a moodle at are school for a year now and had a nice work around for scheduling time in the computer lab. I saw this while I was perusing the mods. I am running moodle 1.9.8 or somewhere around that version. I have downloaded the block and unpacked it. I am running the moodle on a windows machine and I am running the windows package. Now I know you are not supposed to do that for production sites, but it is a small site and that is all the time I have to set it up. I am a teacher and coach and this is what I am doing on the side to try to help other teachers start integrating technology.

So, as I understand it, I take the MRBS folder and put it in the blocks folder in the moodle directory. Then I go to the database and have to create the tables. This is where I am stuck. I tried to create the table and there are so many option like how many fields in the first screen and the length of field in the second page. Can anybody help me out here. This block looks like a nice solution to my work around and be easier to use. Please help.

Oh, I have down loaded from the mod page the 1.9 version. I just need help with the tables I think. I am sorry I am new and don't have the time to figure it out and I am sure someone out there can. Please

Mark
In reply to Mark Smith

Re: CMS integrations: MRBS Integration

by Bernard Courant -

I'm new also, but I know this one.

  1. Log in with administrative privilages.
  2. On the 'Site administration' menu, (mine is on the left hand side of the front page) and click on the first line that should say 'notifications'

Moodle will 'sense' the new block and setup the database and fields by it self. (Give or take a couple of screens).

We use the MRBS block for scheduling use in our simulations lab, works great.

Bern

In reply to Bernard Courant

Re: CMS integrations: MRBS Integration

by Mark Smith -
Thank you very much. I realized that on my back up site on which I was trying to run it had a error that I needed to address. Once I fixed that everything is running great. If I can get the teachers to go for it it will make it easier!!! I have one issue. I have gone through the config.inc.php file and made the adjustments to the periods of our day. I also have changed the default view. I have logged off and so on and the changes aren't showing up. So, can anyone help me with this???
In reply to Mark Smith

Re: CMS integrations: MRBS Integration

by David Fountain -

I've just made the move to the latest version of this block and having a few problems with the BST which I've manually changed.

Is your MRBS showing times rather than periods?

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Bob Singletary -

Anthony or anyone,

We have MRBS successfully working on our 1.9.x Moodle install. However, the only ones who are able to view/schedule/admin the calendar are Moodle admins. Anyone who is not a sitewide admin cannot even view the block. I have tried assigning the MRBS Viewer/Scheduler/Admin roles both at the block and at the front page roles levels and those users still cannot view the block much less access it. Even tried modifying override permissions but with no luck. I suspect it is because we use My Moodle for the standard user interface. If this is the case, any workaround (other than disabling My Moodle)? Apologies if I missed this in this long thread or Moodle Docs.

Kind Regards,
Bob

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by David Challoner -

Has anyone got this working with Moodle 2.0?

In reply to David Challoner

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers

David - I have not had much time to work on the MRBS block. I'm really looking for someone else who is actively using it to take over maintaining it. It has not been upgraded to work with Moodle 2.0; however, in its current state I cannot in good conscience recommend it for any production server. It really does need some TLC so any help someone may be able to offer just let me know. Peace - Anthony

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers

For those wanting to test MRBS block in 2.0 - there is a patch which I have not tested available in CONTRIB-1804. Please add any comments, suggestions, or problems found with the patch in the tracker. Peace - Anthony

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Summiya Abbasi -

plz sir tell me how to integrate moodle with MRBS.plz tell me the whole step from start to create database and link that database with moodle database and then how  get the MRBS connectivity in moodle plz sir i will be very thanks full to yoy

regards,

SAm Abbasi

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Mark Smith -

I am using the block very successfully on moodle 1.9.8 and love it I want to migrate to 2.0 can you tell me how to use the patch to install on 2.0  I would love to test it on my test sight.

In reply to Mark Smith

Re: CMS integrations: MRBS Integration

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers

Mark - At the moment, I've not had any chance to test the patch myself. Perhaps someone might be able to make the patch available via Github and post the URL to a zip file that folks could use to test a 2.0 version. Please keep in mind that there are some substantial issues with the code such that I consider the MRBS block as "not suitable for a production server" but please feel free to test it on a test server. Peace - Anthony

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Herbert Ricken -

Dear Anthony,

 

thanks for the 2.0 plug-in. I followed the installation-instruction and got the following error:

Hallo liebe Community,

 

nach einiger Zeit steht unter

https://github.com/davosmith/moodle-mrbs#readme

ein Plugin für mrbs in moodle 2.0 bereit. Bei mir taucht leider bei der Installation folgender Fehler auf:

Somehow the mod_question is broken. Maybe you or anyone can help

 

Greetings from Germany

In reply to Herbert Ricken

Re: CMS integrations: MRBS Integration

by John Ryan -

I have just added the MRBS mod to my test site running Moodle2.1.2+. I used version $plugin->version = 2011070200; so this may have been corrected already.

Unfortunately it failed to run once installed.

The errors that stopped it were fairly simple to fix.  They were in the file

mrbs/web/index.php

In the code below the line beginning $sql is not needed and fails as $tbl_room is not defined

I edited the $res line as it has an unnecessary 'area_id' that causes the DB call to fail. All worked after that, though I've not thoroughly tested it.

if (!empty($default_room)) {
    //$sql = "select area_id from $tbl_room where id=$default_room";
    //$res = $DB->get_record('mrbs_room', 'area_id', array('id'=>$default_room));
    $res = $DB->get_record('mrbs_room', array('id'=>$default_room));
    if (!empty($res)) {
        $redirect->params(array('area'=>$res->area_id, 'room'=>$default_room));
    }
}

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Alex Goodyear -

Hi guys, Ive just installed the Latest Version of MRBS onto moodle 2.2 and up to now we have just manually entered all books which has been abit of a pain. So i thought i would try to get the import working. I have added the following test line to the import file and declared its location in the block config.

00:00,00:01,2012/05/01,1 1 1,Room 13,adminaxg,AXG - 11 - IT,Class

But when the cron runs i get the following error.

Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217
Warning: rename(Y:\MOODLE2\blocks\mrbs\ict.csv,Y:\MOODLE2\blocks\mrbs\ict.csv.20120328): The process cannot access the file because it is being used by another process. (code: 32) in Y:\MOODLE2\blocks\mrbs\import.php on line 150

i have looked at line 217 of the import.php and it seems to be an issue with us using periods? can anyone help


Alex Goodyear

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Eric Boehm -

I have MRBS installed on Moodle 1.9x, I have it running, however there is a missing part, (I believe)  in the admin role. There was a admin approval for the bookings, how ever it is not there. Is there any ideas? 

In reply to Eric Boehm

Re: CMS integrations: MRBS Integration

by Eric Boehm -

In addition the email fuction is not working. It states that the user is not reconized.

In reply to Anthony Borrow

Strange errors

by Dan Trockman -

I had fatal errors reporting turned on in debugging and got this display:

"Deprecated: Function eregi_replace() is deprecated in /var/www/moodle/lib/weblib.php on line 2043 Deprecated: Function eregi_replace() is deprecated in /var/www/moodle/lib/weblib.php on line 2044"

Having fatal error reporting turned on to report to page also broke the lists in room booking, adding four "undefined" resources to the list. Is this error a concern? Anything to update here?

Attachment mrbs1.gif
In reply to Dan Trockman

Re: Strange errors

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers

Dan - There was some discussion about this in MDL-20821 for Moodle core which may be helpful to you in deciding what to do. At this point the MRBS block is really not suitable for a production site. There are some security concerns and I've not had time to give it the TLC that it needs. I am happy to pass to project on to someone else who might be interested in maintaining it. Unfortunately, I am no longer using it in a production environment and other duties keep me from putting too much time into it. Peace - Anthony

In reply to Anthony Borrow

Re: Strange errors

by Ger Tielemans -

About the ereg function: I see this too in MRBS. In other modules I could solve it by changing this kind of lines:

ereg('pattern', 'string');

INTO:

  preg_match('/pattern/', 'string');
More complex info can be found here: http://docstore.mik.ua/orelly/webprog/pcook/ch13_02.htm

I will give it a try here also

Another question Antony:

I want to use MRBS only in a course that gives only access to 5 staff members. What we wish now is to publish the rooms as events in the moodle calendar of the moodle courses: in that case we can use topic format but still offer students a room/timetable on the pages of the calendar.  

  • we must extend the mrbs record with the unique shortname of a course ( and one for the lecturer name)
  • we must extend the record with a flag (that goes down when a room is created and publsihed and goes up when a room reservation is changed or deleted)
  • we need a routine that is called when the program opens and closes (or a cron? or just a button) and updates the rooms with the flags up.

Did you already try such a thing?

Greetings, Ger

In reply to Ger Tielemans

Re: Strange errors

by Ger Tielemans -

My mrbs says in the web-dir that it is version MRBS 1.2.5. Under apchefriends/xampp it cannot find the help pages if I press Help on the mainscreen. If I change in block_mrbs/web/help.php blocks/mrbs into /blocks/mbrs on the lines 44 45 and 47 it is solved on that system. (see attachment - remark added to tracker)

Attachment ScreenShot131.png
In reply to Ger Tielemans

Re: Strange errors

by Ger Tielemans -

I also found ereg_replace errors:

Deprecated: Function ereg_replace() is deprecated in D:\xampp\htdocs\1910b\blocks\mrbs\web\month.php on line 193

Deprecated: Function ereg_replace() is deprecated in D:\xampp\htdocs\1910b\blocks\mrbs\web\month.php on line 262

Deprecated: Function ereg_replace() is deprecated in D:\xampp\htdocs\1910b\blocks\mrbs\web\month.php on line 263

I changed again ereg_replace(" ", ... into preg_replace ("/ /i", ...

errors gone and page seems the same (but is it?)

Attachment ScreenShot132.png
In reply to Ger Tielemans

Re: How to change period to time

by Anthony Anderson -

I am sorry if this is obvious, but how do I change period to time. I don't want periods, I want time slots.

Thank you

In reply to Anthony Anderson

Re: How to change period to time

by hans hansen -

Yes, how do I change period to time.

Frisør

In reply to hans hansen

Re: How to change period to time

by Carol Booth -

In the block settings (Administration: Blocks: Manage Blocks) there is a yes/no option for 'use periods', about 5th option on the form.  Is this what you mean?

Carol

In reply to Anthony Borrow

Re: MRBS Integration 2.1.2+

by Lynn Harvey -

Have installed MRBS on our 2.1.2+ server

2 issues:

Major- single entry/edit of class works fine but using the n-period function the module freezes with the following error:

Fatal error: Maximum execution time of 300 seconds exceeded in Q:\Data\xampp\htdocs\moodle\blocks\mrbs\web\mrbs_sql.php on line 371

Minor - displays the booking on the left of the column - would prefer it centred under the Room Name.

Any help with the major issue would be greatly appreciated - I have no desire to enter each entry of next year's timetable individually.

Thanks, Lynn

In reply to Lynn Harvey

Re: MRBS Integration 2.1.2+

by Lynn Harvey -

Am desparate for a solution, further investigation has shown:

1. the version of MRBS available on sourceforge works fine but doesnt allow for internal authenication

2. the github version, which does provide internal auth, floods moodle with php conflicts whenever I try to use n series entries, and is slower than the sourceforge one even for single entry use.

In reply to Lynn Harvey

Re: MRBS Integration 2.1.2+

by Carol Booth -

Hi Lynne,

Sorry to hear you're still having trouble.  I haven't got much to offer as I've stayed with moodle 1.9 (mainly because I wanted to be sure mrbs would be fine with 2 - it's one of the 'core' uses at our school now).  If going to 1.9 is an option, I can tell you that n-weekly works fine (although it's a bit picky filling in the form but I'm sure you've already been through that). 

The only other thing I can suggest is importing bookings to the database directly (with all the usual health warnings about backing up the database and danger of breaking things).  David Fountain shared an access database at http://moodle.org/mod/forum/discuss.php?d=121753#p737735 which I have used successfully (although it's necessary to adjust for British Summer time - confusing if you're using periods because the entries all appear in the database but not in the interface because they're defined as minutes past midnight but the timestamp is minutes past 11 BST)

Good luck and please post with your solution when you find one!

Carol

In reply to Carol Booth

Re: MRBS Integration 2.1.2+

by Georg Moersheim -

Hi  everyone,

has anyone managed, to integrate the mrbs in Moodle 2.2? MRBS works fine in our moodle 1.9.7., but we want to update to 2.2.

Second problem: Is it possible to disable the booking after a certain numbers of bookings (e.g. three in an week in a certain row)?

Thanks for help!

Georg Moersheim

In reply to Georg Moersheim

Re: MRBS Integration 2.1.2+

by Lynn Harvey -

it works but

I had to re-enter bookings and the n-series function wouldnt work - so it was punishing.

Will be investigating over holidays which bits arent co-operating.

In reply to Lynn Harvey

Re: MRBS Integration 2.1.2+

by Stefan Maric -

Can you provide a (download) link to the MRBS module which you have got working in Moodle v2.2

 

thanks

In reply to Stefan Maric

Re: MRBS Integration 2.1.2+

by Lynn Harvey -

Stefan, I am unsure what you precisely need, site access to the MRBS module?

In reply to Lynn Harvey

Re: MRBS Integration 2.1.2+

by Stefan Maric -

Was just checking that it was this version of MRBS that you have used


http://sourceforge.net/projects/mrbs/files/

Looking for the latest version? Download mrbs-1.4.7.zip (832.7 kB)   


I will start with this - can you let me know if you used something different


Thanks



In reply to Stefan Maric

Re: MRBS Integration 2.1.2+

by Lynn Harvey -

Meeting Room Booking System - MRBS 1.2.5
SystemWindows NT 8230-WS01 6.1 build 7601 (Unknow Windows version Enterprise Edition Service Pack 1) i586
PHP: 5.3.5

In reply to Lynn Harvey

Re: MRBS Integration 2.1.2+

by Stefan Maric -

For reference I have downloaded & installed the MRBS block from the following 

Download for Moodle 2.0 link

on

http://moodle.org/mod/data/view.php?d=13&rid=734&filter=1

and have tried to follow the instructions from here

http://docs.moodle.org/22/en/MRBS_block

 

Appears to be insralled - have asked the ICT coordinator to log in & see if it works as expected -- will provide upxdate in a few days time

In reply to Stefan Maric

Re: MRBS Integration 2.1.2+

by Georg Moersheim -

Hi Stefan,

I installed the mrbs from your download-link in a local Moodle (Ver. 2.2.1 with XAMPP 1.7.3)  on my Computer and it works fine! I hope that the local installation works just as a server-Installation ...

Georg

In reply to Georg Moersheim

Re: MRBS Integration 2.1.2+

by Stefan Maric -

Hi, thanks for double-checking for me

The teacher has also confirmed expected operation

 

We've now gone back to the beginning of our problem - which was essentially upgrading / migrating the school moodle from V1.9 to v2.2 & also include MRBS

 

That is now done - they are just checking to see if they can live without the old V1.9 modules/blocks/plugins that I had to 'cut-out' during the upgrade

 

Regards

Stefan

In reply to Stefan Maric

Re: MRBS Integration 2.1.2+

by Carol Booth -
I've just tried to install davosmith-moodle-mrbs-5d23096.zip from the download for Moodle2 link on my test server which was upgraded from 1.9 to Moodle 2.2.1+ (Build: 20120112) The block appears to install fine but then I get Coding error detected, it must be fixed by a programmer: PHP catchable fatal error when I click the link to 'schedule a resource' I already removed and re-installed with a fresh download but this didn't solve the problem. Can anyone tell me where to start with finding and solving the problem? thanks Carol
In reply to Carol Booth

Re: MRBS Integration 2.1.2+

by Stefan Maric -

Carol

In the end I gave up trying to migrate from Moodle1.9 - 

So I installed a clean copy of Moodle2.2 & PHP3.5, Installed mrbs, then exported data/users from their 1.9 install into the new one - stumbled over a few minor php issues (if I remember correctly - nothing specific to mrbs) - overall a fairly smooth job

Obviously the teaching staff have had to re-apply their styles/preferences and 'replace' any modules that weren't part of the standard set

In reply to Stefan Maric

Re: MRBS Integration 2.1.2+

by Carol Booth -
Stefan, thanks for your helpful reply. I finally installed mrbs from the modules and plugins directory on Moodle 2.2.1 (upgraded from 1.9) on my test server. I did fix the database schema and collation as part of the upgrade but I think the main issue may have simply been that I wasn't using the latest version of the mrbs block. I hope this will give hope to others out there! Carol
In reply to Carol Booth

Re: MRBS Integration 2.1.2+

by Alex Goodyear -

Hi guys, Ive just installed the Latest Version of MRBS onto moodle 2.2 and up to now we have just manually entered all books which has been abit of a pain. So i thought i would try to get the import working. I have added the following test line to the import file and declared its location in the block config. 00:00,00:01,2012/05/01,1 1 1,Room 13,adminaxg,AXG - 11 - IT,Class But when the cron runs i get the following error. Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Notice: Trying to get property of non-object in Y:\MOODLE2\blocks\mrbs\import.php on line 217 Warning: rename(Y:\MOODLE2\blocks\mrbs\ict.csv,Y:\MOODLE2\blocks\mrbs\ict.csv.20120328): The process cannot access the file because it is being used by another process. (code: 32) in Y:\MOODLE2\blocks\mrbs\import.php on line 150 i have looked at line 217 of the import.php and it seems to be an issue with us using periods? can anyone help Alex Goodyear

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by ali adam -

hello folks

 

Can the admin book rooms for teachers, and each teacher view his own timetable???

In reply to Anthony Borrow

Re: MRBS Integration (Working with 2.2.1+ ?)

by Jason Hollowell -
Picture of Particularly helpful Moodlers

Hello,

I just installed this on 2.2.1+ and can't get past the 'verification' screen that is supposed to appear when visiting your site as admin after installation. I removed it and everything is back to normal. I'm wondering if anyone has successfully installed this on 2.2.1+ or if anyone has had the same problem I'm having?

Jason

In reply to Jason Hollowell

Re: MRBS Integration (Working with 2.2.1+ ?)

by Jason Hollowell -
Picture of Particularly helpful Moodlers

Sorry,

I wasn't paying attention, I see above that some have succeeded in installing on 2.2.1+

Here are some more details about my problem. After installing the block and clicking on upgrade at the screen that shows that it is going to be installed, I get stuck when moodle tries to access the following script:

admin/index.php?confirmplugincheck=1

It just stops there with the top half of the window normal and the bottom half empty. I deleted the block, turned on debugging, and then went through the install again and here is what I get:

block_mrbs

Fatal error: Class 'DOMDocument' not found in /var/www/html/lib/xmldb/xmldb_file.php on line 77

Any ideas?

Jason

In reply to Jason Hollowell

Re: MRBS Integration (Working with 2.2.1+ ?)

by Thomas Niedermaier -

I had the same problem in moodle (when installing a plugin).

The installation of php-xml helped.

e.g. with redhat/centos:  yum install php-xml

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by John Szkudlapski -

Hi

I am just in the process of migrating our Moodle from a linux box onto a Windows box, but the only thing that is stopping me is MRBS.

Can I configure MRBS to use our local microsoft exchange box to send emails, as there is no local sendmail installed on the windows box? i.e set it to use the ip address of 10.0.1.x with a proper username and passowrd.

Sorry, I am still on v.MRBS 1.2.3 running Moodle 1.9.9 - im upgrading to 2.x once I have everything running as expected.

Thanks

In reply to Anthony Borrow

Re: CMS integrations: MRBS Integration

by Jed Trow -

Hi I have just installed MRBS on moodle 2.3.2 and I am having an issue.

When I go to book a room ( we have a 2 week timetable so I have to do an n-weekly) with an n-weekly booking I get an odd problem.

When I create a booking for P4 (Period 4) Monday the 15th repeating every 2 weeks (as shown in the first part of the attachment). 

It creates the repeated booking but when in week view shows an extra booking on tuesday 16th and when in month view it shows an extra booking on sunday 14th.

I have no idea can anyone help?

Thanks

Attachment Capture.jpg
In reply to Jed Trow

Re: CMS integrations: MRBS Integration

by Georg Moersheim -
Hi everyone, I have installed Moodle 2.2 in may 2012 completly new (meanwhile updated to 2.3) and installed also the mrbs-block in that time. The block works fine, but shows the 4th of July as the current date (first day in the week). On this day nothing important happened or has been installed. Any ideas?
In reply to Jed Trow

Re: CMS integrations: MRBS Integration

by Lynn Harvey -

Have you solved this?

On my site if booked on a Monday to repeat fortnightly on Monday's it displays on Tuesdays, so I worked around it by repeating it on Sundays so it then displays as Monday. Works but more time consuming.

In reply to Jed Trow

Re: CMS integrations: MRBS Integration

by Lynn Harvey -

Have you solved this?

On my site if booked on a Monday to repeat fortnightly on Monday's it displays on Tuesdays, so I worked around it by repeating it on Sundays so it then displays as Monday. Works but more time consuming.