Home › Forums › Calendar Products › Events Calendar PRO › Latest Update and Advanced Widget Formatting
- This topic has 14 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
September 12, 2012 at 8:05 pm #24973
Andrea
ParticipantHello,
I just updated my plugins and the pro plugin had to be reactivated. Now the pro widget is showing some problems.
It should only show title and start date and time. But if you visit the website, you can see that is not the case: http://306phoenixhouse.com
Also, there are huge spaces and I don’t know how to get rid of them. Can you help please?
Thank you,
AndreaSeptember 13, 2012 at 10:06 am #25000Jonah
ParticipantHi Andrea,
Did you make customizations to the widget (events-advanced-list-load-widget-display.php) and did you make them by doing template overrides (making copies of templates in an ‘events’ folder in your theme) or did you make the changes in the core files?
Can you post the contents of your events-advanced-list-load-widget-display.php to http://snippi.com/? That is, if you have an override version of the file in place in the ‘events’ folder in your theme.
Thanks,
JonahSeptember 13, 2012 at 7:28 pm #25059Andrea
ParticipantHi Jonah,
I haven’t made any customizations to the widget at all… Do you still want me to post the contents of the file?
Thanks so much!!
AndreaSeptember 14, 2012 at 7:31 am #25089Jonah
ParticipantHi Andrea,
Well if you didn’t make any customizations to the widget I wonder what changed. I don’t think we made any changes to the widget itself. Did the settings change for the widget once the plugin had been deactivated? Do you just need to change the settings in the widget? Have you unchecked the End Date option in the settings for that widget instance?
– Jonah
September 14, 2012 at 8:36 am #25096grpublib
ParticipantI had a similar issue. After updating, the end date now shows on my widget. I have not customized it. The end date box is not checked in the widget. I tried to check it, save it, and uncheck/save again. Still the same. You can see the widget here: http://www.grpl.org
Mine doesn’t have any other messed up formatting or spacing like Andrea is having, but it clutters up the list to have the end date showing.
-Melissa
September 14, 2012 at 8:41 am #25098Jonah
ParticipantHi Melissa,
Thanks for the report. Ok, can I have you both try removing the widget and re-adding a fresh one and reconfiguring it to see if that helps?
Thanks,
JonahSeptember 14, 2012 at 8:46 am #25099grpublib
ParticipantI just tried it, and the end date is still showing.
-Melissa
September 14, 2012 at 8:50 am #25101Jonah
ParticipantOk thanks Melissa. Can you try deactivating all other plugins and/or reverting to the Twenty Eleven theme to see if that changes anything? I’m unable to reproduce this locally so I’m trying to figure out what the issue can be.
Thanks,
JonahSeptember 14, 2012 at 11:27 am #25126Andrea
ParticipantHi Jonah,
I deactivated all plugins, changed the active theme to twentyeleven, then reactivated just the Events Calendar and Pro plugins. I added the Pro Widget and only checked the start time. It still shows the end date. I have a screenshot if you like.
Thanks!
AndreaSeptember 14, 2012 at 2:50 pm #25137Jonah
ParticipantHi everybody, ok I discovered that some change we made to the core view for the widget reintroduced some code that doesn’t respond to the checkbox setting to not show the end date. I’m going to create a ticket to get this fixed ASAP but for now here’s what you can do:
Make a copy of /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php and place in an ‘events’ folder in your theme. Then find lines 46-54 that look like this:
echo tribe_get_start_date( $post->ID );if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
echo ' –
'. tribe_get_end_date($post->ID);
}if( $event->AllDay ) {
echo ' ('.__('All Day','tribe-events-calendar').')';
}
…and replace with this:
echo __('Starts', 'tribe-events-calendar-pro') . ': ';
echo tribe_get_start_date( $post->ID, $start );if($event->AllDay && $start) {
echo ' ('.__('All Day','tribe-events-calendar-pro').')';
echo tribe_get_end_date($post->ID);
} else {
if ( $end && $event->EndDate != '') {
echo '
' . __('Ends', 'tribe-events-calendar-pro') . ': ';
echo tribe_get_end_date($post->ID);
}
}
That should enable the setting in the widget to take effect again but if you’re still having issues, let me know.Regards,
JonahSeptember 18, 2012 at 11:46 am #25334Thomas
MemberJonah’s “fix” totally does the job. Looking forward to the stable update. Thanks for the good work.
September 18, 2012 at 11:53 am #25335Jonah
ParticipantGlad that worked Thomas, I’ve also got a patched copy of the widget file here: http://cl.ly/code/2g3x3R0c0z1s
Just replace the code in the file or the file itself in /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php
– Jonah
September 20, 2012 at 8:31 pm #25502Andrea
ParticipantWorks great! Thanks so much for all the hard work!
September 21, 2012 at 7:31 am #25515Jonah
ParticipantYou’re welcome Andrea, let us know if there’s anything else you need help with!
Regards,
JonahJuly 7, 2015 at 6:26 am #977812Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Latest Update and Advanced Widget Formatting’ is closed to new replies.
