Forum Replies Created
-
AuthorPosts
-
Glen Draeger
ParticipantPlease excuse my ignorance on this, but how exactly would I tie into that?
Glen Draeger
ParticipantThis actually solved my issue. I’m leaving this ticket open in case there is something built into the calendar that might handle it more elegantly.
(function() { var origOpen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function() { console.log('request started!'); this.addEventListener('load', function() { console.log('request completed!'); console.log(this.readyState); //will always be 4 (ajax is completed successfully) console.log(this.responseText); //whatever the response was }); origOpen.apply(this, arguments); }; })();Glen Draeger
ParticipantMaybe this is what I need?
tribe_is_ajax_view_request()
Will give it a shot.
November 1, 2016 at 7:45 am in reply to: Using tribe_get_events On Main Calendar Page Recurring Events Issue #1185754Glen Draeger
ParticipantThanks Brook! That worked perfectly!
Really appreciate you figuring this out.
October 26, 2016 at 11:58 am in reply to: Using tribe_get_events On Main Calendar Page Recurring Events Issue #1183343Glen Draeger
ParticipantThanks for the attempt, but that still did not work. I tried setting the query var manually in month view…..it still had no effect. See this link:
http://www.eventsonline.com/hoteldel/2016-10-26_11-49-48.png
It just seems very odd. The slider does exactly what it is supposed to do on any other page and in any other view on the main calendar page….except Month view.
October 25, 2016 at 9:01 am in reply to: Using tribe_get_events On Main Calendar Page Recurring Events Issue #1182494Glen Draeger
ParticipantYes and no. I had to manually get rid of them so that they didn’t all show. It’s the “Ghost Roast” events:
You can see them all on the individual days in month view.
See these screenshots from my local server:
In calendar view:
http://www.eventsonline.com/hoteldel/2016-10-25_08-55-24.pngIn List view:
http://www.eventsonline.com/hoteldel/2016-10-25_08-57-13.pngIt looks to me like the main calendar page is affecting my custom query somehow.
I use the same code in popup slider and it works fine….as long as you are not on the main calendar page. Then it does the same thing…shows all the recurring events.
October 23, 2016 at 9:55 pm in reply to: Using tribe_get_events On Main Calendar Page Recurring Events Issue #1181761Glen Draeger
ParticipantJust to clarify the above, when I switch the main calendar to list view, the slider works as it should.
August 5, 2016 at 9:19 am in reply to: Single Event Page Affecting Custom Programmed Event Slider #1148205Glen Draeger
ParticipantHere’s my query:
$args2 = array(
‘post_type’ => ‘tribe_events’,
‘posts_per_page’ => 20,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘slug’,
‘terms’ => ‘special-events’,
)
)
);June 16, 2016 at 2:53 pm in reply to: Exclude Event Category from Calendar but NOT custom Query #1128183Glen Draeger
ParticipantI got it to stop throwing errors by adding this:
if ( ! isset( $query->query_vars[‘eventDisplay’] ) ) return; (found on your forums)
Everything is working. Thanks so much. I could not have figured that out on my own.
June 16, 2016 at 2:30 pm in reply to: Exclude Event Category from Calendar but NOT custom Query #1128177Glen Draeger
ParticipantThanks, but this throws the error:
Undefined index: eventDisplay
Glen Draeger
ParticipantI did find the answer in more recent thread and this worked for me:
/*
* Events Tickets Plus – WooCommerce Tickets – Prevent Ticket Email from being sent.
* @ Version 4.0
*/
add_action( ‘init’, ‘wootickets_stop_sending_email’ );
function wootickets_stop_sending_email() {
if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {
$woo = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();
remove_filter( ‘woocommerce_email_classes’, array( $woo, ‘add_email_class_to_woocommerce’ ) );
add_action( ‘woocommerce_email_after_order_table’, array( $woo, ‘add_tickets_msg_to_email’ ) );
}
}Glen Draeger
ParticipantAny way I can get credit for the other two personal pro licenses I have? I notice the developer’s cost does discount for the one account.
Glen Draeger
ParticipantFor anyone looking to do this specifically…I just did this:
$linux_time = strtotime(tribe_get_month_view_date());
$event_month = strftime(‘%B’,$linux_time);August 7, 2013 at 3:11 pm in reply to: Warning: in_array() [function.in-array]: Wrong datatype for second argument #59404Glen Draeger
ParticipantTurned on debug mode and got this additional error:
Notice: Undefined variable: post_type_names in /home/tennisct/public_html/wp-content/themes/genesis/lib/functions/general.php on line 273
Only on the calendar page….August 7, 2013 at 3:00 pm in reply to: Warning: in_array() [function.in-array]: Wrong datatype for second argument #59399Glen Draeger
ParticipantGenesis just upgraded to 2.0, so I suppose it could also be tied to the newer version of Genesis.
-
AuthorPosts
