Peter Monk

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Replace RSVP contact details with attendee details #1547051
    Peter Monk
    Participant

    Hi again,

    Never mind, I’ve figured it out.

    At line 525 of the event-tickets/src/Tribe/RSVP.php file, I’ve added:

    $my_post_id = $_POST['product_id'][0];
    $attendee_details['full_name'] = $_POST['tribe-tickets-meta'][$my_post_id][1]['first-name'] . ' ' . $_POST['tribe-tickets-meta'][$my_post_id][1]['last-name'];
    $attendee_details['email'] = $_POST['tribe-tickets-meta'][$my_post_id][1]['email-address'];

    This results in my filler name and address being replaced by whatever name and address was entered in the attendee first name, last name and email address boxes.

    Cheers,
    Peter.

    in reply to: Marking event as hidden does not hide it in widget list #1157981
    Peter Monk
    Participant

    Hi Geoff,

    Thanks, I’ve got this in place already. 🙂 I need events to be hidden from everywhere, so if I mark hidden events as “hidden” and put all non-hidden events in a “Public” category (and then get the widget to display just that category), the hidden events don’t appear anywhere.

    But as this system is going to be maintained by non-technical people I’d like to keep it as simple as possible (ie, no need to involve categories), so I’ll switch everything back once there’s a fix available.

    Thanks for the follow-up, I appreciate it.

    Cheers,
    Peter.

    in reply to: Marking event as hidden does not hide it in widget list #1157356
    Peter Monk
    Participant

    Hi Geoff,

    Thanks for the response. Glad to hear my info was useful and that you’ve confirmed the issue!

    Please let me know how it goes with a solution.

    Cheers,
    Peter.

    in reply to: Marking event as hidden does not hide it in widget list #1156639
    Peter Monk
    Participant

    Hi Geoff,

    I’ve set up a fresh test site and installed Event Calendar, and I am able to replicate the issue.

    This site is running Twenty Fifteen with no template customisations or custom code in functions.php. No plugins are active except for Event Calendar and Event Calendar Pro.

    I’ve attached two related screenshots. The first shows the calendar when when my test event is NOT hidden. As you can see, it appears in the monthly calendar, the widget mini calendar and the widget list. The second shows the calendar when the test event IS hidden. The event is not displayed in the monthly calendar or the widget mini calendar, but it is displayed in the widget list.

    I’ve also attached a screenshot of the event plugin settings and the setup of my test event.

    Hopefully this is useful in working out what’s happening.

    Do you know whereabouts in the code the plugin makes the decision to display or not display an event in the widget list based on the ‘hidden’ flag?

    Thanks,
    Peter.

    in reply to: Marking event as hidden does not hide it in widget list #1156221
    Peter Monk
    Participant

    This reply is private.

    in reply to: How to inspect events returned from database queries? #1151616
    Peter Monk
    Participant

    Hi Josh,

    I’ve found a solution. I’m wondering if it’s some kind of conflict between various timezone settings (server/WordPress/Events Calendar).

    If I change the “Timezone mode” setting on the Settings page from “Use the sitewide timezone everywhere” to “Use the local timezones for each event”, the mini calendar is fully and correctly populated.

    All the events are individually set to Sydney time (AEST), and WordPress itself is set to the Sydney timezone.
    The server itself is running on ACST (half an hour behind AEST), although the system data dump that Events Calendar produced seems to say it’s running on UTC, which it isn’t.

    I don’t know why changing the above option fixes it, because either way it should be using AEST — and if I switch on the “show timezone” option, it always displays AEST no matter what the timezone usage option is set to. But in any case, changing the above option fixes the problem.

    My only thought is that it could be something to do with a disparity between the WordPress timezone, the server timezone, and the fact that Events Calendar seems to think the server is running on UTC.

    If you need any further info, please let me know, but my problem is sorted.

    Thanks,
    Peter.

    in reply to: How to inspect events returned from database queries? #1149797
    Peter Monk
    Participant

    Thanks, Josh, I appreciate it.

    Cheers,
    Peter.

    in reply to: How to inspect events returned from database queries? #1149321
    Peter Monk
    Participant

    Hi again Josh,

    I think I’ve found the problem, and it looks like it might be some unexpected behaviour in Events Calendar.

    So, your trace output function (thanks for that, it worked great) showed that it was indeed grabbing ALL the events from the database, it just wasn’t displaying them.

    As an example, here’s a couple of them — one of which displayed, the other of which didn’t.

    Array (

    // THIS ONE DOESN’T DISPLAY
    [4] => WP_Post Object (
    [ID] => 5128
    [post_author] => 3
    [post_date] => 2016-08-08 22:48:59
    [post_date_gmt] => 2016-08-08 12:48:59
    [post_content] => Content here.
    [post_title] => Meeting
    [post_excerpt] => Excerpt content.
    [post_status] => publish
    [comment_status] => open
    [ping_status] => closed
    [post_password] =>
    [post_name] => event-4-slug
    [to_ping] =>
    [pinged] =>
    [post_modified] => 2016-08-08 23:11:33
    [post_modified_gmt] => 2016-08-08 13:11:33
    [post_content_filtered] =>
    [post_parent] => 0
    [guid] => http://xxx.com/?post_type=tribe_events&p=5128
    [menu_order] => 0
    [post_type] => tribe_events
    [post_mime_type] =>
    [comment_count] => 0
    [filter] => raw
    [EventStartDate] => 2016-09-08 08:00:00
    [EventEndDate] => 2016-09-08 10:00:00
    )
    // THIS ONE DOES DISPLAY
    [5] => WP_Post Object (
    [ID] => 5129
    [post_author] => 3
    [post_date] => 2016-08-08 22:55:02
    [post_date_gmt] => 2016-08-08 12:55:02
    [post_content] => Content here.
    [post_title] => Event title.
    [post_excerpt] => Excerpt here.
    [post_status] => publish
    [comment_status] => open
    [ping_status] => closed
    [post_password] =>
    [post_name] => event-5-slug
    [to_ping] =>
    [pinged] =>
    [post_modified] => 2016-08-08 23:11:40
    [post_modified_gmt] => 2016-08-08 13:11:40
    [post_content_filtered] =>
    [post_parent] => 0
    [guid] => http://xxx.com/?post_type=tribe_events&p=5129
    [menu_order] => 0
    [post_type] => tribe_events
    [post_mime_type] =>
    [comment_count] => 0
    [filter] => raw
    [EventStartDate] => 2016-09-09 23:00:00
    [EventEndDate] => 2016-09-10 01:00:00 )
    )

    So, the one thing I noticed was that all the events that DID display had an EventStartDate and an EventEndDate (the last two fields in the data array) on different dates. For all events that DIDN’T display, these were on the same date as each other.

    The times displayed here are not the times I set the event for, BTW — I assume they’re in GMT, as these events are in a GMT+11 time zone.

    This seemed to me to be a silly reason not to display, but I did some testing and got definite results. If I changed an event that WAS displaying so that its GMT start and end times were on the same day, it disappeared from the mini calendar. And if I changed the times for an event that WASN’T displaying so that its GMT times were on different days, it suddenly started appearing.

    So I don’t know if I have some weird settings in my plugin, or whether there’s some weird issue with the server, or whether Events Calendar is doing something it shouldn’t, but it does definitely appear to be related to dates, time zones and event selection/display based on those criteria.

    If you could investigate this and let me know what you find, I’d appreciate it!

    Cheers,
    Peter.

    in reply to: How to inspect events returned from database queries? #1149313
    Peter Monk
    Participant

    This reply is private.

    in reply to: How to inspect events returned from database queries? #1148949
    Peter Monk
    Participant

    Hi again,

    Just as a follow up request, I would also love to know what query is being run to get the results.

    The behaviour I’m seeing is really odd.

    I had one event in July, I have three in August and two in September.
    Viewing the current month (August) in the mini cal, I see no events.
    Changing month back to July, I see my event OK.
    Moving forward to September, I see only the second of my two events.

    Throughout all this, the list of events beneath the mini cal is displaying ALL EVENTS OK.

    What I don’t get is that both the mini cal and the event list beneath it are presumably running the same queries on the same tables, so why aren’t they returning the same events?

    If there is some conflict in the theme or elsewhere, why doesn’t it have a consistent effect? Why would I get all events some months, none in other months, and only some in other months? Why isn’t affecting the list as well as the grid?

    it just seems like there is something that differentiates the events in some way that is causing the database queries to grab different results.

    So, how can I see what queries are being run on the database in each of these cases?

    Thanks very much for your help!

    Peter.

    Peter Monk
    Participant

    Hi,

    Any ideas on this issue?

    I’ve added a second event to July and these are both showing with dots on the mini calendar grid.
    No events in later months are showing.

    Thanks,
    Peter.

Viewing 11 posts - 1 through 11 (of 11 total)