Latest Update and Advanced Widget Formatting

Home Forums Calendar Products Events Calendar PRO Latest Update and Advanced Widget Formatting

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #24973
    Andrea
    Participant

    Hello,
    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,
    Andrea

    #25000
    Jonah
    Participant

    Hi 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,
    Jonah

    #25059
    Andrea
    Participant

    Hi 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!!
    Andrea

    #25089
    Jonah
    Participant

    Hi 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

    #25096
    grpublib
    Participant

    I 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

    #25098
    Jonah
    Participant

    Hi 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,
    Jonah

    #25099
    grpublib
    Participant

    I just tried it, and the end date is still showing.

    -Melissa

    #25101
    Jonah
    Participant

    Ok 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,
    Jonah

    #25126
    Andrea
    Participant

    Hi 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!
    Andrea

    #25137
    Jonah
    Participant

    Hi 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,
    Jonah

    #25334
    Thomas
    Member

    Jonah’s “fix” totally does the job. Looking forward to the stable update. Thanks for the good work.

    #25335
    Jonah
    Participant

    Glad 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

    #25502
    Andrea
    Participant

    Works great! Thanks so much for all the hard work!

    #25515
    Jonah
    Participant

    You’re welcome Andrea, let us know if there’s anything else you need help with!

    Regards,
    Jonah

    #977812
    Support Droid
    Keymaster

    This 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.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Latest Update and Advanced Widget Formatting’ is closed to new replies.