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 have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox 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 14.0
TNG 13.0
TNG 12.0


Age at event
Summary Shows the age of the person at the time of the event
Validation
Mod Updated 08 Oct 2023
Download link For
TNG 13.0
TNG 13.1.0
TNG 14.0
v12.3.0.3a
Download stats Show statistics
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 12.3.0.3a for TNG12,13,14
Min TNG V v12.3+
Max TNG V nc
Files modified
getperson.php
personlib.php
languages/Dutch-UTF8/cust_text.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
languages/German-UTF8/cust_text.php
languages/Norwegian-UTF8/cust_text.php
Related Mods
Notes

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.

Development

Author: Michel Kirsch from Charleroi-Hainaut-Belgium.

Testing

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 !

Parameters

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

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.

Revision History

Mod Version Date Contents
12.3.0.3a 08 Oct 2023 Fix an installation order problem with Group custom events v13.1.2.5e.
12.3.0.3 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.
12.3.0.2b 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).
12.3.0.2a 24 Dec 2021 Depending on the options chosen, the age was not always displayed.
12.3.0.2 23 Dec 2021 Fix compatibility problems - change parameters - Add the TNG default display - Many code modifications.
12.3.0.1a 16 Dec 2021 Fix parameters problems. When the user modifies parameters, it is possible that the mod shows as "Partially installed".
12.3.0.1 16 Dec 2021 First online version.

Conflicts and Issues

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 or later of the Census Plus International mod.

Compatibility

For TNG 13+ ONLY:

Installation

  1. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  2. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and any tables if created, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new 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:

getperson.php
personlib.php
languages/Dutch-UTF8/cust_text.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
languages/German-UTF8/cust_text.php
languages/Norwegian-UTF8/cust_text.php

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
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 12.3.0.3a 14.0.3 FR,EN,NL,DE,ES
Treichel-Familie.de Andreas Treichel Public & Private 12​.3​.0​.3a
TNG 14.0.6
DE,EN,FR,ES,PL
Stegemüller Family History Stegemüller Public 12.3.0.3a 14.0.6 EN,DE,DA
The Severijns / Timmer Familytree Rob Severijns Public / Private 12.3.0.3a
TNG 14.0.5
NL, EN
A line of Malkins' in Nu Tirani - New Zealand Rick Malkin Private site. Great Mod!! 12.3.0.3 14.0.2 EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 12.3.0.3a
TNG 14.0.5
NL,EN,ES
Roots & Relatives Remembered Ron Krzmarzick Public & Private See here See here EN,DE,CS
Delvee Family Association Rob Roy Public 12.3.0.3a
TNG 14.0.6
EN
Roy Family Genealogy Rob Roy Public 12.3.0.3a
TNG 14.0.6
EN
Racine d'Alsace J-Louis Valory Public (registration) 12.3.0.1a 13.1 FR
Scealta Ton van Lil Public/Private site 12.3.0.1a 13.1 NL,EN
Our Roy and Boucher Families Ken Roy Public 12.3.0.3a
TNG 14.0.5
EN, FR
GénéaKat Katryne Public & Private 12.3.0.3a 14.0.4 FR,EN, SP
Auf den Spuren meiner Ahnen Michael Klein Public/Private site 12​.3​.0​.3
TNG 14.0.3
EN,DE