Difference between revisions of "Age at marriage"

From TNG_Wiki
Jump to navigation Jump to search
Line 604: Line 604:
 
| 13.1.2
 
| 13.1.2
 
| EN, DE, NO
 
| EN, DE, NO
| -
+
|-
 +
| [https://ahnenklein.com/ Auf den Spuren meiner Ahnen]
 +
| style="white-space: nowrap;"|[[User:Maikl11|Michael Klein]]
 +
| Public/Private site
 +
| 12​.3​.0​.5e
 +
| {{Tv1403}}
 +
| EN, DE
 
|}
 
|}
  

Revision as of 01:14, 3 October 2023

Restricted Downloads of Age at marriage 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 Marriage
Summary Adds a "Age at Marriage" field to getperson.php
Validation
Mod Updated 29 Sep 2023
Download link For
TNG 12.0
TNG 13.0
TNG 14.0

v12.3.0.5g


Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 12.3.0.5g for TNG v12,13,14
Min TNG V v12+
Max TNG V n.c
Files modified
getperson.php

languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
languages/Dutch-UTF8/cust_text.php
languages/Dutch/cust_text.php
languages/Danish-UTF8/cust_text.php
languages/Danish/cust_text.php
languages/German-UTF8/cust_text.php
languages/German/cust_text.php
languages/Czech-UTF8/cust_text.php
languages/Czech/cust_text.php
languages/Portuguese-UTF8/cust_text.php
languages/Portuguese/cust_text.php
languages/Italian-UTF8/cust_text.php
languages/Italian/cust_text.php

languages/Swedish-UTF8/cust_text.php
languages/Swedish/cust_text.php
Related Mods
Notes

Purpose of the Mod

Adds a field to the TNG main page (getperson.php) with the age of the married persons at the wedding date.
If the partner's age is equal to or less than a limit you set, his or her age will be coloured and bolded. You can adjust the age at which the partner's age will be coloured. You can also choose the color.
It takes a minimum of the wedding's YEAR AND the birth's (or baptism's) YEAR for the field to display.
In the parameters, you could also choose between 3 different displays :
1 = He : 20 years and 6 months - She 19 years and 1 month.
2 = He : 20 years - She 19 years.
3 = He : 20.5 years - She 19.08 years.
A second parameter to display text is proposed :
1 = He was .... - She was....
2 = He : .. She : ...
3 = Nothing (Example : 20 years and 6 months - 19 years and 1 month.)
Since version 2c, marriage between persons of the same sex has been the subject of adapted messages.
Since version 2d, you can add "old" at the end of line (appropriate parameter must be set to 1 in Mod Manager)
Since version 3, You can display the age at marriage for the parents too (default) Since version 4 and 4a, the marriage duration is calculated and a parameter file keeps your settings at upgrade.


Visualization

married_age.jpeg

The new added field for the family AND the parents.

Development

Based on an idea of Jean-Louis Valory and Written by : Michel Kirsch from Charleroi - Hainaut - Belgium Many people have contributed with their ideas and tests to the development of the Mod: Bob, Hanne, Katryne, Ken, Rick, Rob, Ron,...

Requirements

A TNG v12.3.0 installation in working order.

IMPORTANT : Before installing

Before installing, it is judicious 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:

getperson.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php

INSTALLATION

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

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Your settings are protected during the update process.
  • Proceed as for an installation with the new Mod.

Known Problems

None at this day...

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
  • Retry. 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

Languages

This Mod is supplied with Swedish, Italian, Portuguese (since v5), Danish (since v3), Czech, German (since v2d), Dutch (since v2a), French and English languages.
If you wish to add another language the following fields of cust_text.php are to be modified:

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.

// Age at Marriage Mod
$text['mahe'] = "He :";
$text['mashe'] = "She :";
$text['mahewas'] = "He was";
$text['mashewas'] = "She was";
$text['marriedage'] = "Age at Marriage";
$text['mamonth'] = "month";
$text['mamonths'] = "months";
$text['old'] = "old";
$text['marsince'] = "Married ";
$text['marduring'] = "Were Married ";
$text['mamax'] = "less than ";
// Age at Marriage Mod

Parameters

Accessible via the "Edit options" button of the Mod Manager, there are 11 options:

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.

1) Text to be displayed.

Options : 1 = He was 20 years - She was 19 years
: 2 = He : 20 years - She : 19 years.
: 3 = 20 years - 19 years

2) Set to 1, this parameter display the first part of the first name instead the pronoun He/She. Default is 0.

   Since v5, you can choose how many parts of the firstname the Mod will display (1 for the first part, 3 for the 3 first parts of the firstname, etc...)
      Example : Helmut was 20 years - Elise was 19 years

3) Display of the age.

Options : 1 = ... 20 years and 6 months.
: 2 = ... 20 years.
: 3 = ... 20,5 years.

4) Set on 1, this adds the word "old" at the end of the sentence.

      Example : Helmut was 20 years old. (jähren alt / jaren oud / ....)

5) You can provide a sign indicating that this age is estimated. This will be the case when a date is not complete.
Recommandations : You must provide a space char at the end of your sequence if needed => [~]space. Left blank for no sign.

     Example : the birthdate is only "1974" => Helmut was 20 years and 3 months old [~]

6) Separator used between the spouse's age at display. The default is - (Hyphen)
You can use an another separator, but you must use its ASCII number! (See this list)

7) Depending of the separator you use and the language you use, the separator (parameter 6)must be preceeded or not with a space.
With this parameter set to 1, a space will precede the separator.

8) If set on 1, the program try to add a sentence about the marriage length.

Examples : Were married 15 years and 5 months. => The spouses are divorced or at least one of them is deceased.
: Married 25 years and 8 months => the marriage is still active.
: Were Married less than 5 years => No divorce and no death : the length is based on the date of the next spouse's marriage.

9) If this parameter is set on 1, the age at marriage of the current person's parents will be displayed too.

10) Minimum age to marry. If the spouse is younger than this age, the age at marriage will be presented in bold and
in the color defined at parameter 11, thus drawing your attention to a possible date error.

11) This color will highlight that the spouse is younger than the minimum age you define at parameter 10. Left blank to use default color (black)

Historic of modifications

Version Release Date Contents
12.3.0.5g 29 Sep 2023 Initialize rows in getperson Loc#2 as arrays instead of strings (Fatal error with PHP8+) - Fix a warning with row['sex'] if there is only one parent.
12.3.0.5f 07 Apr 2023 The display of the age difference was conditional on the display of the duration of the marriage. Thx to Katryne.
12.3.0.5e 06 Jan 2023 The word "old" was never more displayed after the age at marriage. Thx to John Kleinmann.
12.3.0.5d 23 Dec 2022 TNG14 ready. Some ameliorations.
12.3.0.5c/14.0.0.5c 17 oct 2022 Fix a fatal error if an age could not be calculated (option 12 on 1).
14.0.0.5b 01 oct 2022 Ready for TNG 14.0.
12.3.0.5a 05 Sep 2022 Add Polish languages - Option 12) display the ages difference between spouse - If there is no deathdate, try with burialdate if present.
12.3.0.5 14 Mar 2022 Code is now in a separate file - Fix problems with same sex marriage and display of firstnames instead pronouns - Add Portuguese, Swedish and Italian languages - Option 2) modified to display more than one part of the firstname.
12.3.0.4a 18 Feb 2022 Add a protected parameters file - Refine the conditions to display the "estimated" sign (~) which is now displayed before the age instead at line's end.
12.3.0.4 15 Feb 2022 Add a sentence giving the marriage duration (Thanks to Bob's idea!) - Fix 2 PHP8 warnings - Add parameters in relation with new functionnalities and display (See list above) - Can display firstnames instead pronouns He/She. - Take in account marriage of same sex.
12.3.0.3 25 Dec 2021 Add the age at marriage for the parents row too (Thanks to Ron idea !).
12.3.0.2e 18 mar 2021 Minor modification to avoid PHP warnings (Brent).
12.3.0.2d 17 nov 2020 You can now add 'old' at the end of the line (She was 23 years old) - Voor Nederlands, u kan nu 'oud' aan het einde vand de lijn (Ze was 23 jaren oud)).
12.3.0.2c 15 oct 2020 Marriage between persons of the same sex has been the subject of adapted messages.
12.3.0.2b 21 sep 2020 Some language files are optional to allow installation for users who have deleted these files from their version.
12.3.0.2a 29 Aug 2020 Add a second parameter to display text.
12.3.0.2 26 Aug 2020 Modify code to calculate age (years no more rounded) - Add options for display - Does not show ages if the two ages are unknown
12.3.0.1a 23 Aug 2020 Change variables to avoid problems with other Mods (Relate Mod). Changing EN cust_text.php
12.3.0.1 22 Aug 2020 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
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 12.3.0.5c 13.1.2 FR/EN/NL/DE/SP
Treichel-Familie.de Andreas Treichel Public & Private 12​.3​.0​.5e 14.0.2 DE, UK, FR, ES, PL
Fam. van Seeventer Sandor van Seeventer Public site 12.3.0.5e 14.0 NL, DE, EN
Stegemüller Family History Hanne B. Stegemüller Public site 12.3.0.5e 14.0 EN, DE, DA
Malkins in New Zealand Rick Malkin Site is Private.. Magic Mod. Latest Update brilliant 12.3.0.5f 14.0.2 EN
Racine d'Alsace J-Louis Valory Private - T17 customized 12.3.0.1a 12.3 FR
The Severijns / Timmer Familytree Rob Severijns Public / Private 12.3.0.5g 14.0.3 NL, EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 12.3.0.3 13.1.2 NL, EN, ES
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
GeneaKat Katryne Chauvigné-Bourlaud Family site - Public & Private 12.3.0.5f 14.0.2 FR/EN
Kleinmann Genealogy John Kleinmann 12.3.0.5e 14.0 EN
Jan Suhr släktforskning Jan Suhr Public 12.3.0.2b 13.0 SE/DK/EN
Généalogie des familles Meresse et Facon Philippe Meresse 12.3.0.2c 13.0.1 EN/FR/NL
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Bumbery-Wangler Bob Bumbery Public/Private site 12.3.0.2d 13.0.0 English
Bart Joggele aus Mauren, Liechtenstein Gerald Meier Private site 12.3.0.5f 14.0.1 DE/EN/ES/FR/IT/PT
The Duttons of New England Darrin Dutton Public / Private 12.3.0.5f 14.0.1 EN
Familenforschung Kattau Uwe Kattau Public / Private 12.3.0.2d 13.0.2 DE
Genealogische Datenbank JPB Public site see here see here DE, EN, FR
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
YourTrees Berkshire FHS/Paul Barrett Private/Synology NAS 12.3.0.0e 13.0.4 EN
Van den Heuvel genealogiepagina Jan van den Heuvel Public 12.3.0.2e 12.02 NL,EN,DE
Johnson/Bryans Family Tree Charlie Ferrero Public (with customised version of this mod) 12.3.0.2e (customised) 13.1 EN
Lathrope Family Genealogy S Sharpe Public 12.3.0.5c 13.0.4 EN
Our Roy and Boucher Families Ken Roy Public 12.3.0.5f 14.0.3 EN, FR
Journeys In Genealogy Pat Thrush Public 12.3.0.3 13.1.1 EN
Delvee Family Association Rob Roy Public 12.3.0.4a 13.1.1 EN
Mueller Diefenbach Heritage Pages Bob Mueller Public 12.3.0.4 12.3 EN
La Saga BIGEY François B Public 12.3.0.5f 14.0.1 FR
Jarocinski Family Database Michał Jarociński Public/private 12.3.0.5e 14.0 PL / EN
Sejarah Thümann Jeffrey Thümann Public 12.3.0.4 13.0.3 NL, EN
Os Belard Luís Belard da Fonseca Public/Private 12.3.0.5 13.1.2 PT
Geslagregisters Louis Scholtz Public-Private 12.3.0.2e 13.1 AF,DE,EN,FR,NL
Inez & Leifs familjeträd Leif Johnson Public site v12.3.0.5e v14.0.1 SE, EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 12.3.0.5 13.1.2 NL
drzeworodzinne.czest.pl Michał Kołek Private 12.3.0.5 13.1.1 PL
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Our Immigrant Ancestors Jim Larson Private site 12.3.0.5f 14.0.2 EN, NO
Van Peer Project Drew McClenaghan Private 12​.3​.0​.5d 14.0 EN
Conroy Family Tree Bud Conroy Public/Private 12.3.0.5 13.1.2 EN
Coon White Family History Alan Coon Private / Public 12.3.0.5c 13.1.2 EN
ADLER-Wien Herbert Fischer Public site 12.3.0.5d 14.0 DE
Vår släkthistoria Lars Arén (Larsa52) Public site 12.3.0.5f 14.0.3 SE, EN, DE
Botebygden Lars Arén (Larsa52) Public site 12.3.0.5c 13.1.2 SE
Kielakowie.com Janusz Kielak Public site 12.3.0.5e 14.0.1 PL, EN, DE
Solem Genealogy Jan-Thore Solem Private 12​.3​.0​.5f 14.0.2 EN, NO
Hounslow-Dodsworth Family Tree Richard Dodsworth Public site 12​.3​.0​.5f 14.0.2 EN
Harnett Sheehan Families Kathy Harnett Sheehan Private/Very helpful mod! 12.3.0.5d 14.0.2 EN
Carr's Garage Regis Carr Public/Private requires registration v12.3.0.2c 13.1.2 EN, DE, NO
Auf den Spuren meiner Ahnen Michael Klein Public/Private site 12​.3​.0​.5e
TNG 14.0.3
EN, DE