Both mods can now be installed independently of each other. However, if you are using both mods, you must install the Event Map add children mod first in TNG V8. This restriction does not apply to TNG V9.

Note that the Age Calculation Mod and the Event Map add children mod, both modify the same query, therefore there is a restriction on the order of installation and removal of the mod in TNG V8.

Note that even if a person is deceased, if the living flag is set, the age will be calculated to current date. This is not a problem. The living flag takes precedence over the death date. If profiles have no date of death and the living flag is not set, the age-field is not displayed.

Note that the updates made in v8.1.4 of the mod were only to make the mod XHTML compliant. The comma is still displayed after the birthinfo. If user who get a blank comma for birth info can provide the test case then the logic might be adjusted, otherwise Olaf's workaround to deleting the comma in line 153 of the mod file is still required.

Rules for Age Display

These are the rules for displaying the age:

When the death date is not filled in and the person has an indication "Not living" then nothing is displayed.

When the death date is not filled in and the person has an indication "Living" then the age is not calculated when the user is not logged in (depends on : "show living data" settings in privacy tab)

When the user has logged in then the age will be displayed, where the age is the age he/she has today.

The living tag is filled (when no death date present) according the setup in the administration: Import settings, "If no death date, assume deceased if older than xxxx".
(Rules provided by Leon on User2 list on 26 Sep 2010)

Custom Text Additions

Note that for TNG V8 and above the config file includes the changes for the languages/English and languages/English-UTF8 folders.

Note that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages, or manually add the $text['years'] to the cust_text.php for all the languages you are using.

The following custom text will be added to your English/cust_text.php file by this mod. If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course.

// Age Calculation Mod text$text['years']="years";

For example, you would add to the French/cust_text.php

// Age Calculation Mod text$text['years']="années"

The translation for $text['years'] can be found in the appropriate language text.php file. The reason it is needed in the cust_text.php is because there is a case assignment to the one in the TNG distributed file.

Other Languages

If you use other languages in addition to English, you either need to modify the config files to include the cust_text.php for those languages, or you need to manually add the $text['years'] to the cust_text.php for all the languages you are using.

The translation for $text['years'] can be found in the appropriate language text.php file. The reason it is needed in the cust_text.php is because their is a case assignment to the one in the TNG distributed file.

Visualization of this mod

The following images show how this mod changes the display of the Individual (getperson.php) page by adding:

a new row that displays the individual's age at death or if living the individual's current age for users allowed to view information on living individuals as shown in the image below

the age to the parents, spouse, and children as shown in the image below

With the v9.0.0.2 of the Age Calculation Mod,

the person's age is also now displayed after the birth-death years in the header

the person's age display can now be controlled through the Edit parameters on the Mod Manager screen. The default is to show the age both after the birth-death years in the header and in the Age Event row. You could change the options to 0 to suppress one or the other.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below.