The Events Calendar (basic and pro) Ajax conflict with Press Permit (con't)

Home Forums Calendar Products Events Calendar PRO The Events Calendar (basic and pro) Ajax conflict with Press Permit (con't)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #337332
    websherpa
    Participant

    Kevin Behrens worked out a temporary fix for the Ajax conflict between TEC and PP which I thought might help someone else and is detailed here:
    http://presspermit.com/forums/topic/issue-between-ppcore-and-the-events-calendar-modern-tribe/

    (for theme’s functions.php file)

    function define_tec_ajax( $ajax_read_actions ) {
    $ajax_read_actions = array_merge( $ajax_read_actions, array( ‘tribe_calendar’, ‘tribe_list’, ‘tribe_event_day’,’tribe_event_week’ ) );
    return $ajax_read_actions;
    }
    add_filter( ‘pp_ajax_read_actions’, ‘define_tec_ajax’ );

    However, I need help discovering the call to use to do a similar work around for the Maps view. Any ideas / assistance?

    Thank you!

    Wayne

    #364773
    Casey
    Participant

    Wayne,
    Thanks for getting in touch! Unfortunately that link you shared requires a login in order to view it, so I can’t investigate the details, but after investigating the Map view ajax calls, I’m seeing ‘tribe_geosearch’ as the action that’s being fired when browsing between pages (screenshot).

    Try adding that to your code snippet and see if it does the trick. If that doesn’t work, I’d suggest you reach out to Kevin Behrens as I’m not exactly familiar with Press Permit and what his fix entails, but we’ll be happy to try and answer any questions that might help him troubleshoot further.

    Thanks! 🙂

    -Casey-

    #366258
    websherpa
    Participant

    LOL, funny enough Kevin chimed in and helped me find the “tribe_geosearch” call (You guys at TEC AND Kevin at PP have been AMAZING!). My resolution for the conflict between PP and TEX Ajax calls now references all of the available TEC views (I think). Depositing it here for future reference:
    (put in theme’s functions.php file)
    /* TEC Calendar – Temporary fix for Press Permit month/day/list AJAX link issue */

    function define_tec_ajax( $ajax_read_actions ) {
    $ajax_read_actions = array_merge( $ajax_read_actions, array( ‘tribe_calendar’, ‘tribe_list’, ‘tribe_event_day’,’tribe_event_week’,’tribe_geosearch’,’tribe_photo’ ) );
    return $ajax_read_actions;
    }
    add_filter( ‘pp_ajax_read_actions’, ‘define_tec_ajax’ );

    Thank you again TEC!

    Wayne

    #379920
    Casey
    Participant

    Awesome and thanks for the kind words! 😀 Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/lo

    Thanks in advance. 🙂

    Cheers,
    Casey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘The Events Calendar (basic and pro) Ajax conflict with Press Permit (con't)’ is closed to new replies.