#543 Adding Types (Internal, External) and colour codes

open
nobody
None
7
2017-09-04
2014-06-03
Anonymous
No

Hi there,

This booking system has been amazing for my business over the years but I was wondering if it was possible to add some additional types and thus colour codes to it? So far, internal is green and external is blue. What code would I need to put in (and where) to give me a 3rd or 4th option and different colours for each?

Thanks so much!

Jon

Discussion

1 2 > >> (Page 1 of 2)
  • Campbell Morrison

    Which version of MRBS are you running? How you add types depends on the version. There are full instructions in INSTALL and systemdefaults.inc.php, but just ask here if you have any problems.

    Campbell

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous

      Anonymous - 2016-01-27

      Hi
      I have looked in the systemdefaults.inc.php and I cant find how to add more meeting types other than the 2 that exist(which i couldnt find in the php either) I downloaded the most upto date version

       
  • Campbell Morrison

    Put the following in your config file

    $booking_types[] = "A";  // 'A' is your new type
    $vocab_override["en"]["type.A"] = "Description of your new type";
    
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-01-12

    thank you for that.

    how can I safely change the default "internal" display name?

    I understand color is changed in theme...

    Thank you,
    Meno

     
  • Campbell Morrison

    $vocab_override["en"]["type.I"] = "Description of your type";
    

    Substitute the language of your choice for 'en'. For more details see the comments in systemdefaults.inc.php.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-01-12

    Thank you!

    I have already made some repeat bookings that took a long time to make, so I don't want to screw things up.

    If I created a repeat booking of type I, internal and in config.inc.php I enter:

    $vocab_override["en"]["type.I"] = "Client Meeting";
    

    would the already made "type.I" bookings be ok and now have a display name of "Client Meeting?"

    Thank you again,
    Meno

     
  • Campbell Morrison

    Yes. All that is stored in the database is that they are of type 'I'. The config settings determine how 'I' is displayed in the browser.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-01-13

    Great! Thank you so much!

    Meno

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-08-29

    I tried but I still get type.A, type.B on the screen on 1.6.1 (upgraded from 1.4.1)?
    $booking_types[] = "B";
    $vocab_override["en"]["type.B"] = "VideoConf";
    Thanks.

     
  • John Beranek

    John Beranek - 2017-08-29

    What language is MRBS being displayed in?

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous

      Anonymous - 2017-08-30

      English

       
  • Campbell Morrison

    And what are the following set to?

    $disable_automatic_language_changing
    $default_language_tokens
    $override_locale
    
     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous

      Anonymous - 2017-08-30

      Thanks master for your reply and here are they
      $default_language_tokens = "en";
      $disable_automatic_language_changing = 0;
      $override_locale = "";

       
  • Campbell Morrison

    I can't see why this wouldn't work. I know it's a stupid question, but are you sure you are running the config file you think you are running? Can you try making some other change to the config file to see if it has an effect?

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-08-30

    Yes I am sure and I try to change the $db_database to other name then I can't access to the page.

     
  • Campbell Morrison

    I've no idea what's going wrong. Have you made any changes (other than config) to MRBS? Would you be able to post your config file here, with any confidential bits removed?

     
  • Campbell Morrison

    One other thought - can you make sure that the MRBS 1.6.1 version of language.inc has been uploaded properly?

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-08-30

    Pls see in the attached file. I am not sure if I made some change in the other file but this is my previous setting in 1.41.

    $typel["A"] = "Conference";
    //$typel["B"] = "B";
    //$typel["C"] = "C";
    //$typel["D"] = "D";
    $typel["E"] = get_vocab("external");
    //$typel["F"] = "F";
    //$typel["G"] = "G";
    $typel["H"] = "Consultant";
    $typel["I"] = get_vocab("internal");
    $typel["J"] = "Mission";
    $typel["K"] = "Video-Conf";
    $typel["L"] = "Special-VC";

    My next question how to change record from type K and L to type A or B

     
  • John Beranek

    John Beranek - 2017-08-30

    Ah, your config file has way too much content in it, you can remove most of it, I'd say. However, what should definitely be removed is the following section

    // This next require must be done after the definitions above, as the definitions
    // are used in the included file
    require_once "language.inc";
    
    // 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
    
     
  • John Beranek

    John Beranek - 2017-08-30

    I should have explained my above comment more...as MRBS has been developed it has been made so that less and less is necessary in config.inc.php - if you look at the config.inc.php in the latest release you'll find it is really quite short. The only things that need to be config.inc.php are configuration settings which you have changed from the defaults defined in systemdefaults.inc.php.

     
  • Campbell Morrison

    One other thing I noticed about your config file. You have

    $override_locale = "en";
    

    I don't think this is a valid locale on most systems. It's not the cause of the error you are seeing above, but I suspect you want to set it to one of the following, depending on whether you want GB or US style dates and whether your server is running Linux or Windows:

    $override_locale = "en_GB.UTF8";  // Linux, GB
    $override_locale = "en_US.UTF8";  // Linux, US
    $override_locale = "eng";  // Windows, GB
    $override_locale = "enu";  // Windows, US
    
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-08-31

    Since the update might make me complicate could you please show me the way on how to import all the previous booking record from my 141 the rest I can reconfigure.

     
  • Campbell Morrison

    The records should be upgraded automatically when you upgrade.

    First of all, take a backup of your database and web server in case something goes wrong. Then upload MRBS 1.6.1 to your web folde. I would create a new config file starting from the basic one, just adding the settings you need to change. Then launch MRBS. It will prompt you for a database username and password.

     
  • John Beranek

    John Beranek - 2017-08-31

    As for the config file it might be a little bit of trial and error to take just the required bits and apply them to a clean config.inc.php, but it should leave you with a much smaller, more readable config file.

     
    Last edit: John Beranek 2017-08-31
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2017-09-04

    One last question please. I have used type K for video-conf and now I set type H as Video-Conf so how can I change the entire mrbs-entry record from K to H? It's around thousands record for years :(

     
1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Cancel  Add attachments