WordPress.org

Ready to get started?Download WordPress

Forums

Events Calendar
Event Times will not stay blank (8 posts)

  1. martinahawkins
    Member
    Posted 2 years ago #

    Times default to 12:00am

  2. snumb130
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. Claymenia
    Member
    Posted 2 years ago #

    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

  4. snumb130
    Member
    Plugin Author

    Posted 2 years ago #

    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')) {
  5. Claymenia
    Member
    Posted 2 years ago #

    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

  6. snumb130
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. pjries16
    Member
    Posted 2 years ago #

    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!

  8. ss707
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic