Home › Forums › Calendar Products › Events Calendar PRO › Events List Widget: Long Events
- This topic has 6 replies, 3 voices, and was last updated 14 years, 1 month ago by
Jonah.
-
AuthorPosts
-
March 5, 2012 at 3:46 pm #16239
Lachlan
MemberHey 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,
LachieMarch 5, 2012 at 7:26 pm #16255Rob
MemberHey 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.
March 5, 2012 at 10:05 pm #16265Lachlan
MemberI 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 }March 5, 2012 at 10:08 pm #16266Lachlan
MemberOops. I’d change those tags, but I can’t edit that post… You get the drift.
March 6, 2012 at 9:04 am #16292Rob
MemberAlright, 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.
March 6, 2012 at 4:09 pm #16322Lachlan
MemberYou 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! 🙂
March 6, 2012 at 8:42 pm #16331Jonah
ParticipantLet us know if you need any other help with this Lachlan 🙂
-
AuthorPosts
- The topic ‘Events List Widget: Long Events’ is closed to new replies.
