Menu

#810 How to mbrs limit to one year

open
nobody
None
1
2015-10-23
2015-10-23
Anonymous
No

Hi, Good day.
Thank you very much to make this type system.
Please explain me to how to limit mbrs to one year if not they booking unnecessarly.

Thank you,
Thilina.

Discussion

  • Chris Newson

    Chris Newson - 2015-10-23

    If you want to set a specific date such as 31st December 2015 then copy these lines from systemdefaults.inc.php into config.inc.php:

    $max_booking_date_enabled = FALSE;
    $max_booking_date = "2012-07-23"; // Must be a string in the format "yyyy-mm-dd"

    then edit them to:

    $max_booking_date_enabled = TRUE;
    $max_booking_date = "2015-12-31"; // Must be a string in the format "yyyy-mm-dd"

    If you want to set a year from today then log onto MRBS as an admin, go to rooms from the top bar and click on the area edit icon. Half way down the page is a check box called

    Advance booking - maximum:

    check it and type in "52" and select "weeks" or 365 and "days".