Plugin / Age Calculator

Josh Cook

Description

Description

A quicktag that will calculate the current age of a person/animal/whatever based on it’s birthdate. Supports changing the verbiage for year(s) and month(s) plus has a multiplier for animals (such as “in dog years”).

Using the quicktag [agecalc birthdate=”1978-01-30] will display “31 years” using the default settings.

Visit www.joshcook.net for update information or to submit feature and support requests.

Configuration

Using the Quicktag

The Age Calculator quicktag can be used in any post or page using the following format:

[agecalc birthdate=”1978-01-30″ year=”” years=”” multipliery=”” month=”” months=”” multiplierm=””]

The following attributes can be used within the quicktag. Default values can be configured on the Age Calculator’s settings page.

birthdate

The birthdate attribute is the only manditory attribute, which has to be entered Year, Month and then Day. You can use either a . (period), a / (forward slash) or a – (hyphen) as the seperator.

Here are a few valid and invalid birthdate entries:

  • 1978-01-30 – Valid
  • 1978/01//30 – Valid
  • 1978.01.30 – Valid
  • 01-30-1978 – Invalid
  • 30.01.1978 – Invalid

year

Sets the text that is returned when the age is 1 year.

years

Sets the text that is returned when the age is more than 1 year. For example, 15 years.

multipliery

Used as the multiplier for the year value. For example, if you had a pet web site you could multiply the age by 7 for “dog years”. I giggle every time I say “miltipliery”

month

Sets the text that is returned when the age is 1 month.

months

Sets the text that is returned when the age is more than 1 month. For example, 5 months.

multiplierm

Used as the multiplier for the month value.

Age Calculator options page

Configure the default text used when the plugin returns the current age. All values can be overridden within the quicktag.

Ratings

5
1 reviews

Rating breakdown

Details Information

Version

0.81

First Released

10 Feb, 2009

Total Downloads

3,364

Wordpress Version

2.7 or higher

Tested up to:

4.8.11

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.