Brook

Forum Replies Created

Viewing 15 posts - 826 through 840 (of 4,796 total)
  • Author
    Posts
  • in reply to: Out of Installs? #1138660
    Brook
    Participant

    Howdy mchildress,

    I would love to help you with this.

    That license key will only activate once, but when it does it activates for the entire network. The URL to activate the license for the network is: http://example.com/wp-admin/network/settings.php?page=tribe-common&tab=licenses

    If you are trying to input this license on a different page, such as within a subsite of the network or on a new network then it will generate an error that the license is out of installs.

    What exactly are you trying to do when you get this error? Are you trying to activate a new network, maybe you want to deactivate the old one and transfer the license?

    Cheers!

    – Brook

    in reply to: Recurring Events starting at the last event #1138617
    Brook
    Participant

    Awesome! It was my pleasure.

    Do let us know if you ever need anything else. Thanks Jason!

    – Brook

    in reply to: Fatal errors on our website #1138614
    Brook
    Participant

    You are welcome!

    in reply to: Backend event page loading slow. #1138610
    Brook
    Participant

    That’s a big improvement. Still a bit slow though. You do have a lot of events, no question about it. More posts = slower site, whether those posts are events, on the blog, pages, WooCommerce Orders, etc.

    But still in theory Month view should be relatively fast after the cache has kicked in. Your List View takes about 5 seconds to load, which is about fair considering the amount of events. I would expect Month View to take as long.

    Would you be interested in adding an admin account to your staging server for me to login with? You can delete it after. I am keen to log in and view the Query Monitor output for myself to see if there is anything else going on specific to your site. If you would like this please share the new login info here in a private reply. I won’t be changing any settings or anything, so if please make sure Query Monitor is still an active plugin. If you don’t want to do this though, no worries I totally understand.

    Cheers!

    – Brook

    in reply to: Fatal errors on our website #1138549
    Brook
    Participant

    Oh very good, I am happy he was able to get you there. That does sound strange, not something I’ve seen in the Avada theme before.

    I’ll leave this open for a couple weeks just in case it crops back up. Thanks for getting back. Cheers!

    – Brook

    Brook
    Participant

    Ahh Okay, I understand. Thank you for clarifying.

    single-event.php has not support for Ajax builtin. You would have to build that basically from the ground up.

    Where our plugins typically add support for ajax is within the “Template_Factory” we use. For example in /the-events-calendar/src/Tribe/Template/Month.php you will see the template factory used to produce Month View. It’s no small beast. There are number of portions of it that add Ajax support, but the bulk of it is within the ajax_response() located near the bottom of that file. You could add something like this for Month View if you were so keen. It would likely take a 2+ hours of dev work to do and get working well though, assuming you or you web developer are pretty versed in such things.

    I hope that info helps! I wish this wasn’t such a time consuming feature to build and I could just give you some exact code! Let me know if you have any questions along the way.

    Cheers!

    – Brook

    in reply to: Display ticket number in woocommerce invoice email #1138545
    Brook
    Participant

    Thank you for getting back Juan. I really appreciate the feedback.

    We do allow customization of the Tickets email view theme overrides ( Tutorial: themer’s Guide ). However, that requires some code knowhow so it might not be what you’re looking for.

    Thanks again for letting us know what’s important. Cheers!

    – Brook

    in reply to: Recurring Events starting at the last event #1138544
    Brook
    Participant

    Howdy Jason,

    You are welcome!

    $events = tribe_get_events( array(
       'posts_per_page' => 5,
       'start_date'     => date( 'Y-m-d' )
    ) );

    Replacing it with that will do a date range search from now forward. So it should show the next 5 upcoming events as it sounds like you expect. It will also show any ongoing events, namely events that have not ended yet but started recently.

    Did that do the trick?

    Cheers!

    – Brook

     

    in reply to: Importing CSV file and recurring events #1138533
    Brook
    Participant

    You are welcome. I appreciate you’re getting back. Let us know if you have any more questions. Cheers!

    – Brook

    in reply to: Fatal errors on our website #1138532
    Brook
    Participant

    Howdy ycf,

    I am sorry I just missed your response on Friday. 🙁

    I see your alert about the design issue on the site, but it is rendering perfectly for me. No squashing occurring, the site is full-width.Capture

    What web browser/device are you seeing this “squashing” in? It seems probable that is limited to only certain web browser.

    Cheers!

    – Brook

    Brook
    Participant

    Excellent! I appreciate you’re getting back Bartek.

    If you ever need anything else, will be here. 🙂 Cheers!

    – Brook

    in reply to: disappearing next/previous months links #1138525
    Brook
    Participant

    This reply is private.

    in reply to: Backend event page loading slow. #1138524
    Brook
    Participant

    Wow, that’s a long time. I was under the impression only your backend was loading slow.

    You main view is Month View, our slowest view. It has to run a lot of queries to support all of the calendars features. You should enable the Month View Cache in WP-Admin > Events > Settings > Display to help speed i up some. Further adding this snippet to your site (such as in your theme’s functions.php file) will disable JSON LD on Month View, making the caching a lot more effective:

    https://gist.github.com/elimn/9ce1c3e64d060b758e22627b815455ae

    We are considering caching JSON LD alongside month view in future version, which will render this snippet fairly useless from a performance standpoint. But for now the fastest thing to do is disable it.

    Did that help reduce the page load times? Keep in mind the first page load will be after the caching and snippet are enabled. But subsequent ones should be much faster.

    Cheers!

    – Brook

    Brook
    Participant

    Ahh that makes sense. Thank you for clarifying.

    I appreciate the tip that this is not working right. From time to time we have tested with themes which include the Visual Composer. The Composer behaves so differently from stock WordPress that it has been a recurring a conflict with many WP plugins, ours included.

    Basically anything we don’t officially support we do not do compatibility releases for. However, I could see our strategist having some interest in supporting that plugin. I just reached out to him and asked him to consider this plugin for possible inclusion in our future roadmap. That consideration process can sometimes take a while though.

    Until then them I am afraid I can’t make any guarantees that future versions of our plugins will ever support that plugin, nor that future versions of Composer won’t completely break compatibility with our plugins including past versions of our plugins. I wish we lived in a world where it was possible to support every single plugin out there, but we don’t.

    Wish I had better news for you. Please let me know if you have any questions.

    Cheers!

    – Brook

    in reply to: Remove times from Event Schedule Details function? #1137533
    Brook
    Participant

    Howdy David,

    Nico is a bit tied up at the moment, but I would love to help you with this as best I’m able.

    This would seem to do what you’re after:

    /**
     * Modifies tribe_events_event_schedule_details format
     *
     * @param string $schedule  the output HTML
     * @param int    $event_id  post ID of the event we are interested in
     * @param string $before    part of the HTML wrapper that was prepended
     * @param string $after     part of the HTML wrapper that was appended
     */
    function tribe_events_event_schedule_details_custom ( $schedule, $event_id = null, $before = '', $after = '' ) {
    
       $inner                    = '<span class="tribe-event-date-start">';
       $format                   = 'M j, Y';
       $time_format              = get_option( 'time_format' );
       $datetime_separator       = tribe_get_option( 'dateTimeSeparator', ' @ ' );
       $time_range_separator     = tribe_get_option( 'timeRangeSeparator', ' - ' );
    
       $settings = array(
          'show_end_time' => false,
          'time'          => false,
       );
    
       /**
        * @var $show_end_time
        * @var $time
        */
       extract( $settings );
    
    
       if ( tribe_event_is_multiday( $event_id ) ) { // multi-date event
    
          $format2ndday = apply_filters( 'tribe_format_second_date_in_range', $format, $event_id );
    
          if ( tribe_event_is_all_day( $event_id ) ) {
             $inner .= tribe_get_start_date( $event_id, true, 'M j' );
             $inner .= '</span>' . $time_range_separator;
             $inner .= '<span class="tribe-event-date-end">';
    
             $end_date_full = tribe_get_end_date( $event_id, true, Tribe__Date_Utils::DBDATETIMEFORMAT );
             $end_date_full_timestamp = strtotime( $end_date_full );
    
             // if the end date is <= the beginning of the day, consider it the previous day
             if ( $end_date_full_timestamp <= strtotime( tribe_beginning_of_day( $end_date_full ) ) ) {
                $end_date = tribe_format_date( $end_date_full_timestamp - DAY_IN_SECONDS, false, $format2ndday );
             } else {
                $end_date = tribe_get_end_date( $event_id, false, $format2ndday );
             }
    
             $inner .= $end_date;
          } else {
             $inner .= tribe_get_start_date( $event_id, false, 'M j' ) . ( $time ? $datetime_separator . tribe_get_start_date( $event_id, false, $time_format ) : '' );
             $inner .= '</span>' . $time_range_separator;
             $inner .= '<span class="tribe-event-date-end">';
             $inner .= tribe_get_end_date( $event_id, false, $format2ndday ) . ( $time ? $datetime_separator . tribe_get_end_date( $event_id, false, $time_format ) : '' );
          }
       } elseif ( tribe_event_is_all_day( $event_id ) ) { // all day event
          $inner .= tribe_get_start_date( $event_id, true, $format );
       } else { // single day event
          if ( tribe_get_start_date( $event_id, false, 'g:i A' ) === tribe_get_end_date( $event_id, false, 'g:i A' ) ) { // Same start/end time
             $inner .= tribe_get_start_date( $event_id, false, $format ) . ( $time ? $datetime_separator . tribe_get_start_date( $event_id, false, $time_format ) : '' );
          } else { // defined start/end time
             $inner .= tribe_get_start_date( $event_id, false, $format ) . ( $time ? $datetime_separator . tribe_get_start_date( $event_id, false, $time_format ) : '' );
             $inner .= '</span>' . ( $show_end_time ? $time_range_separator : '' );
             $inner .= '<span class="tribe-event-time">';
             $inner .= ( $show_end_time ? tribe_get_end_date( $event_id, false, $time_format ) : '' );
          }
       }
    
       $inner .= '</span>';
    
       /**
        * Provides an opportunity to modify the *inner* schedule details HTML (ie before it is
        * wrapped).
        *
        * @param string $inner_html  the output HTML
        * @param int    $event_id    post ID of the event we are interested in
        */
       $inner = apply_filters( 'tribe_events_event_schedule_details_inner', $inner, $event_id->ID );
    
       // Wrap the schedule text
       $schedule = $before . $inner . $after;
    
       return $schedule;
    
    
    }
    add_filter( 'tribe_events_event_schedule_details', 'tribe_events_event_schedule_details_custom', 10, 4 );

    You could replace the first snippet Nico shared with this, as this also removes the time.

    Did that do what you need?

    Cheers!

    – Brook

Viewing 15 posts - 826 through 840 (of 4,796 total)