+ Post New Thread
Results 1 to 5 of 5
Educational Software Thread, MRBS Producing extra Periods in Technical; I have MRBS up and running and have managed to get it to switch over to periods (is there a ...
  1. #1

    Join Date
    Jun 2010
    Posts
    7
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    MRBS Producing extra Periods

    I have MRBS up and running and have managed to get it to switch over to periods (is there a document anywhere that lists all the config.inc.php commands for it? I have mostly got them from threads here on edugeek) but am having an issue where it is producing two extra time blocks named Period 1 and Period 2 before the ones I enter manually. Any idea why that is? my config.inc.php is below.

    so it says

    Period 1
    Period 2
    Before School
    Period 1
    Period 2
    Recess
    Period 3
    Period 4
    Lunch
    Period 5
    After School

    when it should say

    Before School
    Period 1
    Period 2
    Recess
    Period 3
    Period 4
    Lunch
    Period 5
    After School

    Code:
    <?php
    
    // $Id: config.inc.php 1336 2010-04-21 09:53:39Z jberanek $
    
    /**************************************************************************
     *   MRBS Configuration File
     *   Configure this file for your site.
     *   You shouldn't have to modify anything outside this file
     *   (except for the lang.* files, eg lang.en for English, if
     *   you want to change text strings such as "Meeting Room
     *   Booking System", "room" and "area").
     **************************************************************************/
    
    // The timezone your meeting rooms run in. It is especially important
    // to set this if you're using PHP 5 on Linux. In this configuration
    // if you don't, meetings in a different DST than you are currently
    // in are offset by the DST offset incorrectly.
    //
    // When upgrading an existing installation, this should be set to the
    // timezone the web server runs in.
    //
    $timezone = "Australia/Sydney";
    
    
    /*******************
     * Database settings
     ******************/
    // Which database system: "pgsql"=PostgreSQL, "mysql"=MySQL,
    // "mysqli"=MySQL via the mysqli PHP extension
    $dbsys = "mysql";
    // Hostname of database server. For pgsql, can use "" instead of localhost
    // to use Unix Domain Sockets instead of TCP/IP.
    $db_host = "localhost:3306";
    // Database name:
    $db_database = "mrbs";
    // Database login user name:
    $db_login = "redacted";
    // Database login password:
    $db_password = 'redacted';
    // Prefix for table names.  This will allow multiple installations where only
    // one database is available
    $db_tbl_prefix = "mrbs_";
    // Uncomment this to NOT use PHP persistent (pooled) database connections:
    // $db_nopersist = 1;
    $auth["type"] = "config";
    $auth["session"] = "php";
    $auth["user"]["username1"] = "password1";
    $auth["admin"][] = "username1";
    $enable_periods = TRUE;
    $periods[] = "Before School";
    $periods[] = "Period 1";
    $periods[] = "Period 2";
    $periods[] = "Recess";
    $periods[] = "Period 3";
    $periods[] = "Period 4";
    $periods[] = "Lunch";
    $periods[] = "Period 5";
    $periods[] = "After School";
    
    /* Add lines from systemdefaults.inc.php here to change the default
       configuration. Do _NOT_ modify systemdefaults.inc.php. */
    
    
    
    // This next section must come at the end of the config file - ie after any
    // language and mail settings, as the definitions are used in the included file
    require_once "language.inc";   // DO NOT DELETE THIS LINE
    
    /*************
     * Entry Types
     *************/
    
    // This array maps entry type codes (letters A through J) into descriptions.
    //
    // Each type has a color which is defined in the array $color_types in the Themes
    // directory - just edit whichever include file corresponds to the theme you
    // have chosen in the config settings. (The default is default.inc, unsurprisingly!)
    //
    // The value for each type is a short (one word is best) description of the
    // type. The values must be escaped for HTML output ("R&amp;D").
    // Please leave I and E alone for compatibility.
    // 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.
    
    // $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";
    
    ?>

  2. #2

    Join Date
    Aug 2011
    Location
    Williamsport, PA US
    Posts
    3
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I know that this is an old post, but I was curious to know if you were able to resolve the issue. I am experiencing the same issue.

    Thanks

  3. #3

    Join Date
    Aug 2011
    Location
    Williamsport, PA US
    Posts
    3
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Sorry, just found the answer so I am posting it for anyone who encounters this issue. This system will not let me post the link to where I found the answer so I will just post what it said in brief.

    Enter the line,

    unset($periods);

    right before you define your periods and it will clear out the array and use what you have.

    Thanks,
    John

  4. Thanks to howler9443 from:

    siuko (25th November 2011)

  5. #4

    Join Date
    Jun 2010
    Posts
    7
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi John,

    I don't actually work in the position anymore as I am off traveling and working in europe, but I would just like to thank you for updating the thread when you found the resolution (I received an email when the thread was updated ).

    I will pass the solution on to the fellow who replaced me however. If I remember correctly I just utilised a work around by putting before school at the end of the list.

    Cheers
    Rhys

  6. #5

    Join Date
    Aug 2011
    Location
    Williamsport, PA US
    Posts
    3
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi Rhys,

    Glad to be able to help.

    I was setting this up for my wife who is a librarian here in the states. I'm a developer and have been thinking about re-working the MRBS code base to make it a bit nicer...when I can find the time.

    Enjoy your world travels and best of luck to you!
    John

SHARE:
+ Post New Thread

Similar Threads

  1. Producing the School Calendar
    By Stuart_C in forum How do you do....it?
    Replies: 1
    Last Post: 10th May 2010, 05:58 PM
  2. Outlook Periods
    By _Adam_ in forum Office Software
    Replies: 1
    Last Post: 29th March 2010, 08:04 AM
  3. Producing School Calendar
    By Stuart_C in forum How do you do....it?
    Replies: 9
    Last Post: 7th October 2009, 10:49 AM
  4. [Video] Seven Periods with Mr. Gormsby
    By eduabncs in forum Jokes/Interweb Things
    Replies: 1
    Last Post: 6th May 2009, 08:28 AM
  5. Producing Classlists from Sims.net NOT Nova
    By mattpant in forum MIS Systems
    Replies: 8
    Last Post: 9th September 2008, 06:26 PM

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
  •