• Hi Joe, I’m having problems transitioning from using My Calendar V3.7.17 to V3.8.X. With V3.8.2 on my test system, my main and mini calendar grids are displaying ok but not the contents of the pop ups when you click on specific events. In V3.7.17 I had been using PHP templates to define these (which in turn I had migrated to from earlier legacy templates) but with V3.8.X the displays don’t seem to correspond to their definitions. Given that I’d become unhappy with the complexity introduced by using PHP templates anyway, I thought it would make more sense to disable PHP templating and see what I got with the standard displays. As it happens, this seems close to a viable system and much better than my mangled PHP template efforts.

    However, I’d like to use category colours as backgrounds for event titles, which is what I had with V3.7.17. Despite enabling ‘Event titles and icons use category color as a background color’ in Category Settings, the title bars of main calendar pop ups (which show the event title) do not reflect that. They just show as black text on white background. Furthermore the mini calendar pop ups do not use category colours for the background to the {time}: {title} entries which effectively act as subsection headings in the pop ups. Is this a bug in the plugin? If not, how can I configure the system to make this happen?

    Hopefully the above makes sense. If not, I can supply some screenshots that should clarify matters.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’ll look at this; this seems like a likely oversight in the modals and how the CSS cascades.

    Can you tell me some specifics about how the PHP templates don’t correspond to their definitions? I’d like to explore that, but some details would help.

    Thread Starter casewebman

    (@casewebman)

    Thanks Joe. I’ll be happy to revisit the PHP templates once we get the ‘Event titles and icons use category color as a background color’ facility working properly as I suspect that’s impacting my PHP templates as well as the standard pop ups.

    Thread Starter casewebman

    (@casewebman)

    Hi Joe, I’ve now tried our calendars with V3.8.4 of the plugin and despite the changelog suggesting it adds “support for category colors inside modal” neither the main pop ups or the mini pop ups show category coloured backgrounds for event titles. However after I included a line of custom CSS for each category of the following form:

    .my-calendar-modal .mc_quiz .event-title  { background: #e08dd3 !important; }

    (where quiz is a category name) the mini calendar pop ups show the required background colours. So I think statements of this form need to be added to your “my-calendar-style-inline-css” element in the generated web page for the system to work without local customisation.

    For the main calendar pop ups, I then tried something similar and added CSS statements of the following form for each category:

    .my-calendar-modal .mc_quiz .my-calendar-modal-title  { background: #e08dd3 !important; }

    BUT this didn’t work – the problem seems to be that the category name isn’t included as a class within the enclosing structure of the event title element ie. the .mc_quiz doesn’t match. So could you add div blocks of class mc_quiz (or whatever the category name is) to the generated code to enclose each target event title element, ie the

    <h1 id="modal-title" class="my-calendar-modal-title"> ... </h1> 

    elements.

    Plugin Author Joe Dolson

    (@joedolson)

    @casewebman Any change you can open this as a separate support request or as a Github feature request? The category colors in modals don’t support legacy templates, because the structures aren’t the same between them; so that may be what you’re encountering.

    Thread Starter casewebman

    (@casewebman)

    Hi Joe, I don’t believe I’m using any templates, legacy or otherwise. I was using PHP templates but disabled those as they didn’t seem to add much that wasn’t already available with the default system formatting. Perhaps some screen shots will better explain what I’m trying to achieve.

    First example is a main calendar pop up from our live system, still running My Calendar v3.7.17 with PHP templates enabled:

    Next is a main calendar pop up from my test system, running My Calendar 3.8.4 with templating disabled. The information is the same, the formatting is a bit different but acceptable apart from the omission of the category colour background for the title bar:

    The last example is also from the test system with My Calendar 3.8.4 but with a copy of the calendar.php template from the live system activated:

    As you can see, we now have two entries for the event title which is daft. I want to be able to show the event title that’s within the title bar with a background of the category colour but I only seem to be able to control the content of the pop up body. I was hoping that some suitable CSS would allow me to add the appropriate background colour to the title bar which is what my request for support of category based class names within the title bar stemmed from.

    Hopefully that makes sense – I’m simply trying to replicate a system which (IMHO) worked well under v3.7.17.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.