Forums

Events Calendar
Don't show end time in widget and translation of bold text (3 posts)

  1. WebmasterPRBE
    Member
    Posted 5 months ago #

    Is there a way that it doesn't show the end time at mouse-over in the widget.
    The website will be used for a singer and his upcoming events are shown in the widget, I leave "end time" blank everytime, but on mouseover it shows midnight as end time.
    This might give the impression his act will last to midnight, which is not the case.
    It is not possible to estimate an end time, so I rather don't see it in the mouseover popup. Any way where I can make end time doesn't show up when doing mouseover (ir is not shown in the blog posts when left blank).
    I would also like to know where I can edit the bald texts into Dutch.

    I mean these words:

    Title should be replaced by evenement
    Location should be replaced by locatie
    Start Time shoul be replaced by aanvang
    End time should not be replaced but not be shown

    http://wordpress.org/extend/plugins/events-calendar/

  2. BethAC1
    Member
    Posted 5 months ago #

    I have also noticed that since upgrading to WP 3.2.1 from 2.7 that the end time cannot be left blank otherwise it defaults to midnight which does not work for our site either. This happens on all new events and if you update an event that had been created in a previous version.

    I just update data on the site I work with and someone else actually handles updating the versions of software and hosting the site so I am not very WP savvy. I looked at the information for WP 3.3 but didn't see any mention of the Events Calendar so I couldn't tell if this might be fixed if we were to upgrade again.

  3. WebmasterPRBE
    Member
    Posted 5 months ago #

    I found a way that the calendar does not show the end time onmouseover.
    It will still show in a post if you use the feature to create post for an event.

    BethAc1 I would also recommend you to update to the latest version of WordPress. If you or your webmaster use the automatic update function of WordPress, nothing disastrous will happen ;).

    Now how to avoid showing end time 00:00:00

    Go to the file ec_js.class.php in folder /wp-content/plugins/events-calendar

    Now look for the following code on line 399 and line 400

    if (!empty($endTime) && !empty($startTime) || !is_null($endTime) && !is_null($startTime))
    $output .= '<div class="EC-tt-endtime"><span class="EC-tt-label EC-tt-endtime-label">'._c('End Time','events-calendar').': </span><span class="EC-tt-data EC-tt-endtime-data">'.$endTime.'</span></div>';

    simply put // before line 399 and line 400 so that it will look something like this

    //	 if (!empty($endTime) && !empty($startTime) || !is_null($endTime) && !is_null($startTime))
    //		$output .= '<div class="EC-tt-endtime"><span class="EC-tt-label EC-tt-endtime-label">'._c('End Time','events-calendar').': </span><span class="EC-tt-data EC-tt-endtime-data">'.$endTime.'</span></div>';

    this will avoid the script to show the end time onmouseover in the sidebar widget or the large calendar. I am not sure about that. Hopefully in both.
    If it only works in one of them, it's quite well possible I edited another file, too. I just don't remember which one

    I thought there were four lines to comment out, but I see I only did two lol

    The end time field in your backend does NOT require a numeric value, so I usually put a hyphen there, in "publish-event-as-post" it will show like this then:

    End time:-

Reply

You must log in to post.

About this Plugin

About this Topic