#414 Howto - showing the booking-types colors

open
nobody
1
2013-11-11
2013-11-11
Anonymous
No

Hi,
I can't get to work colors of booking-types in booking-calendars (no matter if a day/week/month). If I create new booking and set some type of booking, after saving and showing the detail of created booking, the changes to "type.M"/"type.U" and the booking has no color in calendars.
I've changed the default "E" and "I" types into "Music Art" and "PedF UK", and add one new type "other" in config.inc.php. Also in lang file, styling.inc I've made changes. If I want to create new booking, I can choose from the dropdown list of Music Art / PedF UK / others. In the calendar view, under the calendar, there are these three types of bookings with right colors.

Don't you know how to get the right colors after booking approval?

Thank you for your suggestions

Robii

Discussion

  • Can you post the changes you have made to styling.inc and also the config file (just the bits to do with the new booking types, not confidential information such as your password etc)?

    Campbell

     

  • Anonymous
    2013-11-11

    I've found and solve the problem - it was my understanding in making new booking types. I thought that it may be more than one-letter shortcut, so I made (in config.inc.php):

    $booking_types[] = "MA";
    $booking_types[] = "UK";
    $booking_types[] = "OT";

    ...the system use just one-letter shortcuts, therefore "type.M"/"type.U". And the colors was defined for "MA"/"UK", not for "M"/"U" and that's why there wasn't any color - it wasn't defined.

    After changing $booking_types[] to one-letter shortcuts, colors are OK.

    Sorry for my mistakes and thanks for your time, Campbell, problem is solved :-)

    One small question off-topic: Is there a way to import bookings via csv or txt (or another file)?

    Robii

     


Anonymous


Cancel   Add attachments