+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
Network and Classroom Management Thread, MRBS: Can't get my periods in Technical; I'm trying to configure MRBS to use periods but all i'm getting is 30 min time slots, can anyone see ...
  1. #1

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15

    MRBS: Can't get my periods

    I'm trying to configure MRBS to use periods but all i'm getting is 30 min time slots, can anyone see what is wrong with this portion of the script please?

    // TIMES SETTINGS
    // --------------

    // These settings are all set per area through MRBS. These are the default
    // settings that are used when a new area is created.

    // The "Times" settings are ignored if $enable_periods is TRUE.

    // Resolution - what blocks can be booked, in seconds.
    // Default is half an hour: 1800 seconds.
    // $resolution = (30 * 60);

    // Default duration - default length (in seconds) of a booking.
    // Defaults to (60 * 60) seconds, i.e. an hour
    // $default_duration = (60 * 60);

    // Start and end of day.
    // NOTE: The time between the beginning of the last and first
    // slots of the day must be an integral multiple of the resolution,
    // and obviously >=0.


    // The default settings below (along with the 30 minute resolution above)
    // give you 24 half-hourly slots starting at 07:00, with the last slot
    // being 18:30 -> 19:00

    // The beginning of the first slot of the day
    // $morningstarts = 7; // must be integer in range 0-23
    // $morningstarts_minutes = 0; // must be integer in range 0-59

    // The beginning of the last slot of the day
    // $eveningends = 18; // must be integer in range 0-23
    // $eveningends_minutes = 00; // must be integer in range 0-59

    // Example 1.
    // If resolution=3600 (1 hour), morningstarts = 8 and morningstarts_minutes = 30
    // then for the last period to start at say 4:30pm you would need to set eveningends = 16
    // and eveningends_minutes = 30

    // Example 2.
    // To get a full 24 hour display with 15-minute steps, set morningstarts=0; eveningends=23;
    // eveningends_minutes=45; and resolution=900.

    // This is the maximum number of rows (timeslots or periods) that one can expect to see in the day
    // and week views. It is used by mrbs.css.php for creating classes. It does not matter if it
    // is too large, except for the fact that more CSS than necessary will be generated. (The variable
    // is ignored if $times_along_top is set to TRUE).
    // $max_slots = 60;

    /*******************
    * Calendar settings
    *******************/

    // Note: Be careful to avoid specify options that displays blocks overlaping
    // the next day, since it is not properly handled.

    // This setting controls whether to use "clock" based intervals (FALSE and
    // the default) or user defined periods (TRUE). If user-defined periods
    // are used then $resolution, $morningstarts, $eveningends,
    // $eveningends_minutes and $twentyfourhour_format are ignored.
    $enable_periods = TRUE;
    $periods[] = "Period 1";
    $periods[] = "Period 2";
    $periods[] = "Period 3";
    $periods[] = "Period 4";
    $periods[] = "Period 5";
    $periods[] = "Period 6";
    $periods[] = "After School";

    // Resolution - what blocks can be booked, in seconds.
    // Default is half an hour: 1800 seconds.
    // $resolution = 1800;

    // Default duration - default length (in seconds) of a booking.
    // Ignored if $enable_periods is TRUE
    // Defaults to (60 * 60) seconds, i.e. an hour
    // $default_duration = (60 * 60);

    // Start and end of day.
    // NOTE: The time between the beginning of the last and first
    // slots of the day must be an integral multiple of the resolution,
    // and obviously >=0.


    // The default settings below (along with the 30 minute resolution above)
    // give you 24 half-hourly slots starting at 07:00, with the last slot
    // being 18:30 -> 19:00

    // The beginning of the first slot of the day
    //$morningstarts = 7; // must be integer in range 0-23
    $morningstarts_minutes = 0; // must be integer in range 0-59

    // The beginning of the last slot of the day
    // $eveningends = 18; // must be integer in range 0-23
    $eveningends_minutes = 30; // must be integer in range 0-59

    // Example 1.
    // If resolution=3600 (1 hour), morningstarts = 8 and morningstarts_minutes = 30
    // then for the last period to start at say 4:30pm you would need to set eveningends = 16
    // and eveningends_minutes = 30

    // Example 2.
    // To get a full 24 hour display with 15-minute steps, set morningstarts=0; eveningends=23;
    // eveningends_minutes=45; and resolution=900.

    // Do some checking
    $start_first_slot = ($morningstarts*60) + $morningstarts_minutes; // minutes
    $start_last_slot = ($eveningends*60) + $eveningends_minutes; // minutes
    $start_difference = ($start_last_slot - $start_first_slot) * 60; // seconds
    if (($start_difference < 0) or ($start_difference%$resolution != 0))
    {
    die('Configuration error: start and end of day incorrectly defined');
    }

    // Define the name or description for your periods in chronological order
    // For example:
    // $periods[] = "Period&nbsp;1"
    // $periods[] = "Period&nbsp;2"
    // ...
    // or
    // $periods[] = "09:15&nbsp;-&nbsp;09:50"
    // $periods[] = "09:55&nbsp;-&nbsp;10:35"
    // ...
    // &nbsp; is used to ensure that the name or description is not wrapped
    // when the browser determines the column widths to use in day and week
    // views
    //
    // NOTE: MRBS assumes that the descriptions are valid HTML and can be output
    // directly without any encoding. Please ensure that any special characters
    // are encoded, eg '&' to '&amp;', '>' to '&gt;', lower case e acute to
    // '&eacute;' or '&#233;', etc.

    // NOTE: The maximum number of periods is 60. Do not define more than this.



    // NOTE: The maximum number of periods is 60. Do not define more than this.

    // Do some checking
    if (count($periods) > 60)
    {
    die('Configuration error: too many periods defined');
    }

    // Start of week: 0 for Sunday, 1 for Monday, etc.
    $weekstarts = 1;

    // Trailer date format: 0 to show dates as "Jul 10", 1 for "10 Jul"
    $dateformat = 1;

    // Time format in pages. 0 to show dates in 12 hour format, 1 to show them
    // in 24 hour format
    $twentyfourhour_format = 0;

  2. #2

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    Also how do i remover the "Meeting Room Booking System" from the top left corner?

    Live demo can be seen here

  3. #3
    truslack's Avatar
    Join Date
    Jan 2009
    Posts
    75
    Thank Post
    11
    Thanked 9 Times in 9 Posts
    Rep Power
    13
    Change the lang.en file to get rid of the text in the top left, and which file are you changing the config in?

  4. #4
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,477
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    53
    HI

    This is my config

    <?php

    #
    ###################
    # Calendar settings
    ###################
    # Note: Be careful to avoid specify options that displays blocks overlaping
    # the next day, since it is not properly handled.

    # This setting controls whether to use "clock" based intervals (FALSE and
    # the default) or user defined periods (TRUE). If user-defined periods
    # are used then $resolution, $morningstarts, $eveningends,
    # $eveningends_minutes and $twentyfourhour_format are ignored.
    $enable_periods = TRUE;

    # Resolution - what blocks can be booked, in seconds.
    # Default is half an hour: 1800 seconds.
    $resolution = 1800;

    # Start and end of day, NOTE: These are integer hours only, 0-23, and
    # morningstarts must be < eveningends. See also eveningends_minutes.
    $morningstarts = 9;
    $eveningends = 15;

    # Minutes to add to $morningstarts to get to the real start of the day.
    # Be sure to consider the value of $eveningends_minutes if you change
    # this, so that you do not cause a day to finish before the start of
    # the last period. For example if resolution=3600 (1 hour)
    # morningstarts = 8 and morningstarts_minutes = 30 then for the last
    # period to start at say 4:30pm you would need to set eveningends = 16
    # and eveningends_minutes = 30
    #$ morningstarts_minutes = 0;

    # Minutes to add to $eveningends hours to get the real end of the day.
    # Examples: To get the last slot on the calendar to be 16:30-17:00, set
    # eveningends=16 and eveningends_minutes=30. To get a full 24 hour display
    # with 15-minute steps, set morningstarts=0; eveningends=23;
    # eveningends_minutes=45; and resolution=900.
    $eveningends_minutes = 30;

    # Define the name or description for your periods in chronological order
    # For example:
    # $periods[] = "Period&nbsp;1"
    # $periods[] = "Period&nbsp;2"
    # ...
    # or
    #$periods[] = "09:15&nbsp;-&nbsp;09:50"
    #$periods[] = "10:05&nbsp;-&nbsp;10:55"
    # ...
    # &nbsp; is used to ensure that the name or description is not wrapped
    # when the browser determines the column widths to use in day and week
    # views


    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";

    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner&nbsp;";

    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening&nbsp;";

    # Start of week: 0 for Sunday, 1 for Monday, etc.
    $weekstarts = 0;

    # Trailer date format: 0 to show dates as "Jul 10", 1 for "10 Jul"
    $dateformat = 0;

    # Time format in pages. 0 to show dates in 12 hour format, 1 to show them
    # in 24 hour format
    $twentyfourhour_format = 1;


    ?>

  5. #5

    LeMarchand's Avatar
    Join Date
    Jan 2008
    Location
    The deepest pits of hell
    Posts
    2,600
    Thank Post
    327
    Thanked 420 Times in 293 Posts
    Rep Power
    223
    I keep reading this header and thinking that we've turned into a forum where ladies can seek help for feminine problems...

  6. #6

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    I keep reading this header and thinking that we've turned into a forum where ladies can seek help for feminine problems...
    Lol, was cleverly posted to get some attention, like a damsel in distress.

    Thanks Ricki just copied and pasted your script over my calendar setting but still the same issue, 30 min slots instead of the specified period - is there any other setting which could be overiding the $enable_periods = TRUE; variable?

  7. #7
    truslack's Avatar
    Join Date
    Jan 2009
    Posts
    75
    Thank Post
    11
    Thanked 9 Times in 9 Posts
    Rep Power
    13
    Yes, that's why I asked you which config file you were changing.

  8. #8

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    Yes, that's why I asked you which config file you were changing.
    Sorry, damn wheel mouse scrolled to fast past your reply, think thats justification to get a strokey apple one! Sorted the "Meeting Room Booking System" title thanks, the file i'm changing is the config.inc.php (in root folder) - when i make changes to the $twentyfourhour_format = 0; variable it changed the 24 hour times on the live site, but still no joy with replacing these with specified periods.

    Realistically this is all i need to get it working but it's not doing it :

    $enable_periods = true;
    unset($periods); // Include this line when copying to config.inc.php
    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";
    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner&nbsp;";
    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening&nbsp;";
    Last edited by chrisjako; 28th January 2011 at 03:53 PM.

  9. #9
    truslack's Avatar
    Join Date
    Jan 2009
    Posts
    75
    Thank Post
    11
    Thanked 9 Times in 9 Posts
    Rep Power
    13
    It's been a while since I set up an MRBS install, but this should do what you want it to do:

    Code:
    /*******************
     * Calendar settings
     *******************/
    
    // Note: Be careful to avoid specify options that displays blocks overlaping
    // the next day, since it is not properly handled.
    
    // This setting controls whether to use "clock" based intervals (FALSE and
    // the default) or user defined periods (TRUE).  If user-defined periods
    // are used then $resolution, $morningstarts, $eveningends,
    // $eveningends_minutes and $twentyfourhour_format are ignored.
    $enable_periods = True;
    
    
    // TIMES SETTINGS
    // --------------
    
    // These settings are all set per area through MRBS.   These are the default
    // settings that are used when a new area is created.
    
    // The "Times" settings are ignored if $enable_periods is TRUE.
    
    // Resolution - what blocks can be booked, in seconds.
    // Default is half an hour: 1800 seconds.
    $resolution = (60 * 60);  // DEFAULT VALUE FOR NEW AREAS
    
    // If the following variable is set to TRUE, the resolution of bookings
    // is forced to be the value of $resolution, rather than the resolution set
    // for the area in the database.
    $force_resolution = FALSE;
    
    // Default duration - default length (in seconds) of a booking.
    // Defaults to (60 * 60) seconds, i.e. an hour
    $default_duration = (60 * 60);  // DEFAULT VALUE FOR NEW AREAS
    
    // Start and end of day.
    // NOTE:  The time between the beginning of the last and first
    // slots of the day must be an integral multiple of the resolution,
    // and obviously >=0.
    
    
    // The default settings below (along with the 30 minute resolution above)
    // give you 24 half-hourly slots starting at 07:00, with the last slot
    // being 18:30 -> 19:00
    
    // The beginning of the first slot of the day (DEFAULT VALUES FOR NEW AREAS)
    //$morningstarts         = 9;   // must be integer in range 0-23
    //$morningstarts_minutes = 0;   // must be integer in range 0-59
    
    // The beginning of the last slot of the day (DEFAULT VALUES FOR NEW AREAS)
    //$eveningends           = 15;  // must be integer in range 0-23
    //$eveningends_minutes   = 05;   // must be integer in range 0-59
    
    // Example 1.
    // If resolution=3600 (1 hour), morningstarts = 8 and morningstarts_minutes = 30 
    // then for the last period to start at say 4:30pm you would need to set eveningends = 16
    // and eveningends_minutes = 30
    
    // Example 2.
    // To get a full 24 hour display with 15-minute steps, set morningstarts=0; eveningends=23;
    // eveningends_minutes=45; and resolution=900.
    
    // This is the maximum number of rows (timeslots or periods) that one can expect to see in the day
    // and week views.    It is used by mrbs.css.php for creating classes.    It does not matter if it
    // is too large, except for the fact that more CSS than necessary will be generated.  (The variable
    // is ignored if $times_along_top is set to TRUE).
    $max_slots = 60;
    
    
    // PERIODS SETTINGS
    // ----------------
    
    // The "Periods" settings are ignored if $enable_periods is FALSE.
    
    // Define the name or description for your periods in chronological order
    // For example:
    // $periods[] = "Period&nbsp;1"
    // $periods[] = "Period&nbsp;2"
    // ...
    // or
    // $periods[] = "09:15&nbsp;-&nbsp;09:50"
    // $periods[] = "09:55&nbsp;-&nbsp;10:35"
    // ...
    // &nbsp; is used to ensure that the name or description is not wrapped
    // when the browser determines the column widths to use in day and week
    // views
    //
    // NOTE:  MRBS assumes that the descriptions are valid HTML and can be output
    // directly without any encoding.    Please ensure that any special characters
    // are encoded, eg '&' to '&amp;', '>' to '&gt;', lower case e acute to 
    // '&eacute;' or 'é', etc.
    
    // NOTE:  The maximum number of periods is 60.   Do not define more than this.
    unset($periods);    // Include this line when copying to config.inc.php
    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";
    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner";
    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening"; 
    // NOTE:  The maximum number of periods is 60.   Do not define more than this.
    
    
    // Page refresh time (in seconds). Set to 0 to disable
    $refresh_rate = 600;
    
    // Trailer type.   FALSE gives a trailer complete with links to days, weeks and months before
    // and after the current date.    TRUE gives a simpler trailer that just has links to the
    // current day, week and month.
    $simple_trailer = TRUE;

  10. #10

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    Pasted those settings over mine and made no difference, surely something else must be dominating the $enable_periods = True; variable?

    here is the script without the commenting :

    <?php
    // $morningstarts = 9; # Start and end of day, NOTE: These are integer hours only, 0-23, and
    // $eveningends = 17; # morningstarts must be < eveningends. See also eveningends_minutes.
    // $eveningends_minutes = 30;
    // $weekstarts = 0; //# Start of week: 0 for Sunday, 1 for Monday, etc.
    // $dateformat = 0; # Trailer date format: 0 to show dates as "Jul 10", 1 for "10 Jul"
    // $twentyfourhour_format = 0; # Time format in pages. 0 to show dates in 12 hour format, 1 to show them # in 24 hour format
    $timezone = "Europe/London";
    $dbsys = "mysql";
    $db_host = "localhost";
    $db_database = "mrbs";
    $db_login = "root";
    $db_password = ''*******';
    $db_tbl_prefix = "mrbs_";
    $auth["type"] = "ldap"; // How to validate the user/password. One of "none"
    $ldap_host = "sjdc1.baeda.local";
    $ldap_port = 389;
    $ldap_v3 = true;
    $ldap_tls = false;
    $ldap_base_dn = "OU=Staff,DC=baeda,DC=local";
    $ldap_user_attrib = "sAMAccountName";
    $ldap_dn_search_attrib = "sAMAccountName";
    $ldap_dn_search_dn = "CN=macbind,OU=St Josephs,OU=Staff,DC=baeda,DC=local";
    $ldap_dn_search_password = "*********";
    $auth["session_cookie"]["secret"] = "This isn't a very good secret!";
    $auth["session_cookie"]["session_expire_time"] = (60*60*24*30); // 30 days
    $auth["session_cookie"]["include_ip"] = TRUE;
    $auth["session_php"]["session_expire_time"] = (60*60*24*30); // 30 days
    unset($auth["admin"]); // Include this when copying to config.inc.php
    $auth["admin"][] = "127.0.0.1"; // localhost IP address. Useful with IP sessions.
    $auth["admin"][] = "administrator";
    $auth["admin"][] = "cjakubowski"; // A user name from the user list. Useful
    $auth["realm"] = "mrbs";
    $auth["prog"] = "";
    $auth["params"] = "";
    $max_level = 2;
    $min_user_editing_level = 2;
    $auth['only_admin_can_book'] = FALSE;
    $auth['only_admin_can_book_repeat'] = FALSE;
    $auth['only_admin_can_book_multiday'] = FALSE;
    $auth['only_admin_can_select_multiroom'] = FALSE;
    $auth['only_admin_can_see_other_users'] = FALSE;
    $auth['deny_public_access'] = FALSE;
    $mrbs_admin = "C Jakubowski";
    $mrbs_admin_email = "chris@stjcc.co.uk"; // NOTE: there are more email addresses in $mail_settings below
    $mrbs_company = "St Josephs Catholic College"; // This line must always be uncommented ($mrbs_company is used in various places)
    $mrbs_company_more_info = "ICT Suite Booking System"; // e.g. "XYZ Department"
    $mrbs_company_url = "http://www.stjcc.co.uk";
    $url_base = "http://sjweb1/roombooking";
    $weekstarts = 1;
    $hidden_days = array(0,6);
    $dateformat = 1;
    $search["count"] = 20;
    $refresh_rate = 0;
    $simple_trailer = TRUE;
    $area_list_format = "select";
    $monthly_view_entries_details = "both";
    $view_week_number = FALSE;
    $times_along_top = FALSE;
    $row_labels_both_sides = TRUE;
    $default_view = "day";
    $default_room = 0;
    $clipped = TRUE;
    $month_cell_scrolling = TRUE;
    require_once "language.inc"; // DO NOT DELETE THIS LINE
    // $typel["A"] = "A";
    // $typel["B"] = "Timetabled";
    // $typel["C"] = "C";
    $typel["D"] = "Timetabled";
    $typel["E"] = get_vocab("External");
    // $typel["F"] = "F";
    $typel["G"] = "Reservation";
    // $typel["H"] = "H";
    $typel["I"] = get_vocab("Internal");
    // $typel["J"] = "Timetabled";
    $enable_periods = True;
    $resolution = (60 * 60); // DEFAULT VALUE FOR NEW AREAS
    $force_resolution = FALSE;
    $default_duration = (60 * 60); // DEFAULT VALUE FOR NEW AREAS
    $max_slots = 60;
    unset($periods); // Include this line when copying to config.inc.php
    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";
    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner";
    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening";
    $refresh_rate = 600;
    $simple_trailer = TRUE;
    ?>

  11. #11

    beeswax's Avatar
    Join Date
    Jul 2005
    Location
    England
    Posts
    2,285
    Thank Post
    285
    Thanked 225 Times in 153 Posts
    Rep Power
    132
    The file I changed is config.inc.php in the MRBS blocks folder; i.e. Blocks>MRBS>web. These are the changes I made to the code
    HTML Code:
    # Define the name or description for your periods in chronological order
    # For example:
    # $periods[] = "Period&nbsp;1"
    # $periods[] = "Period&nbsp;2"
    # ...
    # or
    # $periods[] = "09:15&nbsp;-&nbsp;09:50"
    # $periods[] = "09:55&nbsp;-&nbsp;10:35"
    # ...
    # &nbsp; is used to ensure that the name or description is not wrapped
    # when the browser determines the column widths to use in day and week
    # views
    
    $periods[] = "Period&nbsp;1&nbsp;08:30&nbsp;-&nbsp;09:30";
    $periods[] = "Period&nbsp;2&nbsp;09:30&nbsp;-&nbsp;10.25";
    $periods[] = "&nbsp; &nbsp;";
    $periods[] = "&nbsp;";
    $periods[] = "Period&nbsp;3&nbsp;11:00&nbsp;-&nbsp;12:00";
    $periods[] = "Period&nbsp;4&nbsp;12:00&nbsp;-&nbsp;13:00";
    $periods[] = "&nbsp;";
    $periods[] = "Period&nbsp;5&nbsp;13:45&nbsp;-&nbsp;14:45";
    #$periods[] = "Period&nbsp;9";
    #$periods[] = "Period&nbsp;10";
    #$periods[] = "Period&nbsp;11";
    #$periods[] = "Period&nbsp;12";
    Some of the periods above may appear to contain nothing more than a non-breaking space, but this allows me to add the details of these periods via the GUI.
    HTH
    Last edited by beeswax; 31st January 2011 at 09:24 AM.

  12. #12

    Join Date
    Sep 2007
    Posts
    171
    Thank Post
    16
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    its the same file i'm editing, i've stripped the code down to bare basics now and i'ts still not showing periods! it's driving me nuts :

    <?php

    // $morningstarts = 9; # Start and end of day, NOTE: These are integer hours only, 0-23, and
    // $eveningends = 17; # morningstarts must be < eveningends. See also eveningends_minutes.
    // $eveningends_minutes = 30;
    // $weekstarts = 0; //# Start of week: 0 for Sunday, 1 for Monday, etc.
    // $dateformat = 0; # Trailer date format: 0 to show dates as "Jul 10", 1 for "10 Jul"
    // $twentyfourhour_format = 0; # Time format in pages. 0 to show dates in 12 hour format, 1 to show them # in 24 hour format
    $timezone = "Europe/London";
    $dbsys = "mysql";
    $db_host = "localhost";
    $db_database = "mrbs";
    $db_login = "root";
    $db_password = "*******";
    $db_tbl_prefix = "mrbs_";
    $auth["type"] = "ldap"; // How to validate the user/password. One of "none"
    $ldap_host = "sjdc1.baeda.local";
    $ldap_port = 389;
    $ldap_v3 = true;
    $ldap_tls = false;
    $ldap_base_dn = "OU=Staff,DC=baeda,DC=local";
    $ldap_user_attrib = "sAMAccountName";
    $ldap_dn_search_attrib = "sAMAccountName";
    $ldap_dn_search_dn = "CN=macbind,OU=St Josephs,OU=Staff,DC=baeda,DC=local";
    $ldap_dn_search_password = "*******";
    $auth["session_cookie"]["secret"] = "This isn't a very good secret!";
    $auth["session_cookie"]["session_expire_time"] = (60*60*24*30); // 30 days
    $auth["session_cookie"]["include_ip"] = TRUE;
    $auth["session_php"]["session_expire_time"] = (60*60*24*30); // 30 days
    unset($auth["admin"]); // Include this when copying to config.inc.php
    $auth["admin"][] = "127.0.0.1"; // localhost IP address. Useful with IP sessions.
    $auth["admin"][] = "administrator";
    $auth["admin"][] = "cjakubowski"; // A user name from the user list. Useful
    $auth["realm"] = "mrbs";
    $auth["prog"] = "";
    $auth["params"] = "";
    $max_level = 2;
    $min_user_editing_level = 2;
    $auth['only_admin_can_book'] = FALSE;
    $auth['only_admin_can_book_repeat'] = FALSE;
    $auth['only_admin_can_book_multiday'] = FALSE;
    $auth['only_admin_can_select_multiroom'] = FALSE;
    $auth['only_admin_can_see_other_users'] = FALSE;
    $auth['deny_public_access'] = FALSE;
    $mrbs_admin = "C Jakubowski";
    $mrbs_admin_email = "chris@stjcc.co.uk"; // NOTE: there are more email addresses in $mail_settings below
    $mrbs_company = "St Josephs Catholic College"; // This line must always be uncommented ($mrbs_company is used in various places)
    $mrbs_company_more_info = "ICT Suite Booking System"; // e.g. "XYZ Department"
    $mrbs_company_url = "http://www.stjcc.co.uk";
    $url_base = "http://sjweb1/roombooking/";
    #$weekstarts = 1;
    #$hidden_days = array(0,6);
    #$dateformat = 1;
    #$search["count"] = 20;
    #$refresh_rate = 0;
    #$simple_trailer = TRUE;
    #$area_list_format = "select";
    #$monthly_view_entries_details = "both";
    #$view_week_number = FALSE;
    #$times_along_top = FALSE;
    #$row_labels_both_sides = TRUE;
    #$default_view = "day";
    #$default_room = 0;
    #$clipped = TRUE;
    #$month_cell_scrolling = TRUE;
    require_once "language.inc"; // DO NOT DELETE THIS LINE
    // $typel["A"] = "A";
    // $typel["B"] = "Timetabled";
    // $typel["C"] = "C";
    $typel["D"] = "Timetabled";
    $typel["E"] = get_vocab("External");
    // $typel["F"] = "F";
    $typel["G"] = "Reservation";
    // $typel["H"] = "H";
    $typel["I"] = get_vocab("Internal");
    // $typel["J"] = "Timetabled";
    $enable_periods = True;
    #$resolution = (60 * 60); // DEFAULT VALUE FOR NEW AREAS
    #$force_resolution = FALSE;
    #$default_duration = (60 * 60); // DEFAULT VALUE FOR NEW AREAS
    #$max_slots = 60;
    unset($periods); // Include this line when copying to config.inc.php
    $periods[] = "Period&nbsp;1&nbsp;08:30&nbsp;-&nbsp;09:30";
    $periods[] = "Period&nbsp;2&nbsp;09:30&nbsp;-&nbsp;10.25";
    $periods[] = "&nbsp; &nbsp;";
    $periods[] = "&nbsp;";
    $periods[] = "Period&nbsp;3&nbsp;11:00&nbsp;-&nbsp;12:00";
    $periods[] = "Period&nbsp;4&nbsp;12:00&nbsp;-&nbsp;13:00";
    $periods[] = "&nbsp;";
    $periods[] = "Period&nbsp;5&nbsp;13:45&nbsp;-&nbsp;14:45";
    #$periods[] = "Period&nbsp;9";
    #$periods[] = "Period&nbsp;10";
    #$periods[] = "Period&nbsp;11";
    #$periods[] = "Period&nbsp;12";
    #$simple_trailer = TRUE;
    ?>
    Last edited by chrisjako; 31st January 2011 at 11:16 AM.

  13. #13

    Join Date
    Apr 2008
    Posts
    32
    Thank Post
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";

    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner&nbsp;";

    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening&nbsp;";

    Try removing the &nbsp; from Dinner and Evening

    $periods[] = "Period&nbsp;1";
    $periods[] = "Period&nbsp;2";

    $periods[] = "Period&nbsp;3";
    $periods[] = "Period&nbsp;4";
    $periods[] = "Dinner";

    $periods[] = "Period&nbsp;5";
    $periods[] = "Period&nbsp;6";
    $periods[] = "Evening";

  14. #14
    tbd
    tbd is offline

    Join Date
    Mar 2011
    Posts
    11
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi Chrisjako,

    I have tried all that has been described above and I cant seem to get anything to work. Have you had any luck?

    Thanks,
    TBD

  15. #15
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    417
    Thank Post
    40
    Thanked 51 Times in 43 Posts
    Rep Power
    26
    Probably wont help as I tried at my end and changing didn't remove my periods, but I figured its worth a try....

    Have you tried TRUE instead of True for enable_periods?



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. MRBS Producing extra Periods
    By Rhys in forum Educational Software
    Replies: 4
    Last Post: 30th August 2011, 04:34 PM
  2. Outlook Periods
    By _Adam_ in forum Office Software
    Replies: 1
    Last Post: 29th March 2010, 09:04 AM
  3. [Video] Seven Periods with Mr. Gormsby
    By eduabncs in forum Jokes/Interweb Things
    Replies: 1
    Last Post: 6th May 2009, 09:28 AM
  4. Outlook with school periods
    By sdc in forum Office Software
    Replies: 11
    Last Post: 7th February 2009, 01:30 PM
  5. Notice Periods... How long is yours?
    By AshF in forum General Chat
    Replies: 25
    Last Post: 5th October 2007, 10:54 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
  •