Joe Dolson
Forum Replies Created
-
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Customise entry on calendarWhich view are you trying to style? The grid? An upcoming events list? The single event view? Having some context might help me know how to guide you.
My Calendar needs to set a few headers:
header( 'Content-Type: text/calendar; charset=UTF-8' );
header( 'Pragma: no-cache' );
header( 'Expires: 0' );
header( "Content-Disposition: inline; filename=my-calendar-$sitename.ics" );Other server-level requirements would be things like PHP version, but if you didn’t meet those requirements you wouldn’t be able to run the plugin at all.
I’m not sure what you’re really asking for.
There’s nothing unusual required server-side, and there’s no use of any external IPs.
I don’t recognize the parameter
mc-ical={id}; that’s not a My Calendar parameter. The My Calendar parameter for getting a single event ICS file isvcal={id}; the URL for getting the feed is https://camfc.co.uk/feed/my-calendar-google/, or https://camfc.co.uk/feed/my-calendar-ics/.I looked at your site and was able to download an event ICS file using the
vcallink on an event, so that seemed to be working normally, but the subscription links aren’t working – it looks like they’re returning a 404 error, which suggests that feeds are disabled. If you have something that’s disabling RSS feeds, it may also be disabling the iCal feed.It could also be that the feed permalinks need to be refreshed, in which case you could go to WordPress > Settings > Permalinks and re-save those.
Thanks for noting that; fixed. And this time I actually ran the code, to verify…
Everything’s been a bit rushed this week.
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] Show customers purchases onlineSo, that’s not what the change in version 1.9.11 means: that was an admin-side change, ensuring that the payments scree in the admin is only available to users with permission to see reports.
I can see a minor logic error in the shortcode, however, and that’s probably what’s impacting you. (I can tell that this isn’t a heavily used feature, since this has been here for a while…)
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] Show customers purchases onlineSorry about the delay in responding! I’d seen this, and intended to handle it in my last release, but I hadn’t added it to my issues tracking on Github, and forgot about it in the rush to get everything out before WordPress 7 released.
Looking into it now.
Re: the last instance. When I originally wrote this, I set up so that “Until date” meant “until, but not including”. Now, years later, I do strongly think I should have set it up as meaning “until, and including”…but changing that is kind of tricky, as it will change a behavior that’s been in place for some time.
I’m inclined to make that change, but it won’t be in a minor release, so I can’t really say *when*, exactly.
I’ll check this out; the recurring template tag *should* return all event instances. I can tell immediately looking at it that it won’t work if a non-recurring event has additional instances added, which I’ll fix; but a recurring pattern that has additional or modified instances should be working.
Thanks for catching those errors; now fixed.
And I did leave out an important step… “Turn on PHP Templating”. Take a look at the instructions again…
I’m honestly not sure that’s a case I’ll be able to handle; but I’ll be looking at it. In the meantime, I’ve written some documentation about migrating from legacy templates to PHP templates:
https://docs.joedolson.com/my-calendar/migrating-from-legacy-templates-to-php-templates/
I’d removed the extraneous code, but I hadn’t removed the empty Upgrade Notice from the readme. That’s now gone.
Found a case that still needed to be handled, and I’m shipping an update to address that; let me know if it resolves your case!
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Locations Search Not WorkingAny CSS in the Customizer will load across the entire site; but whether it affects the entire site is a different question. You can qualify the CSS to limit its scope.
E.g.
.page-id-55550 .mc-main .event-title button {
display: grid !important;
}
.page-id-55550 .mc-main .event-title button img {
width: 100%;
}
.page-id-55550 .mc-main .event-title button > div > br:nth-of-type(1) {
display: none;
}That template key is referencing a template managed in the template editor at My Calendar > Design > Templates. If you can tell me what the original content of that is, it would be helpful.
This is directly related to a change made in WordPress 7 in the
wp_ksessanitization process. I built in a workaround so that legacy templates are still possible, but I can’t cover all possible cases.It would be helpful if you shared the original template, so I can check my workaround against it – but the major thing is that the new system is less forgiving of errors in the original template.
The specific change in
wp_ksesis that it normalizes quotes around HTML attributes, forcing them all to use double quotes and disallowing single quotes. That *immediately* breaks most My Calendar legacy templates, so I wrote a workaround that restores the single quotes. But looking at your template, there’s a gap somewhere, and it would help me to know what to look at.