You'd have to modify the MRBS code to give the bookings a class or data attribute based on their room id and then use CSS for the colour. But I'm not sure why you'd want to do this anyway? In the day view all bookings for a room are in the same column and in the week and month views you only see bookings for one room anyway.
By the way, for future queries such as this could you raise a Support Request ticket please? Patches are intended for people contributing patches. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2019-06-27
Can you show a sample for it? Because I want to differetiate the booking by room so that everyone can get clearer view
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry, I'm afraid I don't have time to work out how to do it. Maybe somebody else does, or else you will have to figure it out yourself. The code that creates the bookings display is in functions_table.inc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2019-07-18
If I change this
$column[$s][$n]["color"] = $entry['room_id'];
will it chnage the colour according to room?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Either change your config file so that there is only one type (assuming you don't want to use types) or else edit the colours for the types in Themes/default/styling.inc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2019-07-18
I changed to this
$color_types = "#DC143C";
But it still does not show the color that i chose despite any type.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have a look in your browser's Developer Tools to see what is happening. I suspect that some other change you have made is over-riding that change. Or else try the change on a standard version of MRBS with no other changes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You'd have to modify the MRBS code to give the bookings a class or data attribute based on their room id and then use CSS for the colour. But I'm not sure why you'd want to do this anyway? In the day view all bookings for a room are in the same column and in the week and month views you only see bookings for one room anyway.
By the way, for future queries such as this could you raise a Support Request ticket please? Patches are intended for people contributing patches. Thanks.
Can you show a sample for it? Because I want to differetiate the booking by room so that everyone can get clearer view
I'm sorry, I'm afraid I don't have time to work out how to do it. Maybe somebody else does, or else you will have to figure it out yourself. The code that creates the bookings display is in functions_table.inc.
If I change this
$column[$s][$n]["color"] = $entry['room_id'];
will it chnage the colour according to room?
You'd have to add an alpha character to the colour to keep the CSS happy, eg
$column[$s][$n]["color"] = 'R' . $entry['room_id'];
and then add CSS rules to give the rooms colours, eg
Means add the css color inside the function_table.inc or at the styling.inc?
Neither. Create a custom CSS file (see systemdefaults.inc.php for how to do this) and add the rules there.
Or can i know where to set the booking to have only one colour no matter of what type
Either change your config file so that there is only one type (assuming you don't want to use types) or else edit the colours for the types in Themes/default/styling.inc.
I changed to this
$color_types = "#DC143C";
But it still does not show the color that i chose despite any type.
It needs to be an array, eg
I changed
but however it only shows one color. I changes the type to the facilities needed or not but however seems like not working.
Last edit: Campbell Morrison 2019-07-19
Isn't that what you want? You asked "Or can i know where to set the booking to have only one colour no matter of what type".
The color code that I set is not that color. However it didnt show that color.
Have a look in your browser's Developer Tools to see what is happening. I suspect that some other change you have made is over-riding that change. Or else try the change on a standard version of MRBS with no other changes.