John

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Community Events Redirect plugin and/or snippet not working #1024980
    John
    Participant

    Fixed by adding to some other redirects I had on the site.

    
    $uri = $_SERVER['REQUEST_URI'];
    
    ...
    
    } else if (preg_match('/\/events\/community\/add\//i', $uri) && !empty($_POST)){
        wp_redirect(home_url());
        exit;
    }
    in reply to: Community Events Redirect plugin and/or snippet not working #1024976
    John
    Participant

    I added a check at the top of the template to see if the post array is not empty. Even though the events are submitting, there is no redirect.

    In reviewing the headers being sent on form submission, there doesn’t seem to be any post data, just “Request Payload” data which is the information I would expect to be sent as post data:

    ------WebKitFormBoundary2EHI3iVb3Yizdr9y
    Content-Disposition: form-data; name="post_ID"
    
    23627
    ------WebKitFormBoundary2EHI3iVb3Yizdr9y
    Content-Disposition: form-data; name="_wpnonce"
    
    XXXXXXXXXXXXX
    ------WebKitFormBoundary2EHI3iVb3Yizdr9y
    Content-Disposition: form-data; name="_wp_http_referer"
    
    /events/community/add/
    

    …etc

    in reply to: Displaying Recurrence Rule's start time #1024370
    John
    Participant

    Geoff,

    That gets me part of the way there. I need to only pull the time for that specific occurrence though. I’m unsure how I could track that was the XXth occurrence and use that to get the correct time from the array.

    Thanks!

    in reply to: Ability to search for Organizers with keywords #1016420
    John
    Participant

    George,

    I found that I needed multiple WP_Query’s and merged them together. The purpose was to allows users to search by event name or the organizer… so if something matched the organizer I needed to present all events (even if they didn’t match the search term).

    Thanks for the comments about updating… I’ll do so soon!

    Take care!

    in reply to: Custom AJAX call #1004843
    John
    Participant

    George,

    While fixed for now, the solution will be written over if the plugin is updated. This means I’ll have to advise the client they’re not to update the plugin.

    It is a solution nevertheless, so thanks for your help.

    in reply to: Custom AJAX call #1004265
    John
    Participant

    George,

    Thanks for the quick response. That works as a stand in but would really like to give users more control instead of dropping a whole month’s worth of events (20+) at one time.

    So there is no way to get the next five events? I notice when changing to the next month an ajax call is made with the following headers:

    action:tribe-mini-cal
    eventDate:YYYY-MM-01
    count:(whatever is set)
    tax_query[0][taxonomy]:tribe_events_cat
    tax_query[0][field]:id
    tax_query[0][operator]:IN
    tax_query[0][terms][]:category # set in shortcode
    nonce: nonce

    Is there no way to use this call to get more events?

    in reply to: Events Calendar widget linking when it shouldn't #999284
    John
    Participant

    Found the issue.

    A while ago I had copied and pasted the [tribe_mini_calendar] shortcode from a site. Found that the shortcode was nested in an anchor tag. Easy to miss in the WYSIWYG but still a goofy mistake. So it’s been going on all this time, I just didn’t notice it until this week.

    in reply to: Events Calendar widget linking when it shouldn't #998823
    John
    Participant

    George,

    Thanks for the quick reply!

    Since the site is still in development it’s gated with username/password. I’ll see what I can do to provide access and what else I can find out on my own.

    in reply to: Events Calendar widget linking when it shouldn't #998584
    John
    Participant

    I added an event for this month. The day of the event the link works correctly (isn’t clickable).

    All other days for the month still link to:
    https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/#mini-cal-shortcode

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