+ Post New Thread
Results 1 to 5 of 5
Web Development Thread, MRBS configuration in Coding and Web Development; Is it me or is MRBS becoming more and more fiddlier to update? I have moved to the latest version ...
  1. #1

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    MRBS configuration

    Is it me or is MRBS becoming more and more fiddlier to update? I have moved to the latest version and now I have come to tweaking some settings and cannot work out how to do it.

    I am trying to add a new booking type to help differentiate between time-tabled lessons and additional booked slots. I have uncommented the A option and then added the description but the changes don't show on the site. It does say that there is a setting that needs to be done to make it active but I can't understand where it is saying to make this change.

    Sorry for the vagueness but I am a bit clueless with MRBS at the moment since you have had to start making your own config.inc.php file.

    Any ideas?

    Thanks.

  2. #2

    Join Date
    Sep 2008
    Location
    England
    Posts
    267
    Thank Post
    6
    Thanked 67 Times in 59 Posts
    Rep Power
    51
    With the new system, the factory defaults are stored in systemdefaults.inc.php, your settings are in config.inc.php. If there is something you want to change, then you need to copy it out of systemdefaults.inc.php and put it in config.inc.php. This is so when you upgrade, you don't lose your settings.

    for the entry types, you need to put
    unset($typel);
    above your type configuration. Ours is included below

    /*************
    * Entry Types
    *************/

    // If a type's entry is unset or empty, that type is not defined; it will not
    // be shown in the day view color-key, and not offered in the type selector
    // for new or edited entries.

    unset($typel);

    $typel["A"] = "Lesson";
    $typel["B"] = "Staff Training";
    $typel["C"] = "Controlled Assesments";
    $typel["D"] = "PSHE";
    // $typel["E"] = get_vocab("external");
    $typel["F"] = "Holidays";
    $typel["G"] = "Timetabled Lesson";
    // $typel["H"] = "H";
    // $typel["I"] = get_vocab("internal");
    $typel["J"] = "Exams";

    /**********
    * Fields
    **********/

  3. Thanks to Chris_Cook from:

    HodgeHi (23rd March 2012)

  4. #3

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    Hey Chris_Cook,

    I have copied and pasted your Entry Types section into you config file and commented out my own. I then proceeded to load my bookings page but the new settings were ignored. The default external and internal options were the only ones visible and they were also the only ones to choose from in the drop-down menu.

    Something is obviously wrong but I'm not sure what it is.

    I don't quite understand this bit...

    // If a type's entry is unset or empty, that type is not defined; it will not
    // be shown in the day view color-key, and not offered in the type selector
    // for new or edited entries.
    I assume this is the reason you placed

    Code:
    unset($typel);
    at the top.

  5. #4

    Join Date
    Sep 2008
    Location
    England
    Posts
    267
    Thank Post
    6
    Thanked 67 Times in 59 Posts
    Rep Power
    51
    It sounds like the default configuration for the types is being overridden latter in the config.inc.php file. The config files are just php code, and are executed sequentially, first system defaults, then config.inc.php. They are done line by line. My guess would be that

    unset($typel);
    $typel["E"] = get_vocab("external");
    $typel["I"] = get_vocab("internal");
    is repeated later in config.inc.php. If you can't find it, then feel free to pm me your systemdefaults and config.inc files (minus the database passwords etc) and I can have a look if you like. But I suspect that if you use 'find next' in notepad (or grep if you host on a linux box) you can find the source of the problem. Maybe if you even move the type configuration to the end of config.inc.php it will solve the problem.

  6. Thanks to Chris_Cook from:

    HodgeHi (30th March 2012)

  7. #5

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    The types settings are already at the end of the config file.

    I may just look at re-installing MRBS and see if that resolves the issues. I am also looking into how to build or import a booking system into our share point system.

    Thanks for your help and offer. I may get back to you and take you up on it.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 30
    Last Post: 21st June 2013, 12:31 AM
  2. MRBS Email configuration
    By mj2010 in forum Web Development
    Replies: 0
    Last Post: 30th March 2010, 11:13 AM
  3. Office configuration
    By mseaney in forum Windows
    Replies: 6
    Last Post: 1st December 2005, 12:38 PM
  4. Replies: 9
    Last Post: 8th November 2005, 09:45 AM
  5. Scripting IP configuration.
    By Dos_Box in forum Scripts
    Replies: 3
    Last Post: 2nd September 2005, 09:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •