HodgeHi Posted March 23, 2012 Posted March 23, 2012 Is it me or is MRBS becoming more and more fiddlier to update? I have moved to the latest version and now I have come to tweaking some settings and cannot work out how to do it. I am trying to add a new booking type to help differentiate between time-tabled lessons and additional booked slots. I have uncommented the A option and then added the description but the changes don't show on the site. It does say that there is a setting that needs to be done to make it active but I can't understand where it is saying to make this change. Sorry for the vagueness but I am a bit clueless with MRBS at the moment since you have had to start making your own config.inc.php file. Any ideas? Thanks.
Chris_Cook Posted March 23, 2012 Posted March 23, 2012 With the new system, the factory defaults are stored in systemdefaults.inc.php, your settings are in config.inc.php. If there is something you want to change, then you need to copy it out of systemdefaults.inc.php and put it in config.inc.php. This is so when you upgrade, you don't lose your settings. for the entry types, you need to put unset($typel); above your type configuration. Ours is included below /************* * Entry Types *************/ // 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. unset($typel); $typel["A"] = "Lesson"; $typel["B"] = "Staff Training"; $typel["C"] = "Controlled Assesments"; $typel["D"] = "PSHE"; // $typel["E"] = get_vocab("external"); $typel["F"] = "Holidays"; $typel["G"] = "Timetabled Lesson"; // $typel["H"] = "H"; // $typel["I"] = get_vocab("internal"); $typel["J"] = "Exams"; /********** * Fields **********/ 1
HodgeHi Posted March 30, 2012 Author Posted March 30, 2012 Hey Chris_Cook, I have copied and pasted your Entry Types section into you config file and commented out my own. I then proceeded to load my bookings page but the new settings were ignored. The default external and internal options were the only ones visible and they were also the only ones to choose from in the drop-down menu. Something is obviously wrong but I'm not sure what it is. I don't quite understand this bit... // 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. I assume this is the reason you placed unset($typel); at the top.
Chris_Cook Posted March 30, 2012 Posted March 30, 2012 It sounds like the default configuration for the types is being overridden latter in the config.inc.php file. The config files are just php code, and are executed sequentially, first system defaults, then config.inc.php. They are done line by line. My guess would be that unset($typel); $typel["E"] = get_vocab("external"); $typel["I"] = get_vocab("internal"); is repeated later in config.inc.php. If you can't find it, then feel free to pm me your systemdefaults and config.inc files (minus the database passwords etc) and I can have a look if you like. But I suspect that if you use 'find next' in notepad (or grep if you host on a linux box) you can find the source of the problem. Maybe if you even move the type configuration to the end of config.inc.php it will solve the problem. 1
HodgeHi Posted March 30, 2012 Author Posted March 30, 2012 The types settings are already at the end of the config file. I may just look at re-installing MRBS and see if that resolves the issues. I am also looking into how to build or import a booking system into our share point system. Thanks for your help and offer. I may get back to you and take you up on it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now