Jump to content

Recommended Posts

Posted

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

 


// $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&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";

?>

  • 1 year later...
Posted

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

  • Thanks 1
Posted

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 :D).

 

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

Posted

Hi Rhys,

 

Glad to be able to help. :D

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...