Relationship Display Mod

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Relationship Display Mod 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


Ambox notice.png The Relationship Display Mod was added for TNG version 8+ to display the relationship of two individuals at the top of the Individual (getperson.php) page.
Since Version 8.1.6b, the mod uses TNG's relationship.php file to calculate the relationship.
TNG 8.0

Relationship Display Mod
Summary Displays the relationship of two individuals.
Validation All are XHTML compliant.Valid-xhtml10.png
Mod Updated 31 Jan 2023
Download link For
TNG 14.0
TNG 13.1.0
TNG 13.0
TNG 12.0
TNG 11.0
TNG 10.1.0
TNG 10.0

TNG 9.0
TNG 8.1.3
TNG 8.0
Download stats See download statistics
Author(s) Jeff Robison : Gerald Leehan
Homepage Robison and Blythe Genealogy
Mod Support TNG Community Forums
Contact Developer My Mod Support
Latest Mod v14.0.0.1a
Min TNG V v8.0 / 8.1
Max TNG V 14
Files modified
Related Mods
Back up the files listed above before installation!
See Custom Text Additions if you are using multiple languages.

Purpose of the mod

This mod displays the relationship between a default person and the current person in the header on an individual's page.

Note that the default person can be the logged in user, if you update the User records with the Tree and PersonID for the logged in user. See Updating Tree/PersonID below.


This mod was developed by Jeff Robison.
* View all mods by Jeff Robison
A mod comparable to the combination of Personalized Login Mod and Relationship Reference Message Mod by Gerald Leehan and Bryan S. Larson.
Accomplished with the aid of Bryan S. Larson and testers (by last name alpha order)......
Eric Andrist, Fred Berardi, Graham Chamberlain, Darrin Lythgoe, Nancy Porter, Joe Proctor, Bruce Roy, Ken Roy and Oname.gif.


  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.
  • Note: For the logged in user default person to work Administrators need to update their User records. There must be a Tree / Person ID assigned for each user. See Updating Tree/PersonID below.

Revision History

Mod Version Date Contents 31 Jan 2023 Updated for TNG v14.0.1 (and 14.0) by ron krzmarzick. 27 Dec 2022 Updated for TNG v14 by ron krzmarzick. 13 May 2022 Updated for TNG v13.1.x by ron krzmarzick & others. 27 Nov 2014 Fixed a couple of issues concerning page navigation when changing language. 01 Mar 2014 Updated for TNG v10.0. 08 Aug 2013 Updated for TNG v9.2.2
  • TNG V9.2.2 only.
  • Remember to back up your personal customizations for this mod! 13 Jun 2013 Same as V9.0.0.5a with the following changes.
  • Parameter option to display a button or icon & text to turn on the display in Mod Manager [Edit] after install.
  • Parameter 'Maximum relationships' added in Mod Manager [Edit] after install.
    This setting only affects the relationship display on the individual's page and the chart display when the chart icon is clicked. Will not exceed the max relationships set in admin!
  • Modifies TNG's relationship.php instead of creating a chopped copy making it compatible with Relationship display (German and Portuguese) Mod
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod! 24 May 2013
  • Full page load before calculation of relationship.
  • Relationship display 'button' instead of icon & text link to initiate the relationship display.
  • Parameter 'Auto on/off on page change' option added in Mod Manager [Edit] after install.
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod! 17 Dec 2012
  • Cookies for a default person selected by a visitor ('Set as Default Person' link) are set and expire in 30 days.
    These cookies are deleted if 'Restore User Default Person' or 'Restore Site Default Person' is clicked.
  • The relationship display on/off cookie expires 1 year after clicking the 'Close Relationship Display' icon and deleted as long as the display is active.
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod! 29 Apr 2012
  • Parameters added to set a default person/tree for public TNG sites.
  • Values for person ID/Tree can be changed by clicking the 'Edit' button found in the listing for this mod in Mod Manager after installation.
  • There is also a Enable/Disable parameter in Mod Manager for this feature.
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod! 12 Feb 2012
  • Excess line breaks removed.
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod! 04 Dec 2011
  • Revised for TNG v9.0.0.
  • TNG V9 only.
  • Remember to back up your personal customizations for this mod!
8.1.7a 02 Sep 2011
  • Revised for TNG v8.1.3.
  • If you currently use v8.1.7 of the mod you only need to replace the .cfg file in your mods folder.
8.1.7 11 Jul 2011
  • Same as V8.1.6b but sets cookies for the current default person, tree and display on/off status.
8.1.6b 19 Jun 2011
  • Access log and Bookmark issues resolved.
8.1.6a 16 May 2011
  • Conflict with Admin relationship chart settings fixed.
  • This version and updates hereafter will be the only versions I will support from now on.
8.1.6 15 May 2011
  • This version uses TNG's relationship.php and is multi-tree/user compatible.
  • This version has all fixes made in previous versions
  • Works with TNG v8.0+ / v8.1+.
8.1.5a 11 May 2011
  • A temporary fix for TNG is included in the mod concerning details showing for assigned living person.
  • Works with TNG v8.0+ / v8.1+.
8.1.4a 30 Apr 2011
  • This version is multi-tree compatible. User restrictions apply.
  • Although v8.1.4a recognizes the assignment of a 'Tree/Person ID' for a user in Admin/Users, it is no longer required.
  • Issue with timeline.php is resolved.
  • This version is recommended whether you have multi-trees or not.
  • Works with TNG v8.0+ / v8.1+.
8.1.2 05 Feb 2011
  • This version displays the same results delivered by TNG's relationship.php.
  • Works with TNG v8.1+
  • V8.1.2 is the same as V8.1.2a except there is no 'Initial default person ID'.
8.1.1 08 Jan 2011
  • Now uses the chart settings from admin/setup/chart settings/relationship.
  • There is a static 'Initial default person ID' set to 'I1' in reldisplay/set_defaultid.php. This assures a relationship display for anonymous users. The 'Initial default person ID' can be changed prior to installation of the mod by editing $initialdefaultID = I1; in reldisplay/set_defaultid.php.
  • The display for maxed out generations now displays the current person name and default person name/link.
  • getperson.php changes minimized.
  • V8.1.1a is the same as V8.1.1 except there is no 'Initial default person ID'.
8.1.0gfx 05 Dec 2010 Individual tab freaking out in IE (Imagine that) FIXED.
8.1.0g 01 Dec 2010 Partial solution for the Deutsch (German) 'Ur' vs. '2 x groß...' issue. By Jörg Baum
8.1.0 06 Nov 2010 Introduction.

Conflicts and Issues

TNG version: 9.0.4

If using Living Color Mod, then you must install Relationship Display Mod before installing Living Color.


The number of relationships displayed is governed by the Initial Relationships setting in your Admin/Relationship Chart Setting.
If you don't want this you need to remove Location 4 in the config file before install.....
Reldisplay_v8.1.7 lines 94-102.
Reldisplay_v8.1 appoximate lines 118-126. }}


  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. 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 all its tables, 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.


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

Updating Tree/PersonID

TNG version 8 added Tree / PersonID relationship fields to the TNG User record. This mod uses this information to set the default person for the logged in user.

You should update your User records to add the Tree / PersonID information for your users, if you are using this mod. Note that the Tree / PersonID are the two fields after the Notes: input field when you add / edit a User record. It is not the Tree under the Access Limit section! See the image on the right.
Tree and PersonID fields

Custom Text Additions

Note: The config file only includes the English language changes, so if you support multiple languages you can modify the config file to add the custom text for those other languages, or manually add the following custom text to each of your other languages with appropriate translations.

English custom text is included in the mod. This Is For Reference Only!

//  Added for Relationship Display
$text['reldisplay'] = "Relationship Display";//NEW for TNG V9
$text['ggreat'] = "great";
$text['relsearch'] = "Calculating relationship.....";
$text['rettodef'] = "Return to ";
$text['setdefttl'] = "Change the default person to ";
$text['setdef'] = "Set As Default Person";
$text['restoredef'] = "Restore User Default Person";
$text['restoresitedef'] = "Restore Site Default Person";
$text['relatetip'] = "Tips For Setting Default Person";
$text['nodisplay'] = "Close Relationship Display";
$text['relchartttl'] = "View Relationship Connection";
$text['relchart'] = "Relationship Chart";
$text['defperson'] = " is the default person";
$text['notrelated2'] = "are not related within xxx generation.";
$text['relhelp'] = "Setting the current individual as the default person will initiate the relationship display which shows the relationship between the Default Person and Current Subject.<br><br>
If you are a registered member with a Default Person assigned, just log in and the Default Person will then be the assigned person.<br><br>
The Default Person can be changed to any person by clicking 'Set As Default Person' on that person's page.<br><br>
Relationship results between the Default Person and the Current Subject are displayed after calculation. A relationship chart may be viewed by clicking on the 'Relationship Chart' link.";

French/cust_text.php or the French-UTF8/cust_text.php

//TNG relationship.php text corrections-Ken Roy 20:11, 5 November 2010
//Not necessary for TNG v8.1.1
$text['ggreat'] = "arrière";
$text['great'] = "arrière";
$text['gfath'] = "xxx grandpère de";
$text['gmoth'] = "xxx grandmère de";
$text['gpar'] = "xxx grandparent de";
$text['mothof'] = "la mère de";
$text['fathof'] = "le père de";
$text['parof'] = "le parent de";
//  Added for Relationship Display Mod by Graham Chamberlain (Not validated).
$text['reldisplay'] = "Relationship Display";//NEW for TNG V9
$text['notrelated2'] = "ne sont pas liés au sein de la génération xxx.";//Google translate
$text['rettodef'] = "Retourner à ";
$text['setdefttl'] = "Définir la personne défaut ";
$text['setdef'] = "Définir comme personne défaut";
$text['restoredef'] = "Restaurer personne défaut";
$text['restoresitedef'] = "Restaurer personne défaut";
$text['relatetip'] = "Conseils pour la mise personne défaut";
$text['nodisplay'] = "Fermer l'affichage des relations";
$text['relchartttl'] = "Voir la connexion relations";
$text['relchart'] = "Tableau des relations";
$text['defperson'] = " est la personne défaut";
$text['norelate'] = "Aucune relation directe dans 15 générations de la personne défaut ";
$text['relhelp'] = "La première personne par défaut sera la page de la première personne visitée. Si vous êtes un membre enregistré avec une personne par défaut attribuée, connectez-vous et la personne par défaut sera alors la personne désignée. La personne par défaut peut être modifié à toute personne en cliquant sur «Définir comme personne défaut» sur la personne de page.<br><br>
résultats relation entre la personne par défaut et le sujet actuel sont affichés après le calcul. Un tableau relation peut être consulté en cliquant sur le lien «Tableau des relations».";

German/cust_text.php or the German-UTF8/cust_text.php

//TNG relationship.php text corrections-Ken Roy 20:11, 5 November 2010
//Not necessary but an alternative for TNG v8.1.1 (Closer to the rule)
$text['gfath'] = "der xxxGroßvater von";
$text['gmoth'] = "die xxxGroßmutter von";
$text['gpar'] = "die xxxGroßeltern von";
$text['ggreat'] = "Ur";
$text['great'] ="Groß";
//  Added for Relationship Display by [[image:Oname.gif‎|bottom]]
$text['reldisplay'] = "Verwandtschaftsanzeige";//NEW for TNG V9
$text['notrelated2'] = "sind nicht innerhalb von xxx Generationen verwandt.";
$text['rettodef'] = "Rückkehr nach ";
$text['setdefttl'] = "Stellen Sie den Probanden ein: ";
$text['setdef'] = "Als Proband einstellen";
$text['restoredef'] = "Standardeinstellungen auf Person-ID wiederherstellen";
$text['restoresitedef'] = "Restore Site Default Person";
$text['relatetip'] = "Tipps zum Einstellen des Probanden";
$text['nodisplay'] = "Ausblenden der Verwandtschaftsanzeige";
$text['relchartttl'] = "Verwandtschaftsverbindung";
$text['relchart'] = "Verwandtschaftsberechnung";
$text['defperson'] = " ist der Proband";
$text['norelate'] = "Es gibt keine direkte verwandtschaftliche Beziehung innerhalb von 15 Generationen zum Probanden ";
$text['relhelp'] = "Der Proband wird f&uuml;r die Verwandtschaftsanzeige durch den Administrator dieser Seite festgelegt, welcher unterhalb dem Namen und Daten im Kopf auf den Profilseiten angezeigt wird.<br>
Der Proband kann auf jede Person ver&auml;ndert werden, indem Sie auf \"Als Proband einstellen\" auf der Profilseite dieser Person klicken.<br />
Wenn Sie ein registriertes Mitglied mit einer Person-ID sind, dann m&uuml;ssen Sie sich einloggen und der Proband wird daraufhin dieser Person-ID zugeordnet.<br />
Wenn Sie ein registriertes Mitglied nicht als Proband zugeordnet sind, dann sollten Sie beim Administrator anfragen, damit Sie einer Stammbaum-/Person-ID als Proband eingestellt werden.<br />
Beziehung zwischen dem Probanden und dem angezeigten Personenprofil werden nach der Berechnung angezeigt. Ein Verwandtschaftsdiagramm kann durch Anklicken des \"Verwandtschaftsberechnung\"-Link angezeigt werden.<br />
Die Verwandtschaftsanzeige kann durch Klicken auf das <img src=\"{$cms['tngpath']}img/tng_delete.gif \" width=\"14\" height=\"14\" border=\"0\"/>-Icon abgeschaltet werden, das sich auf der linken Seite der Anzeige befindet.<br />  
Die Verwandtschaftsanzeige kann wieder eingeschaltet werden indem Sie auf \"Als Proband einstellen\" klicken.";

Note: If the German umlauts (ä,ö,ü,ß) are not correct displayed , please look at: German html-Umlaut-Code

Dutch/cust_text.php or the Dutch-UTF8/cust_text.php

//  toegevoegd voor Relationship Display Mod
$text['reldisplay'] = "Relationship Display";//NEW for TNG V9
$text['notrelated2'] = "zijn niet gerelateerd binnen xxx generaties.";
$text['ggreat'] = "groot"; //Not necessary for TNG v8.1.1
$text['rettodef'] = "Terug naar ";
$text['setdefttl'] = "Verander de standaard persoon naar ";
$text['setdef'] = "Als standaard persoon instellen";
$text['restoredef'] = "Herstellen van het Standaard Persoon-ID";
$text['restoresitedef'] = "Restore Site Default Person";
$text['relatetip'] = "Tips voor het instellen van de standaard persoon";
$text['nodisplay'] = "Relatie weergave sluiten";
$text['relchartttl'] = "Verwantschap van de relatie tonen";
$text['relchart'] = "Relatie Grafiek";
$text['defperson'] = " is standaard persoon";
$text['norelate'] = "Geen directe relatie binnen 15 generaties tot de standaard persoon.";
$text['relhelp'] = "De oorspronkelijke Standaard Persoon is toegewezen door de beheerder/s van deze site. De relatie word weergeven op de Profiel pagina's, die onder de naam/datum word getoond.<br />
De Standaard persoon kan veranderd worden door te klikken op het pictogram 'Als standaard persoon instellen' op de pagina van de persoon.<br />
Als je een geregistreerd lid bent met een toegewezen Standaard Persoon, dan ben je de Standaard Persoon nadat je ingelogd bent.<br />
Als je een geregistreerd lid bent, zonder een toegewezen Standaard Persoon, neem dan contact op met de beheerder van deze site/s om een Persoon-ID toegewezen te krijgen.<br />
De relatie tussen de Standaard Persoon en het huidige persoon wordt weergegeven na berekening. Een relatie grafiek kan worden bekeken door te klikken op de link 'Relatie Grafiek'.<br />
De relatie display kan worden uitgeschakeld door te klikken op het <img src=\"{$cms['tngpath']}img/tng_delete.gif\" width=\"14\" height=\"14\" border=\"0\" />-pictogram aan de linkerkant van het scherm.<br />
Het display kan worden geactiveerd door te klikken op het pictogram 'Als standaard persoon instellen' in het menu.";

Spanish/cust_text.php or the Spanish-UTF8/cust_text.php

$text['ggreat'] = "gran"; //Not necessary for TNG v8.1.1
//  Added for Relationship Display by Graham Chamberlain (Not validated).
$text['reldisplay'] = "Relationship Display";//NEW for TNG V9
$text['notrelated2'] = "no están relacionados dentro de la generación de xxx.";//Google translate
$text['rettodef'] = "Volver a ";
$text['setdefttl'] = "Establecer el valor predeterminado Persona ";
$text['setdef'] = "Establecer como Persona por defecto";
$text['restoredef'] = "Restaurar la Persona por defecto";
$text['restoresitedef'] = "Restore Site Default Person";
$text['relatetip'] = "Consejos para establecer el valor predeterminado de Personas";
$text['nodisplay'] = "Cerrar la pantalla de Relación";
$text['relchartttl'] = "Ver la conexión de la Relación";
$text['relchart'] = "Carta de Relación";
$text['defperson'] = " es la Persona por defecto";
$text['norelate'] = "no una Relación directa dentro de 15 generaciones de la Persona por defecto ";
$text['relhelp'] = "La primera persona por defecto será la página de la primera persona visitada. Si usted es un usuario registrado con una persona asignada por defecto, sólo tienes que entrar y la persona por defecto será la persona asignada. La persona predeterminada se puede cambiar a cualquier persona haciendo clic en “Establecer como Persona por defecto” en la persona de páginas.<br><br>
resultados de relación entre la persona por defecto y el perjuicio actual se muestra después de cálculo. Un gráfico de relación puede verse haciendo clic en el enlace “Carta de Relación”.";

Visualization of this mod



If a user with a Tree / PersonID assigned is logged in, the Default Person will then be the assigned person.

If no user is logged in or no Tree / PersonID is assigned setting the current individual as the default person will initiate the relationship display.

The Default Person can be changed to any person by clicking 'Set As Default Person' on that person's page. Relationship results between the Default Person and the Current Subject are displayed after calculation. A relationship chart may be viewed by clicking on the 'Relationship Chart' link.


Note: Font for the person's name in the header is a personal customization and not a feature of TNG v9.0.0.

Relationship display on.


Relationship display off.(Icon & text)


Relationship display off.(Button)


Sites using this mod

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

URL User Note Mod-Version TNG-Version User-language
Onze familiegeschiedenis Wim van der Horde Public & Private 14.0 EN,NL
Robison & Blythe Genealogy Jeff Robison Mod developer (Public site) 13.0.2 EN Andreas Treichel Public & Private 14​.0​.0​.1 14.0.2 DE,EN,FR,ES,PL
Family tree of Marcin & Emilia Senderski Marcin Senderski Private 13.0.4 EN,PL
Ahnenforschung Joachim Drexel Joachim Drexel Public Site 12.3 EN
my family Oname.gif (no public site) I use now the Relate mod ! See here See here DA,NL,EN
Our Family Bryan Larson Guest username/password: guest/guest 8.1.7 EN Janusz Kielak ... 10.0.3 PL,DE,EN,RU
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Public Site 10.0.3 EN,DE,FR,ES,NL
The Craxford Family Genealogy Magazine Alan D Craxford ... 8.1.2 EN(GR,FR,PO to be added)
Familienforschung von Schönau & Schuch Wolfgang Schuch ... 8.1.0 8.1.0 DE Bob Mueller ... 9.2.0 EN,DE
Arsenault and Simpson Family Genealogy Bob Arsenault Not an Open Website 9.0.3 EN
Jerry Milo Johnson Ancestry Project Jerry Milo Johnson 9.0.2 EN
Kemp(e) Family History Andrew Kemp see here see here EN
Legacy Gazette: My Roots - My Legacy Melissa Watson Padilla 9.2.0 EN
Walls Wrightsman Family Carl B Zachary 9.2.0 EN
Grogan mob Margaret Turner Public site 10.1.1 EN
Turner mob Margaret Turner Public site 10.1.1 EN
Mitchell Families Online Roger Mitchell Public site 9.2.2 EN
Colleen & Jeff's Roots Colleen Greene Public site 10.0.0 EN
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
The Williams Family Tree Phil Williams Public Site 10.0.3 EN
Wortelboer Genealogy Bernard Wortelboer Public Site 11.0.0 DU,EN
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.1 EN,DE
Quigley Doyle Family Tree Don Quigley Public Site 11.0.0 EN
R G Strong Family Genealogy Russell Strong Public Site 13.1.1 EN,FR,DE,DU
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
Our Family Links Chuck Filteau Public site, modified Template 12 10.1.2 EN
Our Family History Paul Garrett Public site, modified Template 10 11.0.1 EN
Rintoul/Bowman Family Andrew Rintoul Public/Private 12.0 EN,DE,ES,FR
An Aotearoa Genealogy Website Merv Priestley Public & Private, modified 12.0.2 EN
Racine d'Alsace J-Louis Valory Public (registration) 13.0.3 FR
Bumbery-Wangler Bob Bumbery Public site 11.1.2 EN
The Grahams of Helensburgh Jim Graham Public/Private 12.0 EN
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 12.1 EN
YourTrees Paul Barrett Private/Synology NAS 13.0.4 EN
Lathrope Family Genealogy S Sharpe Public 13.0.4 EN
Conroy Family Tree Bud Conroy Public/Private 13.1.1 EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Braymen / Munderloh Chris Braymen Public / Private 13.1.2 EN
Van Peer Project Drew McClenaghan Private 14​.0​.0​.1a 14.0 EN
Harnett Sheehan Families Kathy Harnett Sheehan Private/Very helpful mod! 14​.0​.0​.1a 14.0.2 EN