Custom relation types

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Custom relation types 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


Custom relation types
Summary Define your own Parents/Chidren relation types
Validation
Mod Updated 06 Jun 2023
Download link For
TNG 12.0
TNG 13.0
TNG 14.0
12.3.0.0
Download stats Show statistics
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod V12.3.0.0
Min TNG V 12
Max TNG V n.c.
Files modified
admin_editperson.php
getperson.php
Related Mods
Notes

Purpose of the Mod

Allows you to define your own parents/chidren relation types.
TNG offers 'Adopted', 'Birth', 'Foster', 'Sealing', etc... as relation types.
Go to the Edit options of the Mod, define your own ID for the new relation type then
add translations for these ID.
Each translation must be preceeded by the 2 first letters of the language followed by an underscore like 'EN_' , 'GE_' , 'DU_' , etc..
Each translation are separed with a comma. (see screenshot or the example given in the Edit options of the Mod)
Examples:

ID = stmot - translations = EN_Stepmother, FR_Belle-mère, etc...
ID = stfat - translations = EN_Stepfather, FR_Beau-père, etc...

Development

Author : MichelK

Requirements

A TNG 12 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

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

admin_editperson.php
getperson.php

File copied by this Mod

Source Destination
custom_relation_types/custom_relation_types.php TNG root/$extspath/custom_relation_types.php

INSTALLATION

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

Upgrade

When upgrading to a newer version

  • Uninstall and eventually Delete the current Mod.
  • 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
  • If the problem persists, open an issue in the TNG Community Forums. At worst, send a mail to MyMail

Historic of modifications

Version Release Date Contents
V12.3.0.0 06 Jun 2023 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 Developper 12.3.0.0 14.0.3 FR/EN/DU/GE/SP
Malkins in Nu Tirani - New Zealand Rick M Private Site.. Great Mod Michel.. Thank YOU!! 12.3.0.0 14.0.2 EN
The Severijns / Timmer Familytree Rob Severijns Public / Private See here See here NL, EN
GénéaKat Katryne Public/Private 12.3.0.0 14.0.4 FR,EN,SP

Visualization

How to insert your own relation types in the Mod Edit Options.

image_alt_name

This is how your new relation types are displayed on the Edit Person page (getperson.php)

image_alt_name