Home › Forums › Calendar Products › Events Calendar PRO › Month View Order and Times
- This topic has 22 replies, 2 voices, and was last updated 10 years, 6 months ago by
Brian.
-
AuthorPosts
-
September 18, 2015 at 9:55 am #1006499
Emily Nein
ParticipantHi! 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 popupThanks in advance for your assistance!
September 21, 2015 at 7:57 am #1007031Brian
MemberHi,
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
September 21, 2015 at 10:34 am #1007146Emily Nein
ParticipantHi 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;
}September 21, 2015 at 3:13 pm #1007266Brian
MemberHi,
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:
And see if that can narrow down the cause of this.
Let me know what you find out.
Thanks
September 22, 2015 at 8:27 pm #1007702Emily Nein
ParticipantThis reply is private.
-
This reply was modified 10 years, 6 months ago by
Emily Nein.
September 23, 2015 at 8:21 am #1007881Brian
MemberHow 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 2393It 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( /\<\;br\>\;/, '<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.
September 24, 2015 at 12:11 pm #1008464Emily Nein
ParticipantThis reply is private.
September 24, 2015 at 3:42 pm #1008551Brian
MemberHi,
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.
September 25, 2015 at 7:41 am #1008701Emily Nein
ParticipantThis reply is private.
September 25, 2015 at 9:56 am #1008745Brian
MemberOk 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.
September 28, 2015 at 5:30 am #1009128Emily Nein
ParticipantThis reply is private.
September 28, 2015 at 6:01 am #1009133Brian
MemberOh 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.
September 28, 2015 at 6:02 am #1009134Brian
MemberThis reply is private.
September 28, 2015 at 6:09 am #1009139Emily Nein
ParticipantThis reply is private.
September 28, 2015 at 6:14 am #1009140Brian
MemberHi,
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.
-
This reply was modified 10 years, 6 months ago by
-
AuthorPosts
- The topic ‘Month View Order and Times’ is closed to new replies.
