Subscribe

I have moved to newlyancient.com and will be writing regularly there! Content on this domain is no longer updated, but will be maintained as an archive in its original form.

GenKeep is a plugin which allows WordPress to keep track of your birthday. You can display your current age, your birthday, and lots of other age related things. This work is licensed under a Creative Commons Public Domain License. Just download it already! Or, are you having trouble? I can help!

Need a custom plugin or theme? Contact me to work something out.

Join the 727 people who have downloaded GenKeep.

Features

  • All output is configurable to include years, weeks, or days - perfect for your newborn’s blog.
  • Allows embedding of your current age in WordPress content
  • Allows embedding of your next birthday in WordPress content
  • Allows embedding of your birthdate in WordPress content
  • Provides various functions for use in templates

Changelog

  • 1.0

    • Initial public release.
  • 1.1

    • Made PHP 4 compatible.
  • 2.0

    • Added configurable age format.

Implementation

[y]
Returns the number of years.
[w]
Returns the number of weeks (minus the number of years, if it is in your string).
[d]
Returns the number of days (minus the number of weeks and years, if they are in your string).
<!--myage-->
Embeds your current age in WordPress content
<!--mybirthdate-->
Embeds your birthdate in WordPress content
<!--mybirthday-->
Embeds your next birthday in WordPress content
<?php echo ae_get_age() ?>
Returns your current age, in years
<?php echo ae_get_birthdate() ?>
Returns your birthdate. Paramaters:
$format
Whether to format as a date. Defaults to Unix timestamp.
<?php echo ae_get_birthday() ?>
Returns your next birthday. On your bithday, returns false. Paramaters:
$format
Whether to format as a date. Defaults to Unix timestamp.
<?php echo ae_till_birthday() ?>
Returns the number of days until your next birthday

22 Responses to “GenKeep”


  1. 1 Nathan

    It’s a great plugin, too bad it doesn’t seem compatible with WordPress 2.1:

    Fatal error: Call to undefined function: str_ireplace() in /home/nathan/nathanr.ca/wp-content/plugins/ae_genkeep/ae_genkeep.php on line 84

    Sadly, I had to uninstall it.

  2. 2 arthus

    That is most unfortunate (and stupid of me). The problem is not WordPress 2.1 since I am running WP 2.1. However, your version of PHP might pose a problem, I think. What version of PHP are you running?

    I will try to fix the issue this afternoon and release a bugfix. If you can test, that would be great.

  3. 3 arthus

    Alright, I have fixed the issue so it should now work with PHP 4 and 5.

  4. 4 Nathan

    This is a non-issue now but I figured I’d answer your question:

    nathan@xorn:~$ php -v
    PHP 4.4.4 (cli) (built: Nov 15 2006 19:17:45)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

  5. 5 Rob

    Hi. This plugin is sooo close to what I was hoping to find. I have a newborn son and I was hoping my family could keep track of his age in weeks since it seems that they each call all the time and want to know how old he is now. Is there a way to mod the script to show his age in weeks, months, or even days? Since he’s only a month old (well actually 1 month, 6 days), and currently the script returns that his age is 0. I can’t find any other plug in that’s even remotely close. Anything you can do is greatly appreciated! Thanks.
    -Rob

  6. 6 arthus

    I hope to roll out a new version of GenKeep soon. It will include customized formatting (by decades, years, months, weeks, days, hours…) which should work great for you, Rob.
    Sorry that I didn’t respond sooner but I’ve been on Cape Cod.

  7. 7 Rob

    Thanks Arthus. Any way to get an update when the new version is ready?
    -Rob

  8. 8 arthus

    I have released version 2.0 which allows for configurable age formatting. This should fix your issue, Rob.

  9. 9 Rob

    Thanks so much for the update Arthus. It’s working beautifully. This update is brilliant for those of us with newborn children looking to keep our families updated. Absolutely worth the donation.

  10. 10 arthus

    Glad it worked well. Thanks for the donation, it is much appreciated. Good luck with your son.

  11. 11 Bradley A. Noe

    Very nice plugin! I’ve had it installed since your initial release.

    I noticed though after downloading from the above link that the version number still displays as 1.1 rather than 2.0. Is this just from forgetting to update the version in the file?

    Thanks again!

    Brad

  12. 12 arthus

    @Brad: I’m glad you like my plugin. I hope all the features are adequate for your needs.

    As for the mistaken version error, that was just from forgetfullness on my part. I did indeed forget to update the version in the file. Fixed now.

  1. 1 Keep Track of Your Birthday at Newly Ancient
  2. 2 Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 3/17
  3. 3 L’urlo del coniglio » Blog Archive » links for 2007-03-17
  4. 4 Wordpress Plugins - GenKeep | Wordpress Tutorials And Blogging Tips
  5. 5 Plugin: Keep Track of your Age | Wordpress Tutorials And Blogging Tips
  6. 6 WordPress Plugin Releases for 3/17 at Best Warez
  7. 7 WeblogToolsCollection DE » Blog Archive » WordPress Plugin Veröffentlichungen am 17.3.
  8. 8 WeblogToolsCollection Español » Blog Archive » Plugins de WordPress publicados 17/3
  9. 9 WordPress Plugins for March 22, 2007 « designcreatology
  10. 10 WP Plugins March 22, 2007 « Blogtology