frisii
Forum Replies Created
-
I need to know which extra fields are available and then query them per user.
It seems one of my editors did. Without my knowledge. Or Consent. Someone seems to be volunteering to become chew-toy. See also https://www.ads-software.com/support/topic/missing-calendar-categories/#post-17755169
And many thanks.
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Missing calendar categoriesI did not even know that there were, or that it was possible to set them. Reviewing the calendar page showed that, indeed, only the “Repetitie” (Rehearsal – this is for a project choir) option would be shown.
Now, since I never touched that page after I had it working exactly to my liking, I am going to have to have a very stern talk with one of my editors.
It took me a while (and a bit of searching) to figure out what you meant, but in the end I figured I just had to symlink single-mc-events.php to page.php in my active theme directory.
Doing the same with single-mc-locations.php created the same layout for locations. This trick was not directly found in the documentation but it made sense, so I gave it a try.
Forum: Plugins
In reply to: [Simple Membership] How to protect “My Calendar” plugin entriesIt seems the “full page protection” plugin is capable of protecting those.
Ah never mind, it’s not part of the calendar but part of the page template that’s being used. Which still relates to this: https://www.ads-software.com/support/topic/my-calendar-uses-blog-page-template-when-displaying-events-or-locations/
This bit of additional CSS seems to have done the trick:
.mc-main .mc-content td.vr {
display: table-cell;
align-self: unset;
width: unset;
min-height: unset;
opacity: unset;
}Oh crap I just noticed the original post instead of showing bold and underlines shows the code for bold and underline instead. Well luckily I managed to trace the problem. Hopefully someone will come up with a proper fix for this.
The problem seems to come out of the $dateclass variable in my-calendar-output.php, which is generated by the function mc_dateclass() in date-utilities.php.
The line containing
sanitize_html_class( strtolower( date_i18n( 'D', $current ) ) );
being the actual culprit here.The full line in there was
$dayclass = sanitize_html_class( strtolower( date_i18n( 'l', $current ) ) ) . ' ' . sanitize_html_class( strtolower( date_i18n( 'D', $current ) ) );
which I commented out and added a line below without the culprit to have a proper Friday column in my calendar now.Now this is actually a hack and not a fix (at least I’d classify it as such) but my knowledge of css and php are practically zero so I don’t have an elegant fix for this right now.