Events List Widget: Long Events

Home Forums Calendar Products Events Calendar PRO Events List Widget: Long Events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16239
    Lachlan
    Member

    Hey Tribesman,
    First of all, excellent work with this plugin. There aren’t many plugins with this calibre of support and polished looks. Well done.

    So far I’ve been able to work out everything I needed to change to fit my site by trawling through all the information you guys have up here (again, well done). The only thing I wanted to know is to do with the Upcoming Events List Widget:

    When I make an event that is longer than a few days, only the first date displays on the list. For example, if I created an event that went from the 1st till the 15th and today’s date was the 10th, the upcoming list widget shows the start date only (the 1st) and I’ve had feedback that this makes the list look out of date. Is there any way to modify the widget so that it displays Today’s date, rather than the event start date? I am happy to make the changes but I’m not confident enough in php to be able to modify template overrides myself.

    Cheers,
    Lachie

    #16255
    Rob
    Member

    Hey Lachlan! Thanks for the words; I certainly appreciate it and I know the dev team working behind the scenes does too. We appreciate your support.

    I can definitely get a dev to take a look and try to point you in the right direction here – but first, have you checked whether Jonah’s walkthrough on how to fully customize widgets (https://theeventscalendar.com/how-to-completely-customize-widgets/) gets you what you need? Let me know either way.

    #16265
    Lachlan
    Member

    I have, yes.
    I know it has something to do with the following chunk of code (from events-calendar-pro/views/events-advanced-list-load-widget-display.php) but my PHP skills aren’t up to scratch to write it myself.
    [code]

    ID, $start );

    if($event->AllDay && $start) {
    echo ‘ (‘.__(‘All Day’,’tribe-events-calendar-pro’).’)’;
    } else {
    if ( $end && $event->EndDate != ”) {
    echo ” . __(‘Ends’, ‘tribe-events-calendar-pro’) . ‘ ‘;
    echo tribe_get_end_date($post->ID);
    }
    }
    ?>

    [/code]

    I would say that it would need another if statement to say
    if startdate < currentdate {
    echo currentdate }
    else {
    echo startdate }

    #16266
    Lachlan
    Member

    Oops. I’d change those tags, but I can’t edit that post… You get the drift.

    #16292
    Rob
    Member

    Alright, thanks for confirming. Let me get Jonah to take a look when he hits the forums today to see if he can point you in the right direction here. Stay tuned.

    #16322
    Lachlan
    Member

    You know what? This doesn’t really matter. I’m going to convince the client to use the ‘recurring events’ feature. It’ll probably work better using this method anyway.

    Appreciate the support though. Cheers Rob! 🙂

    #16331
    Jonah
    Participant

    Let us know if you need any other help with this Lachlan 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Events List Widget: Long Events’ is closed to new replies.