Times default to 12:00am
Times default to 12:00am
That was part of the design of the original. I didn't really like the way I implemented that, so I will have it different in the next release.
Hi,
I looking for modify script for hide default time (0:00:00) for widget and big calendar, i've version 6.7.13, can u help me ?
I think implant an if for gmmktime but where ? that is the question... or if u're an another idear ?
Thank by advance
File: ec_js.class.php
Line: 172
Change:
sadf
if (!is_null($startTime) && ($startTime != '')) {
To:
if (!is_null($startTime) && ($startTime != '') && !($startTime == '00:00:00' && $endTime == '00:00:00')) {Hi,
thx for this but i've Parse Error : syntax error, unexpected T_BOOLEAN_AND in /www/wp-content/plugins/events-calendar/ec_js.class.php on line 172...
thx by advance for help
I am not getting this. If possible can you copy and paste the code from the entire file in the contact form on my site.
For others having problems with the 12:00 am time showing when listing events in the widget, I have expanded on your code above, snumb130, to hide those.
File: ec_js.class.php
Line: 546
Change:
if(!is_null($e->eventStartTime) && !empty($e->eventStartTime)) {
To:
if(!is_null($e->eventStartTime) && !empty($e->eventStartTime) && !($e->eventStartTime == '00:00:00')) {
And
Line: 556
Change:
if($e->eventEndTime != null && !empty($e->eventEndTime)) {
To:
if($e->eventEndTime != null && !empty($e->eventEndTime)&& !($e->eventEndTime == '00:00:00')) {
Works really well - thanks for providing the fix. It was easy to adapt it to the event list. Looking forward to your updated version!
Thanks, pjries16.
That got rid of the default 12:00am times in the widget area.
Now, does anyone know how to get rid of the default times in the main/large calendar view? If I choose not to put in a start or end time, I want them to stay hidden and not appear when the user hovers over an event with their mouse on the large calendar.
What snumb130 posted above does not work for me.
This topic has been closed to new replies.