Regroup Person-Child2Parent

From TNG_Wiki
Revision as of 12:06, 19 November 2020 by Robinrichm (talk | contribs) (v13.0.0.19c)
Jump to navigation Jump to search
Regroup Person-Parent Rel
Summary On the Person Profile page (getperson.php), suppresses relationships between child and parent that you specify; generally, "Natural" and "Birth".
Validation
Mod Updated 19 Nov 2020
Download link v13.0.0.19c
TNG 13.0
See the Revision History for older versions
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod v13.0.0.19c
Min TNG V 10.1
Max TNG V 13
Files modified
getperson.php, admin_genconfig.php, admin_updateconfig.php;
May Install rrshared_modsettingsblocks4.php, rrshared_wikilogo.gif
Related Mods
Notes
This mod can be used independently of the other mods in the Regroup Person family.


Purpose of the Mod

Make the Person Profile a little more succinct by suppressing the display of the parent/child relations such as 'natural' that can ordinarily be assumed.

Mod Options

A mod option lets TNG admins define a set of relation values such as "natural" & "birth", and/or those values in other lanuagues.

Mod Conflicts

  • Version 19c of this mod is compatible with Collapse Family Children, but only if Collapse Family Children is installed first.

There are so many small mods that affect the Person Profile that I haven't tested them all against this mod. It is definitely compatible with other mods in the Regroup Person* family. If you encounter a conflict and want this functionality, please use My Mod Support Form to let me know.

Related Mods

  1. The Mod Settings Blocks mod packages this mod's options into what I call a "Mod Settings Block", which is a set of form fields that formatted and labeled so that it stands out among other options in an Admin>>Setting form. Mod Settings Blocks is a prerequisite for this mod; it must be installed before this mod can be installed.
  2. An Inner Mod Menu, which provides handy links from TNG pages directly to mod documentation and a mod's Mods Settings Block. (Inner Mod Menus are visible only to TNG Admins; never to end users.)
  3. The Mods Used feature, which captures a list of mods that affected the code used to display a TNG page. (This is analogous to the Mod Manager Analyzer feature that reports which mods affect a given TNG file, but that applies at run-time.

This mod is compatible with, and part of, My "Regroup Person" family of mods.    [Show the family members]

[Hide details]

My "Regroup Person" family of mods all affect the Person Profile. All of them can be used independently of Regroup Person Profile, which was the the first and is the most complex member of the family.(I'll add that the reputation of the family has been stained by the fact that Regroup Person Profile is distinctly complex and is incompatible with an awkward number of other Person Profile mods. But, in truth, Regroup Person Profile and Regroup Person-Date Place is are the family members that are particularly complex or invasive.)

  1. Regroup Person Profile - Rearranges the data in and spacing and formatting of the Person Profile. Also (optionally) adds siblings.
  2. Regroup Person-Branch Members - Turns each of the profiled person's branch names into a hyperlink that pops up a list of branch members. Options control whether anonymous visitors and/or logged-in users are allowed to see branch details.
  3. Regroup Person-Child2Parent - Hides the display of selected relationships (typically "birth", which would be assumed if it were not displayed) between the profiled person and that person's parents and children.
  4. Regroup Person-Date Place - Adjusts the spacing used to display (1) Event dates, places, and values and/or (2) The name/birth/death/age data for the profiled person's relatives.
  5. Regroup Person-Family Indicators - Based on Jeff Robison's Family Indicators Mod, this mod adds flags (i.e. "indicators") next to the names of the profiled person's relatives. The flags provide information about and links to several aspects of those relatives' relatives, including popup profiles and ancestor or descendant charts.
  6. Regroup Person-Gender Before Birth - Simply moves the Gender "event" so that it appears above the Birth event. (As you would expect, this mod is incompatible with Regroup Person-Remove Gender)
  7. Regroup Person-Hide Branches - Hides branch names from anonymous visitors and/or logged-in users who are not assigned to the branch.
  8. Regroup Person-Move Media - Simply moves the media files above the event map.
  9. Regroup Person-No Living Data - Suppresses display of ANY data about a living or private person the user doesn't have rights to see. By default, TNG will show some data, plus spouses, parents, and children.
  10. Regroup Person-Remove Gender - Removes the Gender event (the sex) from the event tables, leaving the gender icon next to the name as the sole representation of the person's gender. (As you would expect, this mod is incompatible with Regroup Person-Gender Before Birth)
  11. Regroup Person-Sources - Allows some source and citation data to be hidden for brevity, and to be displayed as desired.
[Hide the list of Regroup Person mods]

Installation

This mod includes a typical mod subfolder, with the same base name as the mod's .cfg file. The subfolder is atypical in that no files in it are installed to working TNG folders. However, it does contain critical files that contain the mod's language strings, which the mod does not add to standard cust_text.php files. Instead, the PHP code modified by this mod loads the language strings from files in the mod's languages/ subfolder. Read more about this technique.


[Show Standard Installation Process]

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup files listed in the panel on the right.

Procedure

  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.

Problems?

  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.
[Hide Details]

Visualizations

BEFORE: Parent-to-child Regroup person-parent rel-before.png
AFTER: Parent-to-child

Note that the "Relationship" events are omitted.

Regroup person-parent rel-after.png
BEFORE: Child-to-parent
When the relationship is the same to both parents, the relationship is displayed once.
Child2parent-before-c2p.jpg
AFTER: Child-to-parent
The first child's relationship message is suppressed; the second child's message is essentially the same.

Note that the "Relationship" events are omitted.

Child2parent-after-c2p.jpg
The Inner Mod Menu

This illustrates the Inner Mod Menu in the Person Profile, on a site where four mods that define Inner Mod Menus have been installed. The Regroup Person-Child2Parent entry in the menu contains

  1. A link to the TNG Wiki article (through the Wiki logo)
  2. A link to the "Mod Options" section of that Wiki article
  3. A link that pops up a brief description of what the mod did to the page. That popup is shown in the screenshot
Child2parent-innermodmenu.jpg
The Mod Settings Block

A Mod Settings Block is an outlined subform within an Admin>>Setup program that contains the options for a single mod. What is most notable about a Mod Settings Block is that a hyperlink directly to a Mod Settings Block displays only that block (i.e. only one mod's options), not all of the other options in the form or subform.

Child2parent-modsettingsblock.jpg

Revision History

Mod Version TNG Version Date Note
Regroup Person-Child2Parent v13.0.0.19c 13 19 Nov 2020 This mod is now compatible with Collapse Family Children, but only if Collapse Family Children is installed first. Regroup Person-Child2Parent v13.0.0.19b 13 10Oct2020 Upgraded to TNGv13 and fixed the display of Child-to-Parent relationships. Parent-to-Child relations specified by the mod options were being properly suppressed, but Child-to-Parent relationships were never being displayed.
Regroup Person-Child2Parent v12.0.0.19 12.0-12.3 31 May2020 No functional changes.
  1. Renamed the mod
  2. Moved moved the mod's options to a [[Mod Settings Blocks|Mod Settings Block]
  3. Jumped to version 19 to stay in sync with other Regroup Person* mods
  4. Added an Inner Mod Menu
Regroup Person-Parent Rel v12.0.0.16b 12.0+ 24Jul2018 No functional changes; made compatible with TNGv12.
11.0.1.16b 10.0.1-11.1.2+ 19 Dec 2017 Updated for new TNG version
10.0.1.16 & 11.0.0.16 10.0.1-11.0 28Mar2016 Implemented a mod parameter to provide flexibility in choosing which relationship values to suppress.

Also, for TNGv11, this mod handles the display of Parent/Child relationshps in the list of children.

10.0.1.15 10.0.1-10.1.3 20Feb2016 No new end-user functionality; just added Show Mod Names functionality and dependency, and updated the mod number to stay in sync with Regroup Person Profile.
10.0.1.12 10.0.1-10.1.3 26Dec2014 Initial release; separated this mod from the larger Regroup Person Profile mod to reduce the chances and consequences of that mod running into conflicts.

Sites using this mod

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

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer Regroup Person-Child2Parent 13.0.0.19c 13 English
Martius Family Hendrik Martius Half public Regroup Person-ParentRel 11.0.1.16b 12.0.1 DE, EN, FR, NL
Baza danych Rodziny Jarocińskich Michał Jarociński Non-public site v12.0.0.19 12.3, T7 PL, EN
Vitter-Weaver Genealogy Jeffrey Vitter Public site 13.0.0.19c 13.0.1 EN, FR