• Resolved wpdezinr01

    (@wpdezinr01)


    Wow, this plugin got really complicated! The widget was much easier. In any case, I have this in my text widget:

    [tminus t=”2020-08-23 15-00-00″ style=”darth”/]

    I’m getting this showing up on the front end:

    DateTime::__construct(): Failed to parse time string (2020-08-23 15-00-00) at position 11 (1): Double date specification

    I also used the plugin Settings to hide years, months and weeks, but they’re showing up anyway.

    Loved the old version, really user-friendly. This is a challenge!!

    Thanks for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author twinpictures

    (@twinpictures)

    the error is being explained:

    Double date specification

    because time uses a colon, not a dash: 12:00:00, for example.

    [tminus t="2020-08-23 15:00:00" style="darth"/]
    

    Once that is corrected, the omit years should work.

    Thread Starter wpdezinr01

    (@wpdezinr01)

    Thanks! But years, months, and weeks are still showing, even though I have checked the boxes in the Settings to omit them.

    Plugin Author twinpictures

    (@twinpictures)

    Verify that ommit years, months and weeks are checked in the settings and then re-save the settings page. You will want to clear the cache if using a caching plugin. If that STILL does not work, then try adding the following to the shortcode:

    omityears="true" omitmonths="true" omitweeks="true"

    Thread Starter wpdezinr01

    (@wpdezinr01)

    Hi there, yes I had unchecked and re-checked the Settings boxes and saved a couple of times.

    The shortcode with “omit” that you suggested worked to remove the years, months and weeks. Thanks.

    BUT, the minutes and seconds disappeared!

    So I tried adding:

    [tminus t=”2020-08-23 15:00:00″ omityears=”true”  omitweeks=”true” showminutes=”true” style=”darth”/]

    Didn’t work.

    I also tried includeminutes, displayminutes, addminutes, etc.

    No luck.

    Dang, the widget was so much easier. Or having more Settings options would be more user-friendly.

    In any case, is there a solution for this?

    Thank you

    Plugin Author twinpictures

    (@twinpictures)

    Ok there is clearly something strange going on the site. maybe a plugin or theme conflict. Regardless, since no link was shared, you might want to revert back to the T(-) Countdown Widget and stick to it’s included sidebar widget for now.

    Thread Starter wpdezinr01

    (@wpdezinr01)

    Hi there – went back to the old plugin which used to show days, hours and minutes and the minutes are not showing up.

    This was what was there:

    [tminus t=”2020-08-23 15:00:00″ omityears=”true”  omitweeks=”true” addminutes=”true” style=”darth”/]

    I also tried this:

    [tminus t=”2020-08-23 15:00:00″ style=”darth”/]

    And only the weeks, days and hours display.

    I used Firebug to expand the div it was in in case there wasn’t room for it to display, but still not showing minutes.

    I can send you the link to the website, but I wasn’t sure if this was public or private.

    Thanks

    Plugin Author twinpictures

    (@twinpictures)

    contact us at info [at] twinpictures [dot] de and be sure to include a link to this thread.

    Plugin Author twinpictures

    (@twinpictures)

    The CSS on your page:

    .darth-minutes_dash, .darth-seconds_dash {
        display: none;
    }

    would do it. The css file of the plugin has been modified, so you will either need to remove this in the plugin’s css file (at: …/jquery-t-countdown-widget/css/darth/style.css), or completely deactivate and delete the plugin and then reinstall it fresh from the WordPress Repository.

    That this file was modified, means maybe other things have been changes as well… so best start with a fresh version. Issue marked as resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not working’ is closed to new replies.