Month View Order and Times

Home Forums Calendar Products Events Calendar PRO Month View Order and Times

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1006499
    Emily Nein
    Participant

    Hi! I’ve had this problem in the past and took the same steps to correct, but it’s not working this time.

    Two Problems:
    1) The order of events in the month view is out of order
    2) When you mouse over the events, each event in the day is showing up as the same time in the popup

    Thanks in advance for your assistance!

    #1007031
    Brian
    Member

    Hi,

    Sorry for the issues you are having. I can help troubleshoot them with you.

    I visited your site and see what you mean.

    Do you have any custom templates in your theme in this directory:

    /tribe-events/?

    Also, what is your setting here:

    Events > Settings > Display Tab > “Date time separator”

    Events > Settings > Display Tab > “Time range separator”

    Let me know and we can go from here.

    Thanks

    #1007146
    Emily Nein
    Participant

    Hi Brian,

    thanks for getting back to me.

    Events > Settings > Display Tab > “Date time separator” — SET TO <br>

    Events > Settings > Display Tab > “Time range separator” — SET TO –

    I do have some custom css set, but it’s only for padding/spacing issues (I think!) I’m pasting below and maybe you can advise me if something here might be causing the issue:

    .tribe-events-month-event-title {
    color: #666;
    font-size: 11px;
    font-weight: bold;
    }
    #tribe-events-content .tribe-events-calendar div[id*=tribe-events-event-] h3.tribe-events-month-event-title {
    font-weight: normal;
    }
    .tribe-events-list-separator-month {
    padding: 6px 20px;
    }
    .tribe-events-list-separator-month+.vevent.hentry.tribe-events-first {
    padding-top: 1em;
    }

    #1007266
    Brian
    Member

    Hi,

    Thanks for the information, but css would not cause this issue and the separators would not either, but I wanted to verify first.

    Can you please follow our testing for conflicts guide:

    Testing Conflicts With Themes and Other Plugins

    And see if that can narrow down the cause of this.

    Let me know what you find out.

    Thanks

    #1007702
    Emily Nein
    Participant

    This reply is private.

    • This reply was modified 10 years, 6 months ago by Emily Nein.
    #1007881
    Brian
    Member

    How Strange.

    I am not seeing any other reports of this so there is still something unique about your site and setup causing the issue.

    I was also not able to reproduce on my test site.

    I did see if I go to the next month all the times are correct in the tooltip. When I go back to September they are correct there as well.

    In the coding too the correct time is there, but the script is not picking it up for the tooltips.

    So I took another look and seeing this error in the console:

    TypeError: $abbr.html(...) is undefined
    http://www.standrews.net/calendar/2015-09/
    Line 2393

    It is coming from this script:

    <script>
    jQuery( function( $ ) {
    // find elements with tribejson (that haven't had their duration fiddled with) and make sure <br> tags are rendered as <br> tags.
    $( '[data-tribejson]:not(.twiddled-date)' ).on( 'mouseover', function() {
    var $el = $( this );

    // give the tooltips time to render and then twiddle the date to replace <br> with <br>
    setTimeout( function() {
    var $abbr = $el.find( '.duration .tribe-events-abbr' );
    $abbr.html( $abbr.html().replace( /\&lt\;br\&gt\;/, '<br>' ) );
    $el.addClass( 'twiddled-date' );
    }, 1 );
    });
    });
    </script>

    Although that script is there for the Events Calendar it is a custom script and causing the issue as it is not working correctly.

    So it needs to either be delayed more by increasing the 1 or modified to only work once the entire page has loaded and there is content to find.

    #1008464
    Emily Nein
    Participant

    This reply is private.

    #1008551
    Brian
    Member

    Hi,

    The month view also has a sticky option so if checked those events appear first. Also, I believe that All Day Events need to be accounted for as well so we query by eventstartdate we then have to make modifications accordingly to reorder.

    #1008701
    Emily Nein
    Participant

    This reply is private.

    #1008745
    Brian
    Member

    Ok well. I am limited on doing more then supporting the existing features of the plugin.

    So this is the main query:

    the-events-calendar/src/Tribe/Query.php

    Looks like we orderby this on line 807:

    ORDER BY menu_order ASC, DATE(tribe_event_start.meta_value) ASC, TIME(tribe_event_start.meta_value) ASC;",

    Beyond that I do not have any more information to provide on this.

    #1009128
    Emily Nein
    Participant

    This reply is private.

    #1009133
    Brian
    Member

    Oh my bad. I thought the issue was just the times not showing correctly in the tooltips, but there was a 2nd issue.

    I tested on my site and was not able to reproduce the error.

    Can you please confirm that these two events in the private reply do not have Sticky in Month View checked in the event editor.

    Let me know and we can go from there.

    #1009134
    Brian
    Member

    This reply is private.

    #1009139
    Emily Nein
    Participant

    This reply is private.

    #1009140
    Brian
    Member

    Hi,

    It does appear to be specific events showing out of order as most are correct so I am not seeing a pattern.

    See if recreating the Sunday School Series puts it in the correct order.

Viewing 15 posts - 1 through 15 (of 23 total)
  • The topic ‘Month View Order and Times’ is closed to new replies.