Birthdaze

Birthdaze is a simple plugin to keep track of birthdays. It installs a table to hold names and birthdays. It includes an admin page under the Tools menu to add, modify, and delete birthdays. Birthdays can be displayed using a widget, a shortcode, or using template functions.

Widget

The plugin automatically enables a widget you can add to your sidebar to show the current month’s birthdays. It has other options to change how the birthdays are displayed. The “Birthday format” field takes a standard PHP date() formatting string – see http://php.net/manual/en/function.date.php for all of the options.

Shortcode

Using the shortcode is an easy way to include a birthday list in a page or post without any messy theme editing. Here’s the shortcode with all the options and their defaults.

[birthdaze before="<li>" after="</li>" time="month" initial="TRUE" notfound="None found." bdformat="F j"]

So, if you just put [birthdaze] in a page or post you’ll get this month’s birthdays formatted like “John S: January 31″ and surrounded by list tags. If you want to display all birthdays, set time to all – and to get the next week’s birthdays set it to week. Use day to only display today’s birthdays.

To avoid having to type in that crazy stuff for your before and after HTML tags, just use the visual editor – it’ll automatically escape the HTML for you. No surrounding tags are added, so for a list you’ll need to add your own <ul> tags. Date formatting is the same as the widget – see http://php.net/manual/en/function.date.php for all of the options.

Get the latest version of Birthdaze here: birthdaze-0.5.3

13 Responses to Birthdaze

  1. Christian says:

    I cannot delete the birthdays when using your plugin.
    Where on the page do I put “birthdaze_allofem(before,after)”?
    What do you mean by “Capability”?

    • isaac says:

      Thanks for letting me know about the bug – please try the new version 0.3, which should fix the deleting issue and also adds a widget.

  2. Vac says:

    I like the plugin so far, but I’d like to show both first and last name in the widget. Also, since my page is in German, I don’t need the “th” after the years, e.g. 24th. “24″ alone is sufficient. Any ideas how I could handle these two little changes? Thanks.

  3. ???? says:

    Vac,

    for first and last name both, edit this plugin:
    change
    $lname = ” ” . substr($bday['lname'],0,1);
    to $lname = $bday['lname'];

    • isaac says:

      I added an ‘initial’ option to the template function and shortcode – just set that to FALSE to get full last names.

  4. Crysis says:

    Great Plugin. Hope it works sometimes with BuddyPress Profilefields?

  5. WH says:

    Hi,

    Is there a way to set birthdaze to a week viewing instead of a month?
    Thanks for your advice.
    WH

  6. pawan says:

    Hi,

    I have been install the birthday plugin, but i can not understand that how we add the birthday record from admin panel.

    Please help me.

    Thanks

  7. Jeroen says:

    Just installed the plugin, but do not have a Tools:Birthdays to add records.
    Where to fill the persons birthdays?

  8. Russ says:

    I’m getting slashes before apostrophe’s in last names. What’s the best way to deal with that?

  9. Russ says:

    Any way to get birthdays less than today but still the current month to not show in the list?

  10. Greetings,
    Love the plugin. I wanted to let you know about a little tweak that I made regarding the widget. I changed line 274 to this:
    $bdayoutput = $before . '' . $bday['fname'] . $lname . "" . $bday_text . ' - ' . $after . "\n";

    It formats it just a little different and makes it a little easier on the eyes. Anyway, you can see a sample of it here.

    Thanks again for the great plugin. Ciao

Leave a Reply

Your email address will not be published. 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>