Age at event

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Age at event are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you are having trouble downloading with the Google Chrome browser, try using try right-click and select Open in new Window, then F5, or use another browser Caution

Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 13.0
TNG 12.0

Age at event
Summary Shows the age of the person at the time of the event
Mod Updated 10 Feb 2022
Download link v12.3.0.3
TNG 12.3.0
TNG 13.0
TNG 13.1.0
Download stats Show statistics
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod for TNG v12+
Min TNG V v12.3+
Max TNG V nc
Files modified
Related Mods

Purpose of the Mod

Displays the age of the person at the time of the event if at least one year exists for the event and for the birth.
If an age is already encoded for the event (in the 'Age' field) the Mod don't but can (parameter)display the age.


Author : Michel Kirsch from Charleroi-Hainaut-Belgium


Thanks to the test team (alpha order) : Brent, Jean-Louis, Ken, Rick, Rob the sailor, Rob the young and last but not least Ron.
Thanks to Tore for the idea !


After install, go to the parameters section by clicking the [Edit Options] button in the Mod Manager.
Parameters are : A list of events to exclude

(1) $listOfEventsToExclude = 
A list you made. If some of your custom events do not require the date to be displayed, enter their tag names here, separated by a comma.
The tag name (OCCU, RESI, etc...) can be entered with or without spaces, in lower or upper case. ('Oc cU' is a valid entry for 'OCCU'

Where is the Age displayed?

(2) displayWhere =
 1    => Age After the Detail
 2    => Age Before the Detail
 3    => Age after the Place (or after the Date if there is no Place) => this is the default case
 4    => Age before the Place
 5    => Age after the Date (if the Event's Age field is empty - See next parameter)

Display the age in every case (3) displayAlways

Set on 1 in conjunction with parameter (2) set on 5, displays the Age even if the Event's Age field is not empty 

How is the Age displayed?

(4) $displayAS =
1  => displays : (45 years)
2  => displays : (45 years old)
3  => displays : (Age 45)
4  => displays : (Age 45 years) (TNG default) => this is the default case of the Mod


A TNG v12.3. installation in working order.

IMPORTANT : Before installing

Before installing, it is best to make a backup copy of the files that will be modified by this mod.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:



  • Unzip the received file directly in the "mods" sub directory of your TNG installation.
  • Via Mod Manager, install the Mod.


When upgrading to a newer version

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Known Problems

If you are using Census Plus International mod, it causes a Cannot install status due to a Bad Target in personlib.php at location at line 222. This problem is resolved in v13.0.0.12a of the Census Plust International mod which is currently awaiting feedback on whether PHP 8 warning in another section of the mod is resolved.


For TNG 13+ ONLY:

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Copy the backup of the affected files back to your TNG directory
  • If the problem persists, open an issue in the TNG Community Forums or on the page of Michel Kirsch. At worst, send a mail to MyMail

Historic of modifications

Version Release Date Contents 09 Feb 2022 If there is no birthdate, uses the altbirthdate instead (parameter) - Use TNG age() function - Enlarge date field - Don't calculate the age for family's event having a date. 26 Dec 2021 Changing location to avoid install problems with Mods : personlib.php Loc #9 (Census Plus International mod), getperson.php Loc #3 (Remove gender row Mod). 24 Dec 2021 Depending on the options chosen, the age was not always displayed. 23 Dec 2021 Fix compatibility problems - change parameters - Add the TNG default display - Many code modifications. 16 Dec 2021 Fix parameters problems. When the user modifies parameters, it is possible that the mod shows as "Partially installed". 16 Dec 2021 First online version.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Stegemüller Family History Hanne B. Stegemüller Public 13.1.2 EN, DE, DA
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 13.1 FR/EN/NL/DE/ES
Genealogy of a Dutch East-Indies Family Rob Severijns Private 13.1.1 NL, EN
One line of Malkins' in New Zealand Rick Malkin Private site v12.3.0.2 v13.1.0 EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 13.1.2 NL, EN, ES
Delvee Family Association Rob Roy Public 13.1.1 EN
Roy Family Genealogy Rob Roy Public 13.1.1 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
Racine d'Alsace J-Louis Valory Public (registration) 13.1 FR
Scealta Ton van Lil Public/Private site 13.1 NL,EN
Our Roy and Boucher Families Ken Roy Public 13.1.1 EN, FR