Joe Dolson
Forum Replies Created
-
This is available in the latest release of My Tickets; you can use the template tag
{available_tickets}to show the raw number of tickets available for an event.I’ve just released an update to fix this; it’s totally my fault – a piece of code I had in place for debugging and failed to remove.
This is fixed for the next release; it was a logic mismatch between the admin and the front-end.
The event data is stored as an array accessible with
get_post_meta( $post_ID, '_mc_event_data', true );, so that’s probably going to be your easiest path. But that won’t support recurring event data, so if you’re using recurring events you’ll need to get the instance ID from the URL:$instance_id = absint( $_GET['mc_id'] );, then use that to fetch the event object:mc_get_event( $instance_id );.Obviously, those are highly incomplete suggestions, but you can get the data that way.
Well, you could set the
beforeattribute to 1, which will include events starting a day before the current day; then add custom styles to hide past events:.upcoming-events .past-event { display: none; }But at the moment there isn’t a logic that actually includes today’s events in the upcoming events list. I’ll have to look at that; I feel like there’s just a logic gap in there somewhere – if “1” shows 1 event before today, and also then shows today; then “0” should show an event today…
You could also stack two shortcode:
[my_calendar_today]followed by[my_calendar_upcoming], which would work; although you may have to add some custom styles to override gaps between the two lists.Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets flushing object cacheI’ll look into this. It should only get flushed when shopping cart data is saved or deleted, and that definitely shouldn’t be *constant.*
There are a lot of functions specifically for fetching event data; I suggest enabling the PHP template option in My Calendar > Settings > Display, then using the PHP templating functions to structure your event. Your existing
single.phpwould structure everything around the event, but the custom template would take care of everything inside the event.You can get event information in other ways, but that’s the recommended method.
It should be possible to rewrite the selector in the tracking script to omit the navigation links in My Calendar; either by omitting any links inside a div with class
.my-calendar-navigationor by omitting all links withrole="button".That is the standard way My Calendar works; it looks to me like there’s some kind of link click tracker enabled on your site that’s overriding the JS and redirecting the links. The related URL is
vbt.io; this isn’t a service I recognize or am familiar with, but it’s overriding other behaviors.Yes, that’s a feature in the pro version.
Yes, blocking X in your country could cause that – if your server is unable to communicate with X, then it wouldn’t be able to validate the timestamp. That would also mean it’s not going to be able to post to X, however, so it won’t make much of a difference.
That’s only going to be true if your server is located within a blocked country, though, I think.
There isn’t currently a way to mark an event as cancelled, although it’s on my roadmap.
However, you can change the title on just one event in a recurring series. While logged-in, find the event you want to edit. Open the event and click on ‘Edit Date’ to edit the details for only that date of the event.
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Unable to load custom icons?You can always replace the built-in icons, but I wouldn’t recommend it; your changes will be overwritten as soon as you update the plugin.
This could be a filesystem issue; what type of server are you on?
The
show_todayargument for the upcoming events shortcode was deprecated in my last major release – mostly because it created a lot of complexity in the code and had a confusing implementation. The code was simplified to produce events that start after “now”, whenever that currently is.But that really should be including events that are happening today, as long as they’re not in the past.
One thing you can use is the
[my_calendar_today]shortcode, which *only* shows today’s events. It’s a much simpler way of getting the events happening today.Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Scheduled Days showing one day off.It’s just the back-end display; it’s a known issue that I expect to ship a fix to in the next release. The actual dates are correct, they just aren’t displaying in the right timezone in the admin.