Home › Forums › Calendar Products › Events Calendar PRO › The Events Calendar (basic and pro) Ajax conflict with Press Permit (con't)
- This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by
Casey.
-
AuthorPosts
-
July 10, 2014 at 2:28 pm #337332
websherpa
ParticipantKevin 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
July 12, 2014 at 7:56 pm #364773Casey
ParticipantWayne,
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-
July 13, 2014 at 6:44 am #366258websherpa
ParticipantLOL, 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
July 14, 2014 at 8:21 am #379920Casey
ParticipantAwesome 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 -
AuthorPosts
- The topic ‘The Events Calendar (basic and pro) Ajax conflict with Press Permit (con't)’ is closed to new replies.
