Welcome, visitor! Log in
 

KB Plugins blog

The best Wordpress plugins are free

KB Countdown Widget v3.1

A major change: You can now use iCal data (think Google Calendar) with the widget. When a date has passed, it disappears from the widget and gets replaced by the next one in line. How cool is that?

Download it here .

You can post support questions if you want. iCal parsing is done by the iCal Events plugin , so if you’re having trouble getting your calendar data to parse correctly, you might need to contact those folks instead.

Be aware that this new iCal feature is very new. Consider that aspect of the plugin beta. Please inform of me of any bugs.

Dazzled? Confused? Disagree? Write a comment »
There have been 70 comments so far.

70 Comments

  1. Posted August 3, 2007 at 5:56 pm | Permalink

    I am running 2.34 on WP 204 running 3K2

    I installed plugin and setup in widget control of K2 but get warning

    Warning: Missing argument 1 for widget_kbcountdown_control() in /home/bonnie/public_html/wp-content/plugins/kb-countdown-widget/kb_countdown.php on line 140

    I tried 3.1 but got same warning but it mention line 688. So I figured it was becasue of rev of PHP and backed down to 234 but same result different code line. Please advise. Tanks… lots of Tanks

  2. Posted August 3, 2007 at 6:00 pm | Permalink

    The problem is K2. The K2 folks claim that any widget can work in their module system, but they are wrong. Widgets that allow multiple instances (like this one does) often fail on K2. Sorry.

  3. Posted August 11, 2007 at 8:03 pm | Permalink

    Hi, love the widget, but I’m having a strange problem. For some reason, the countdown is shown both in my sidebar AND at the top of each page (view the problem at [link]. Can you suggest where I may have a mistake?

    Thanks,

    Ryan

  4. Posted August 11, 2007 at 8:19 pm | Permalink

    Never mind, I figured it out. Thanks!

  5. Ziyun (Unregistered)
    Posted August 28, 2007 at 7:14 pm | Permalink

    Can the KB countdown widget track weeks? If so, how? This is most useful for pregnancy and baby’s age.

  6. Posted September 3, 2007 at 10:07 am | Permalink

    Ziyun, all the available tags are listed in the FAQ. Total weeks is not one of them, although you could add this with a little tweaking on your own.

    I try to limit the number of tags available to avoid straining people’s servers. Obviously, adding one additional tag wouldn’t be a major problem, but adding a whole bunch of them could be.

  7. Silke (Unregistered)
    Posted September 21, 2007 at 10:25 am | Permalink

    Something I would dearly love to see is a Progress Meter that works like your Countdown demo.
    Numbers instead of dates. :)
    It would be a perfect Writer’s WIP tool and if you could modify it to work like that… that would just rock.

    i.e. Title, Date started, Words written / Words total. With various bars like the countdown ones… man… I’d love it. :)

  8. Posted September 22, 2007 at 9:52 am | Permalink

    Not quite sure I follow, Silke…

  9. webdzinez (Unregistered)
    Posted November 5, 2007 at 8:09 pm | Permalink

    This is one of the best plugins I have come accross!

    Is it compatible with WP 2.2.3? The download page on WP says its compatible with w2.2.1, just wanted to confirm!

  10. Posted November 5, 2007 at 8:20 pm | Permalink

    I don’t know, since I use WPMU. Give it a whirl and let me know, and I’ll upload the WP.org info if it works.

  11. Posted November 12, 2007 at 11:35 pm | Permalink

    Seems there is some problem using this plugin with WP2.3.1 :(
    When I changed the End Date(only), saving changes, then checking whether the widget had changed or not, it didn’t. The End Date remains 1-1…
    Could you help me figure out what was wrong? Thanks.

  12. Posted November 12, 2007 at 11:50 pm | Permalink

    Oops, got the answer..
    The PHP version of the server is 4.4.6..

  13. Posted November 12, 2007 at 11:56 pm | Permalink

    Sorry for bothering again & again..
    KB Countdown Widget 2.3.4 is still not working with WP 2.3.1…
    The configuration cannot be changed..

  14. Posted November 13, 2007 at 9:15 am | Permalink

    Are you sure it’s this widget, or is it all your widgets? I’ve seen several people over in the wp.org forums complaining that they can’t update any of their widgets after the upgrade.

  15. Posted November 14, 2007 at 2:46 am | Permalink

    Some of them can, but some of them cannot..
    The plugin “StatPress”, and the original widgets of Archives, recent comments, recent posts, can be changed, while categories widget and this plugin cannot…

  16. Posted November 15, 2007 at 10:54 am | Permalink

    Regarding your switch down to 2.3.4 of the widget–I should update the documentation. That’s no longer necessary–I modified the most recent version of the widget so it ought to work on PHP 4. (You would have seen a “fatal error” otherwise when you were using the latest version.)

    As for the problem at hand…

    Hmm. I’m hoping they didn’t screw around with the widgets API (again) in the new version of WP. They’ve done that on almost every one of the recent upgrades to WP, forcing me to rewrite part of the code each time.

    Could you do me a quick favor? Try to change the widget. After hitting “save” on your widget’s admin, take a look at the HTML source. (In IE, I think you look at the “View” menu, then “Source.” In Firefox, it’s “View” then “Page Source.”) Look at the very end of the source. If the last few lines contain something that looks like an error message, then let me know.

    That’s what happened last time they changed the widgets API with a WP upgrade–there was a PHP error that showed up in the source but wasn’t visible in the browser.

  17. Posted December 4, 2007 at 3:55 am | Permalink

    Hi Adam,
    Great work!
    I have a little problem with multi date.
    I would like to get two differnt events display with different dates
    for example queen at 16 december 2007 an rolling stones on 17 december 2007
    how can i do that.
    Maybe stupid question didnt found the answer in google
    Thx
    Mike

  18. Posted December 4, 2007 at 9:16 am | Permalink

    Mike,

    The easy way is to use two separate countdown widgets, one for each event. Scroll down to the bottom of your widgets administration and you’ll see an option to increase the number of countdown widgets available.

    The slightly more difficult way is to use an ical feed. That’s what the “multi-date” mode refers to in the widget. But for what you’re trying to do, it sounds like it would be easier to just use two widgets, both in single-date mode.

  19. Posted December 5, 2007 at 3:39 am | Permalink

    Thank you for the quick answer Adam for the information.
    I used the separate countdown widgets like you said.
    Is it possible to link countdown with an event callender where you fill in the event and date and it automaticly come in countdown.
    And thx again for the great widget.
    Will make an article about your widget soon.

  20. Posted December 5, 2007 at 8:38 am | Permalink

    Mike: “Is it possible to link countdown with an event callender where you fill in the event and date and it automaticly come in countdown.”

    Yes, you can do that, but only if you have your dates entered into a calendar with an ical feed (think Google Calendar, which is free and easy to use, although there are also non-google options available).

    You can read more in the FAQ under “Can I Enter in Multiple Dates?”

  21. Posted December 13, 2007 at 4:00 am | Permalink

    Hi Adam, me again ;)
    Can i put somewhere htmlcode or php code to the countdown so i can add a link at the bottom of it. For example to sell tickets.
    Here is a link to my site: [link]
    It’s a great widget, code for my blog.
    Love it.
    Mike

  22. Posted December 13, 2007 at 4:19 am | Permalink

    ok Adam i found the problem php didnt work for me, but html with simple the code with declareration of worked fine:
    Keep up the good work

  23. ovidiu (Unregistered)
    Posted December 13, 2007 at 5:29 am | Permalink

    hi there, I am trying to get kb countdown 3.1 working with wp 2.3.1 but not using widgets, instead I use sidebar modules [link]

    and I get the following error:

    Warning: Missing argument 1 for widget_kbcountdown_control() in /var/www/web6/web/wordpress/wp-content/plugins/kb-countdown-widget/kb_countdown.php on line 688

    can you maybe help me out with this? sidebar modules is a lot better and more flexiblen than the usual widgets…

  24. Posted December 13, 2007 at 9:42 am | Permalink

    @Mike: Glad you got it.

    @ovidiu: I only support the widget with the standard interface, but here’s a suggestion that will probably get it working for you pretty quickly with something sidebar modules:

    Near the end of the code, you’ll find a bunch of calls to register_sidebar_widget() and similarly-named functions. You’ll also notice that I do a bunch of version checks in that part of the code to figure out which version of WP you’re on. The WP/Automattic folks kept changing the widgets API for awhile, so I kept needing to change how widgets are registered for each version of WP.

    I suspect you can fix the problem by fiddling with which version of the registration functions get used. I’m not sure how good you are with PHP, but all you need to do is comment out one block of registration functions, then try the next block, and so on, until you find one that works.

  25. ovidiu (Unregistered)
    Posted December 13, 2007 at 11:55 pm | Permalink

    @adam
    thx. I cannot create anything with PHP, but I am pretty good at altering stuff ;-)
    I’ll have a look later on what I can do…

  26. Posted March 31, 2008 at 1:37 pm | Permalink

    I’ve found an error in your total days since/until calculation: 84600 should be 86400 on line 290 in the calculate function (where you convert seconds to days).
    60x60x24 = 86400 not 84600

  27. Posted March 31, 2008 at 3:15 pm | Permalink

    Thanks for catching that Tony. That’s only a 30 minute difference, so it shouldn’t be causing major problems. It will be fixed in the next update.

  28. MarkyGee (Unregistered)
    Posted April 7, 2008 at 11:58 pm | Permalink

    Hi – I must admit that I am new to using plugins but was hoping to get the KB Countdown one working. Installed it OK. Activated it OK. In the Design->widgets menu, I added it to Sidebar1 but am unable to enter any details. When I try to edit, the majority of the page is obscured by the list of available widgets. I can see the details of the editable fields by moving the widget around by it’s title bar but can’t enter anything. I am on WordPress 2.5 and PHP 5.2.5.

    Any help appreciated.

    Cheers

    Mark

  29. Posted April 8, 2008 at 11:07 am | Permalink

    MarkyGee,

    When testing in WP 2.5, I noticed that errors similar to what you describe would sometimes arise when I added a new countdown widget to the sidebar. But if I clicked “save changes” (without editing the widget’s options first), then came back to the widgets menu and tried to open the widget’s options, it generally worked at that point.

  30. MarkyGee (Unregistered)
    Posted April 9, 2008 at 6:20 am | Permalink

    Hi Adam, My Home PC seemed to be OK with this. The difference between the Home PC and my work laptop is that the laptop only has IE6 installed and I’m using IE7 at home.
    Having just tried it out with Safari, this seems fine too. it may just be something to do with IE6. Any thoughts?

    Mark

  31. Posted April 20, 2008 at 1:11 am | Permalink

    Hi, thanks for the widget, but is there also an option NOT to use the bargraph? I tried setting all pixelsizes to 0, but the widget restores them automatically to 10,1,1.

  32. Robert (Unregistered)
    Posted May 4, 2008 at 9:51 am | Permalink

    Hello Adam,

    First off; excellent work with this widget! I’ve installed it a couple of minutes ago on my WP 2.5 site and it’s working perfectly.
    I have however one question as asked earlier; is it possible for you to add weeks_since / weeks_until into it?
    Not hindered by my sincere lack of PHP knowledge, I’ve had a play around but can’t seem to get it working (I managed to delay the pregnancy to a due date of 16 years and 7 months … I wish! :P)
    Or any hints/tips would be much appreciated as well

    Robert

  33. Posted May 9, 2008 at 10:16 am | Permalink

    Hi Adam,
    Thanks for this usefull and nice plugin.
    I have a question for you regarding the language in the message.
    I try to change it in the list you give at the begining of the script (# translation from English, if desired) but can’t work.
    Can you explain me if I need to change something else ?

  34. Posted September 6, 2008 at 4:17 am | Permalink

    I use iCal for multiple dates in one widget.
    I have provided a Google .ical URL and read it fine.
    My question is: How often it re-reads the iCal file for changes?
    Thank you for your great plugin!

  35. Peter (Unregistered)
    Posted October 27, 2008 at 10:59 am | Permalink

    When I place the message the countdown timer will only show in the first line of my post. I want de countdown timer in the middle of a line.
    Who can help me ? What an I doing wrong.

    example: …..dus daar moeten we nog ^KBCOUNTDOWN||Diedel$ voor wachten……

    thanks

  36. Posted November 1, 2008 at 2:58 pm | Permalink

    I have a small problem and I’m not sure if it is this widget or iCal Events Plugin. My problem is that if I have multiple events on the same day (google calendar) I only get the first event listed. Any ideas??

  37. Posted November 3, 2008 at 4:53 pm | Permalink

    OK, I now know the problem isn’t with iCal Events Plugin but with this widget. I have no clue where to start though!

  38. rICH (Unregistered)
    Posted December 15, 2008 at 5:10 am | Permalink

    i want to include the countdown timer in the header. what code do I need to put this there?

  39. Posted December 15, 2008 at 9:39 am | Permalink

    Ronald: Read the documentation.

    Steo: Not sure what you mean.

    Saxtus: Once each hour.

    Peter: I don’t have time to try fixing the problem right now, but if you figure it out, let me know and I’ll upload a patch.

    Robert, rICH: These require modifications to the code, and I’m afraid I just don’t have time for that at the moment. Sorry!

  40. Posted January 20, 2009 at 1:26 am | Permalink

    Hi Adam, i put your plugins in my web (www.merdekapentagon.net) but there’s a problem, because i’m in Indonesia can i put change the GMT to +7?? thx!

  41. Posted February 2, 2009 at 5:40 am | Permalink

    Is it possible to get only days as an output? For Example:

    wrong: 3 Month 5 Days
    right: 67 Days

  42. Posted February 2, 2009 at 6:33 am | Permalink

    Ok, found the total_days_until tag. But there goes to more Problems:

    1. Only the Number is shown, no “days” behind it. There is no translation option. Have i overseen something?

    2. It didn’t count correct. With “normal” Options it says 1 Month 5 Days. With total_days_until it says 32 days remaining. Thats incorrect. 28 Days for Februra + 5 Days of March (target date is 03.07.09) makes 33 days, not 32. Do you have an idea where the problem is so that i can fix it by myself?

  43. Posted February 2, 2009 at 9:26 am | Permalink

    LastOne: That tag only produces the number, not the words. Just write the word “days” into the text field. As for the counting, that shouldn’t be a problem–is your time zone set correctly in the WP options? It might be off by half a day, not a full day.

  44. Posted February 2, 2009 at 1:20 pm | Permalink

    Yes, time zone is correct. I will check in 3 hours what the counter shows. Than i can see if its a full or a half day wrong.

    Writing the word “days” is possible and i did that. Only Problem is that than it shows at the end “1 days” … there for in the normal options is an extra field for “day”

  45. Posted February 4, 2009 at 11:45 pm | Permalink

    I think your current plugin thinks there are 29 days this February, when it should be 28. Any chance of a small bugfix? :-)

  46. Posted February 6, 2009 at 1:05 am | Permalink

    No, in the morning it counts correct. I think the problem is that after lunch (12 o’clock) it takes one day away.

  47. MitH (Unregistered)
    Posted July 1, 2009 at 8:17 pm | Permalink

    Hi, great timer
    currently rejigging a site that has the timer that has fully run down to 0 (a late baby)
    since installing the widget the wp install has updated (now 2.8) and the browser i used has become IE8 (yeah i know)
    also i think there might have been a few widget auto updates too

    if i go into the appearance/widget i can see it on the right in an active sidebar
    but if i open it to edit it, it only highlights the first tab (single-date mode), no other tabs work.
    only once have i accidently dragged it from sidebar to the widget pool and then back to sidebar
    the focus then changed to another tab (help)
    luckily i didnt lose the settings…

    i’d like to adjust the timer now and make a new accending timer but something is broke.
    any suggestions?
    a full removal and replacement is the next port of call (perhaps after the birth….if it ever happens.)

    D

  48. Posted July 10, 2009 at 12:59 pm | Permalink

    I’m running WP 2.8 and am not able to get the plugin to give me multiple widgets – despite having asked it for 3 instances of the plugin on the Plugins page. Any advice? :)

  49. Daniel Mousdell (Unregistered)
    Posted July 12, 2009 at 4:15 pm | Permalink

    Hey Adam,

    I am loving your countdown widget, but I was wondering how can I edit the actual code which displays it on my website.

    Because I want to add a “margin-bottom” to the h2 style which is used on the title of the countdown.

    I know you are busy, but I would really appreciate it if you could just tell me where about I can edit the code.

    Thanks, Daniel Mousdell

  50. Posted July 21, 2009 at 6:29 pm | Permalink

    I’m having the same issue as Jill and I’m running WP 2.8.2. When I tell it I want 2 I’m assuming that ‘KB Countdown 2′ will be created to enable me to drag it to the sidebar but it doesn’t.

    Awesome Plugin!

  51. Nadine (Unregistered)
    Posted July 22, 2009 at 11:57 pm | Permalink

    Hi,
    I have got the same problem as Jill and GWhip. I’m using 2.8.2. Would be wonderful to have a solution.
    All the best!

  52. Posted July 29, 2009 at 7:21 am | Permalink

    Same here with 2.8.3. If anyone knows a fix or workaround… ;)

  53. Posted July 29, 2009 at 7:30 am | Permalink

    Found a workaround which worked for me; seemed to be a template Problem.
    Just changed the Theme once, and there are the widgets again.
    If that’s all, this was an easy one ;)

  54. Posted September 29, 2009 at 12:36 am | Permalink

    Hmm…when I select more than one KB countdown widget, I would normally expect additional widgets to be available to drag into the sidebar. I need 2, but only one shows up.

  55. Posted November 2, 2009 at 2:43 pm | Permalink

    Hi adam,

    Since quite some time I’m using your simple but great KB countdown widget. I really love it because it just works with google ICS URLs. Unfortunately, I just wanted to change something on the URL, but I detected that the widget doesn’t work anymore with the current 2.8.x versions of wordpress. As far as I understand, there seems to be a problem with the javascript in the widget, which prevents me to select between the tabs (single-date, multi-date, bargraph, non-english and help), so I cannot switch from single-date back to multi-date to change the settings there.
    I can only guess that it’s because the javascript is no jquery function, which seems to be default with wordpress now.

    Would you like to fix this? It would be great since I tested out about half a dozen other ICS capable plugins but none of them satisfied my (simple) needs.

    Thanks in advance,

    Frank

  56. J Hudson (Unregistered)
    Posted December 5, 2009 at 12:18 pm | Permalink

    Hi adam,
    I too would like to confirm the Javascript error in latest wordpress as noted in comments 47 and 55 above (i.e. can’t change tab in the widgets option page) – and I use firefox!!
    Thanks

  57. Posted January 13, 2010 at 1:01 pm | Permalink

    I’m with J Hudson. This is a great plug-in, but can’t switch menus in the widget options.

  58. Posted January 20, 2010 at 9:16 am | Permalink

    Does anyone have an alternative plugin to import iCal data? This plugin doesn’t work correctly anymore with wordpress and i really like to have an alternative, since this one is not under maintenance anymore.

  59. Posted January 21, 2010 at 11:24 am | Permalink

    I am having the same problem with the widget. When I select to have more than one, there are no more instances of it to drag into the sidebar.

    I also am not able to click on the tabs for multiple date, bar options or help. Perhaps it did not install right?

    Thanks,
    Steve

  60. Ronni (Unregistered)
    Posted February 12, 2010 at 2:37 am | Permalink

    Hi Adam!

    Nice plugin you made.

    Is it possible to change Year, month, day into another language.
    So instead of being in english (1 year, 7 month and 6 days)
    It would be in my language (Danish) (1 år, 7 måneder og 6 dage)

    There is a “Non-English” tab, but as i can read from early posts, you can not click tabs due to a new java something.

    Is it possible to change the language by editing inside your php file?

    Inside your php you have a section:
    # translation from English, if desired
    ‘year’ => ‘year’,
    ‘years’ => ‘years’,
    ‘month’ => ‘month’,
    etc..

    I have changed it to my desired language, so it says:
    ‘year’ => ‘Ã¥r’,
    ‘years’ => ‘Ã¥r’,
    ‘month’ => ‘mÃ¥ned’,

    But that does not seem to do it.
    It is still in English.

    What should i change?
    Hope You can help me here.

    Thanks
    Ronni (Denmark)

  61. Posted February 18, 2010 at 6:05 pm | Permalink

    How do you enable multiple Countdowns to work. I have save 3 on the settings page but I see only one in the widgets page.

  62. Juha (Unregistered)
    Posted March 3, 2010 at 5:39 am | Permalink

    Hello Adam!
    I’m having dificulties adding my sixth countdown… There seems to be no effect when changing the option for how many countdown widgets i want.

    please help
    -juha

  63. Posted March 27, 2010 at 2:54 am | Permalink

    In a demo site I build with WordPress, I try to use the plugin, and I came across the same problem with the non-switching tabs and the change to non-English translation, as mentioned above.
    The following trick works for me but not an option for working blogs (mine is a demo):
    I put the widget in one of my sidebars and I click to non-English tab.
    Then I click to remove the widget and once again I put it back on the sidebar. So, for my surprise, when I open it, the tab was open on the non-English section allowing me to change the terms (dates, months etc.)
    Same again for the Barcode options.
    Not a real solution, but it is ok if you have only one countdown and you don’t mind spend a couple of minutes to set it up.
    I didn’t have time to look at the code but any suggestion from Adam, at where to look will help.

    Thanks!

  64. kevinator (Unregistered)
    Posted April 1, 2010 at 6:35 pm | Permalink

    hello! love the countdown widget. Put one instance on our home page. Worked great…for a while. Now, nothing. Doesn’t even show up. I used firebug to see what was happening, and I get “403 forbidden” as the error reason that my widget can’t get the data from freecountdown.net.

    Help?

  65. Scott (Unregistered)
    Posted April 22, 2010 at 2:53 pm | Permalink

    Can you make a total weeks since addon for the widget to count how old a baby is?

  66. sane (Unregistered)
    Posted May 5, 2010 at 11:18 pm | Permalink

    Is there any solution now because of the non-english-tab?

  67. Posted May 10, 2010 at 9:30 am | Permalink

    Using 2.9.x of WordPress (current). I can’t seem to access the barcode setup sub-menu (Firefox 3.6.x), nor am I seeing more than 1 widget (I’ve specfied 3).

    Any suggestions?

  68. Posted May 22, 2010 at 9:15 am | Permalink

    Hi Adam: this widget looked great when I installed it. However, I tried clicking on all the tabs except “Single-date mode” and nothing happened, it was stuck in Single Date Mode. Now, when it opens up, it is in Multi-Date mode and asking me to install the iCal plugin, and I cannot change it back to Single Date Mode, nothing happens when I click! Help!!

  69. Frank (Unregistered)
    Posted August 3, 2010 at 3:01 am | Permalink

    Hi
    Is it possible to change the Font /Size / Colour in the Message Area to match the Title.

    I presently have “TIME_UNTIL to go” in the Title which displays….
    “1 year and 10 days to go” in Times New Roman/18pt/blue.

    and…

    “BARGRAPH to our Wedding” in the Message area which displays…
    “[THEBARGRAPH] to our Wedding” in Arial/12pt/black.

    Many thanks
    Frank

  70. David (Unregistered)
    Posted September 1, 2010 at 11:03 pm | Permalink

    Hi Adam,

    I was just wondering if it is possible to pass a variable into set_end or any of
    ‘endyear’ => 2010
    ‘endmonth’ => 11,
    ‘enddate’ => 1,

    so that instead of the above, you might have:
    ‘endyear’ => $fye,
    ‘endmonth’ => $fmo,
    ‘enddate’ => $fday,

    As in, I have a custom date field set up for each one of my posts, I’m trying to get those custom dates to be the dates used in your plugin, but I can’t quite figure out how. Any advice you (or anyone else) could give would be greatly appreciated!

    Cheers,

    David

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Guidelines
  • Yes, your comments will be visible to everybody. You can disagree, but civilly.
  • I have the right to delete abusive comments.
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • Put code in `backticks` (above your "Tab" key) or it won't display well
  • Gravatars: To override the default image by your comment, use a gravatar.
  • Links: If you include more than one link, your comment will go into the spam queue.

Please read before commenting: Because I am now employed and not just a student, I provide only minimal support for my plugins. Sorry.

If you have a bug report, feature request, or other general feedback about a plugin, please leave a comment—but do not expect an immediate response. If you are requesting help, though, please check the plugin's documentation thoroughly rather than ask your question as a comment.

Thank you for your understanding.