Difference between revisions of "Count Descendants"

From TNG_Wiki
Jump to navigation Jump to search
(add mod user site)
(9 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
| mod_validation  =  
 
| mod_validation  =  
 
| mod_last_update = 25 Oct 2018
 
| mod_last_update = 25 Oct 2018
| download_link  =  [[Media:count_descendants_v12.0.0.10.zip|v12.0.0.10]]{{Tv120}}
+
| download_link  =  [[Media:count_descendants_v12.0.0.10a.zip|v12.0.0.10a]]{{Tv120}}
 
<div>See the [[#Revision_History|Revision History]]</div>
 
<div>See the [[#Revision_History|Revision History]]</div>
 
| download_stats  =
 
| download_stats  =
Line 11: Line 11:
 
| mod_contact    = [http://robinrichmond.com//family/mod_support.php My Mod Support form]
 
| mod_contact    = [http://robinrichmond.com//family/mod_support.php My Mod Support form]
 
| mod_support    = [http://robinrichmond.com//family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums]
 
| mod_support    = [http://robinrichmond.com//family/mod_support.php My Mod Support form] or [http://tng.community/ TNG Community Forums]
| mod_version    = 12.0.0.10
+
| mod_version    = 12.0.0.10a
 
| min_TNG_ver    = 12
 
| min_TNG_ver    = 12
 
| max_TNG_ver    = at least 12.0.2
 
| max_TNG_ver    = at least 12.0.2
 
 
|  TNG_file_list  = descend.php, descendtext.php, desctracker.php, register.php, tngrobots.php, English pedconfig_help.php, English, Danish, German, and Dutch cust_text.php<br />
 
|  TNG_file_list  = descend.php, descendtext.php, desctracker.php, register.php, tngrobots.php, English pedconfig_help.php, English, Danish, German, and Dutch cust_text.php<br />
 
'''Installs''' rrcount_descendants.php
 
'''Installs''' rrcount_descendants.php
Line 21: Line 20:
 
}}
 
}}
 
== Purpose of the Mod ==
 
== Purpose of the Mod ==
{| style="margin-right:0.5 em;" align="right"
+
To implement a new chart that contains:
| __TOC__
+
* First and foremost, a table of counts of a person's descendants, broken out by generation,
|}
 
To implement a new chart that contains a table of counts of a person's descendants, broken out by generation, plus
 
 
* The number of ''living'' people in each generation,
 
* The number of ''living'' people in each generation,
* The birth year range of descendants (not spouses) for each generation,
+
* The birth year range of descendants (not spouses) for each generation, and
* Summary counts and lists
+
* Summary counts and lists:
 
** The count and a list of marriages between cousins,
 
** The count and a list of marriages between cousins,
 
** The count and a list of spouses who married more than one descendant,
 
** The count and a list of spouses who married more than one descendant,
 
** The count and a list of descendants who have two sets of parents among the descendants,
 
** The count and a list of descendants who have two sets of parents among the descendants,
** The count of descendant surnames, and a Surname Cloud.
+
** The count of descendant surnames, and a Surname Cloud,
** The count of descendants' spouses' surnames, and a Surname Cloud.
+
** The count of descendants' spouses' surnames, and a Surname Cloud,
 
** A table of descendant surname counts, by generation.
 
** A table of descendant surname counts, by generation.
 
+
{| style="margin-right:0.5 em;" align="right"
 +
| __TOC__
 +
|}
 
== Notes ==
 
== Notes ==
 
#* '''Installs''': This mod installs a new PHP program (rrcount_descendants.php) that generates the Descendant Count chart.
 
#* '''Installs''': This mod installs a new PHP program (rrcount_descendants.php) that generates the Descendant Count chart.
#* '''Innermenu Links from Native Programs''': This mod Places a link to the Descendant Count program in the Inner Menu of all of the native Descendant Chart programs, e.g. <code style='background-color:slategrey; color:white; white-space:nowrap'>Standard | Compact | Text | Register | PDF | Count</code>.
 
 
# '''Cousins who marry''': When cousins marry, their descendants are displayed twice by the native TNG descendant charts, but the Count Descendants program counts them only once.  
 
# '''Cousins who marry''': When cousins marry, their descendants are displayed twice by the native TNG descendant charts, but the Count Descendants program counts them only once.  
 
# '''Count of unique people''': When cousins marry, they are counted both as a descendant and as a spouse. But the chart shows the count (and a list) of marriages between cousins, so this duplication can be erased by subtracting the count of marriages between cousins from the Total number of descendants and spouses.
 
# '''Count of unique people''': When cousins marry, they are counted both as a descendant and as a spouse. But the chart shows the count (and a list) of marriages between cousins, so this duplication can be erased by subtracting the count of marriages between cousins from the Total number of descendants and spouses.
 
# '''Descendants adopted by a subsequent spouse''': When a descendant has a child and remarries, and the second spouse adopts the child, that child will be listed twice in descendancy charts, but will be counted only once in the Count Descendants chart. If there are any children in this situation, the count will be shown below the results table  
 
# '''Descendants adopted by a subsequent spouse''': When a descendant has a child and remarries, and the second spouse adopts the child, that child will be listed twice in descendancy charts, but will be counted only once in the Count Descendants chart. If there are any children in this situation, the count will be shown below the results table  
 
# '''Spouses who marry more than one descendant''': When this occurs, the spouse is counted only once, and the count of such spouses is listed below the results table.
 
# '''Spouses who marry more than one descendant''': When this occurs, the spouse is counted only once, and the count of such spouses is listed below the results table.
 +
#* '''Innermenu Links from Native Programs''': This mod Places a link to the Descendant Count program in the Inner Menu of all of the native Descendant Chart programs, e.g. <code style='background-color:slategrey; color:white; white-space:nowrap'>Standard | Compact | Text | Register | PDF | Count</code>.
 
# '''Innermenu links to other descendant charts''': The native TNG Descendant Charts all pass their Generation count to any other native Descendant Charts when the second chart program is invoked from the first chart program's Innermenu.  But since the Count Descendants chart can quickly print more generations than most charts, the generation count specified in the Count Descendants chart is not always passed to the other program in its Innermenu:
 
# '''Innermenu links to other descendant charts''': The native TNG Descendant Charts all pass their Generation count to any other native Descendant Charts when the second chart program is invoked from the first chart program's Innermenu.  But since the Count Descendants chart can quickly print more generations than most charts, the generation count specified in the Count Descendants chart is not always passed to the other program in its Innermenu:
 
#** It passes the TNG system value "Initial Descendant Generations" ($pedigree['initdescgens']; typically equal to 4) to the PDF chart and the two variants of descend.php (Standard and Compact).
 
#** It passes the TNG system value "Initial Descendant Generations" ($pedigree['initdescgens']; typically equal to 4) to the PDF chart and the two variants of descend.php (Standard and Compact).
Line 76: Line 75:
 
<div class='mw-customtoggle-rm1 mw-customtoggle-rm2' style='text-decoration:underline;text-align:right; color:blue;'>&#91;Hide the '''Related Mods''' Section&#93;</div></div>
 
<div class='mw-customtoggle-rm1 mw-customtoggle-rm2' style='text-decoration:underline;text-align:right; color:blue;'>&#91;Hide the '''Related Mods''' Section&#93;</div></div>
  
== Compatibility with other mods ==
+
== Compatibility ==
 
No conflicts that I know of.  Most of the installation problems that have been reported to me have been caused by the cust_text.php issue described in the notice at the top of this Wiki article.
 
No conflicts that I know of.  Most of the installation problems that have been reported to me have been caused by the cust_text.php issue described in the notice at the top of this Wiki article.
 
   
 
   
Line 83: Line 82:
  
 
== Visualizations ==
 
== Visualizations ==
This is a new chart, so there is no 'Before' visualization for the chart.  
+
This mod creates new programs, so there is no 'Before' visualization.
 
{| border="2" cellspacing="0" cellpadding="2" class="wikitable"
 
{| border="2" cellspacing="0" cellpadding="2" class="wikitable"
 
|-
 
|-
 
|'''1. A screenshot of the chart'''
 
|'''1. A screenshot of the chart'''
* <span style='color:orange'>Because there are more than 10 generations of Kuykendall descendants, and the user select '10' in the 'Generations' field, the message "There are more descendants" is displayed just below the results table.</span>
+
* <span style='color:orangered;'>Because there are more than 10 generations of Kuykendall descendants, and the user select '10' in the 'Generations' field, the message "There are more descendants" is displayed just below the results table.</span>
* <span style='color:purple;'>The rightmost five columns in the results table were introduced with mod version 10. They hold counts of Living people in each generation, and the birth year date rage (among descendants only) for each generation.</span>  
+
* <span style='color:purple;'>The rightmost four columns in the results table were introduced with mod version 10. They hold counts of Living people in each generation, and the birth year date rage (among descendants only) for each generation. The two checkboxes in the third line of the Innermenu display and hide these new columns. (They are displayed by default.)</span>  
 
* <span style='color:sienna;'>The count of two living descendants in generation 8 (where the birth year range is 1835-1904) is an indication of data errors. A SQL query to find people who should not be marked as "Living" is listed below in [[#SQL_Queries|the SQL Queries section of this article]].</span>  
 
* <span style='color:sienna;'>The count of two living descendants in generation 8 (where the birth year range is 1835-1904) is an indication of data errors. A SQL query to find people who should not be marked as "Living" is listed below in [[#SQL_Queries|the SQL Queries section of this article]].</span>  
 
* <span style='color:red'>Descendants who marry a cousin are counted as both a descendant and as a spouse - and are counted and listed with the heading "Marriages between cousins".  The actual number of people in the chart is the Total outlined in red (1266) minus the number of "Marriages between cousins" (5; also outined in red), or 1261.</span>
 
* <span style='color:red'>Descendants who marry a cousin are counted as both a descendant and as a spouse - and are counted and listed with the heading "Marriages between cousins".  The actual number of people in the chart is the Total outlined in red (1266) minus the number of "Marriages between cousins" (5; also outined in red), or 1261.</span>
 
* <span style='color:green'>Each count and "Show Them" button below the results table is shown only if the count is not zero.</span>
 
* <span style='color:green'>Each count and "Show Them" button below the results table is shown only if the count is not zero.</span>
 
|-
 
|-
| [[Image:count_descendants12-after.jpg]]
+
| [[Image:count_descendants10a-after.jpg]]
 
|-
 
|-
 
|'''2. Some details from the counts below the results table'''<br>
 
|'''2. Some details from the counts below the results table'''<br>
 
The first two "Show them" buttons have been clicked. Note that "Descendants who married cousins" always come in pairs.  The details link to the family record and to each spouse's record.
 
The first two "Show them" buttons have been clicked. Note that "Descendants who married cousins" always come in pairs.  The details link to the family record and to each spouse's record.
 
|-
 
|-
| [[Image:count_descendants12-after2.jpg]]
+
| [[Image:count_descendants10a-after2.jpg]]
 
|-
 
|-
 
|'''3. More details from the counts below the results table'''<br/>
 
|'''3. More details from the counts below the results table'''<br/>
 
This screenclip shows the descendant surname cloud (with 79 names), and a portion of the pop-up panel that results from clicking on the name "HUTCHESON". In the pop-up panel, you can see that not all of my surnames are fully capitalized. In the data, I only capitalize my ancestors' surnames.  But to avoid confusion between "MACINTYRE", "Macintyre" and, "MacIntyre", the Count Descendants chart uses all-caps for all surnames.
 
This screenclip shows the descendant surname cloud (with 79 names), and a portion of the pop-up panel that results from clicking on the name "HUTCHESON". In the pop-up panel, you can see that not all of my surnames are fully capitalized. In the data, I only capitalize my ancestors' surnames.  But to avoid confusion between "MACINTYRE", "Macintyre" and, "MacIntyre", the Count Descendants chart uses all-caps for all surnames.
 
|-
 
|-
| [[Image:count_descendants12-after3-cloud.jpg]]
+
| [[Image:count_descendants10a-after3-cloud.jpg]]
 
|-
 
|-
 
|'''4. <span style="color: red"> AFTER:</span> A portion of the Surname Counts by Generation'''
 
|'''4. <span style="color: red"> AFTER:</span> A portion of the Surname Counts by Generation'''
Line 112: Line 111:
 
You can see the new option "Count", and the help icon. When you mouse over the help icon, the text "New Option(s)" is displayed.
 
You can see the new option "Count", and the help icon. When you mouse over the help icon, the text "New Option(s)" is displayed.
 
|-
 
|-
| [[Image:count_descendants12-options.jpg]]
+
| [[Image:count_descendants10a-options.jpg]]
 
|}
 
|}
  
Line 119: Line 118:
 
|-
 
|-
 
! Mod Version !! TNG Version !! Date !! Note
 
! Mod Version !! TNG Version !! Date !! Note
|-  
+
|- style="vertical-align:top;"
| [[Media:count_descendants_v12.0.0.10.zip|v12.0.0.10]]
+
| [[Media:count_descendants_v12.0.0.10a.zip|v12.0.0.10a]]
 
| 12.0 - 12.0.2+
 
| 12.0 - 12.0.2+
| 9 Nov 2018
+
| 9Nov2018
| 1. Counts of living people (by generation) and the range of descendants' birth years (by generation) have been added in new columns in the table of descendant counts.<br>
+
|
2. The strategy for passing the number of generations processed by Count Descendants to the other Descendant Inner Menu programs has changed, as described in the [[#Notes|Notes section]] above.
+
Counts of living people (by generation) have been added in new columns in the table of descendant.
3. The phrase "Descendant Count for" has been added to the name in the page title, and the page heading.  
+
#  The range of descendants' birth years (by generation) has been added in a new column in the table of descendant counts.
|-  
+
# The strategy for passing the number of generations processed by Count Descendants to the other Descendant Inner Menu programs has changed, as described in the [[#Notes|Notes section]] above.
 +
# The phrase "Descendant Count for" has been added to the name in the page title, and the page heading.
 +
# (The short-lived version 10 didn't display the new column headings correctly in all templates.)
 +
|- style="vertical-align:top;"
 
| [[Media:count_descendants_v12.0.0.9a.zip|v12.0.0.9a]]
 
| [[Media:count_descendants_v12.0.0.9a.zip|v12.0.0.9a]]
 
| 12.0 - 12.0.2+
 
| 12.0 - 12.0.2+
 
| 25 Oct 2018
 
| 25 Oct 2018
 
| Added surname clouds and a breakdown of descendant surname clouds by generation.  Also replaced my little blue information icon style with the new image that was distributed with TNGv12. (See the last visualization above.) The mod is now fully compatible with TNGv12, and, as described above, coordinates more closely with [[TextPlus Charts|TextPlus Charts v15]].
 
| Added surname clouds and a breakdown of descendant surname clouds by generation.  Also replaced my little blue information icon style with the new image that was distributed with TNGv12. (See the last visualization above.) The mod is now fully compatible with TNGv12, and, as described above, coordinates more closely with [[TextPlus Charts|TextPlus Charts v15]].
|-
+
|- style="vertical-align:top;"
 
| [[Media:count_descendants_v10.1.0.7c.zip|v10.1.0.7c]]
 
| [[Media:count_descendants_v10.1.0.7c.zip|v10.1.0.7c]]
 
| 10.1 - 11.1.2+
 
| 10.1 - 11.1.2+
 
| 25 Jan 2018
 
| 25 Jan 2018
 
| Again, no functional changes; just removed the second line of cust_text.php target location strings for compatibility with anticipated changes in TNGv12.
 
| Again, no functional changes; just removed the second line of cust_text.php target location strings for compatibility with anticipated changes in TNGv12.
|}
 
<div class='mw-collapsible mw-collapsible-content mw-customtoggle-rh1 mw-customtoggle-rh2' id='mw-customcollapsible-rh1' style='text-decoration:underline;color:blue;'>&#91;Show Older Versions&#93;</div>
 
<div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-rh2'>
 
<div class='mw-customtoggle-rh1 mw-customtoggle-rh2' style='text-decoration:underline;color:blue;'>&#91;Hide Older Versions&#93;</div>
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
|-
 
! Mod Version !! TNG Version !! Date !! Note
 
|-
 
| [[Media:count_descendants_v10.1.0.7b.zip|v10.1.0.7b]]
 
| 10.1 - 11.1.2+
 
| 11 Jun 2017
 
| No real function changes; just changed the font size of the help button and hyperlink on the Admin>>Options>Charts screen.
 
|-
 
| v7a
 
| 10.1+
 
| 10 May 2017
 
| No real function changes
 
# Followed Roger Mitchell's suggestion to add borders to the results table.
 
# Added a mod Parameter that can suppress the border & heading styling.
 
# Eliminated the language .cfg file by moving the German and Dutch strings to this file.
 
# [[Show Mod Names]] is now optional, and a style class was defined in an embedded style sheet to remove a dependency on Blue Info Button
 
|-
 
| Count Descendants v6
 
| 10.0 - 10.0.3
 
| 25 May 2015
 
| Moved the "Count" innermenu link from before the "PDF" link to the end of the inner menu, to avoid conflicts with a new mod.<br/>Added a right-justified footer that displays the program name and version number.<br/> For the TNGv10 variant only, fixed the database calls that were broken in v5 of the mod. [[Media:count_descendants-languages_v10.0.0.5.zip|Download Modv6 for TNGv10.0]
 
|-
 
| Languages v5
 
| 10.0 - 10.1.1
 
| 25 May 2015
 
| Small changes to German translation; added HTML entities to German non-UTF8.
 
|-
 
| Count Descendants v5
 
| 10.0 - 10.1.1
 
| 1 May 2015
 
| Martin Pannier found two HTML typos that caused the copyright footer to be mispositioned.
 
|-
 
| v4a & languages file
 
| 10.0 - 10.1.1
 
| 30 Apr 2015
 
| - The base mod with English strings is unchanged.<br/>
 
- The Danish, German, and Dutch translations are in a separate file.
 
- The
 
- Adds the option in Administration >> Setup >> Charts to allow Count Descendants to be the default descendants chart, and<br/>
 
- Torben Devantie added Danish translations
 
|-
 
| v4
 
| 10.0 - 10.1.1
 
| 18 Apr 2015
 
| - A new, more understandable (and more translatable) way of displaying special counts below the table of descendant counts,<br/>
 
- Handles Danish terminology that counts great*(n)grandparents differently,<br/>
 
- Adds the option in Administration >> Setup >> Charts to allow Count Descendants to be the default descendants chart, and<br/>
 
- Torben Devantie added Danish translations
 
|-
 
| v3
 
| 10.0 - 10.1.1
 
| 15 Apr 2015
 
| Eliminated the duplicates caused when cousins marry each other, and displays other duplicates.
 
|-
 
| v2
 
| 10.0 - 10.1.1
 
| 12Apr2015
 
| Bernard Wortelboer added Dutch translations and caught some untranslated strings.
 
|-
 
| v1
 
| 10.0 - 10.1
 
| 4Apr2015
 
| Initial Release
 
<div class='mw-customtoggle-rh1 mw-customtoggle-rh2' style='text-decoration:underline;text-align:right; color:blue;'>&#91;Hide Older Versions&#93;</div></div>
 
 
|}
 
|}
 
== Sites using this mod ==
 
== Sites using this mod ==
Line 265: Line 198:
 
| 12.0.0.9a
 
| 12.0.0.9a
 
| 12.0.2
 
| 12.0.2
 +
| EN
 +
|-
 +
| [http://genealogy.oceanwharf.com Hooley Family Links]
 +
| [[User: lastejas|Rick Hooley]]
 +
| Public/Private
 +
| [[User: lastejas|See Here]]
 +
| [[User: lastejas|See Here]]
 
| EN
 
| EN
 
|-
 
|-
Line 277: Line 217:
 
| [[User:Tngrlkrz|Ron Krzmarzick]]
 
| [[User:Tngrlkrz|Ron Krzmarzick]]
 
| Public & Private
 
| Public & Private
| 10.1.0.7c
+
| 12.0.0.10a
| 12.0.0.9
+
| 12.0.2
 
| EN,DE,CS,ES
 
| EN,DE,CS,ES
 
|-
 
|-
Line 288: Line 228:
 
| FR
 
| FR
 
|-
 
|-
 +
| [https://martius-familie.de Martius Genealogy]
 +
| [[User:hemar|Hendrik Martius]]
 +
| Public/Private
 +
| 12.0.0.10a
 +
| 12.0.3
 +
| DE, EN, NL, FR
 +
|-
 +
| [https://thrushfamily.com Journeys in Genealogy]
 +
| [[User:PapaTango|Patrick Thrush]]
 +
| Public WordPress/TNG bundle
 +
| 12.0.0.1a
 +
| 12.0.3
 +
| English
 
|}
 
|}
 +
<div class='mw-collapsible mw-collapsible-content mw-customtoggle-rh1 mw-customtoggle-rh2' id='mw-customcollapsible-rh1' style='text-decoration:underline;color:blue;'>&#91;Show Older Versions&#93;</div>
 +
<div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-rh2'>
 +
<div class='mw-customtoggle-rh1 mw-customtoggle-rh2' style='text-decoration:underline;color:blue;'>&#91;Hide Older Versions&#93;</div>
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
! Mod Version !! TNG Version !! Date !! Note
 +
|- style="vertical-align:top;"
 +
| [[Media:count_descendants_v10.1.0.7b.zip|v10.1.0.7b]]
 +
| 10.1 - 11.1.2+
 +
| 11 Jun 2017
 +
| No real function changes; just changed the font size of the help button and hyperlink on the Admin>>Options>Charts screen.
 +
|- style="vertical-align:top;"
 +
| v7a
 +
| 10.1+
 +
| 10 May 2017
 +
| No real function changes
 +
# Followed Roger Mitchell's suggestion to add borders to the results table.
 +
# Added a mod Parameter that can suppress the border & heading styling.
 +
# Eliminated the language .cfg file by moving the German and Dutch strings to this file.
 +
# [[Show Mod Names]] is now optional, and a style class was defined in an embedded style sheet to remove a dependency on Blue Info Button
 +
|- style="vertical-align:top;"
 +
| Count Descendants v6
 +
| 10.0 - 10.0.3
 +
| 25 May 2015
 +
| Moved the "Count" innermenu link from before the "PDF" link to the end of the inner menu, to avoid conflicts with a new mod.<br/>Added a right-justified footer that displays the program name and version number.<br/> For the TNGv10 variant only, fixed the database calls that were broken in v5 of the mod. [[Media:count_descendants-languages_v10.0.0.5.zip|Download Modv6 for TNGv10.0]
 +
|- style="vertical-align:top;"
 +
| Languages v5
 +
| 10.0 - 10.1.1
 +
| 25 May 2015
 +
| Small changes to German translation; added HTML entities to German non-UTF8.
 +
|- style="vertical-align:top;"
 +
| Count Descendants v5
 +
| 10.0 - 10.1.1
 +
| 1 May 2015
 +
| Martin Pannier found two HTML typos that caused the copyright footer to be mispositioned.
 +
|-
 +
| v4a & languages file
 +
| 10.0 - 10.1.1
 +
| 30 Apr 2015
 +
| - The base mod with English strings is unchanged.<br/>
 +
- The Danish, German, and Dutch translations are in a separate file.
 +
|-
 +
| v4
 +
| 10.0 - 10.1.1
 +
| 18 Apr 2015
 +
| - A new, more understandable (and more translatable) way of displaying special counts below the table of descendant counts,<br/>
 +
- Handles Danish terminology that counts great*(n)grandparents differently,<br/>
 +
- Adds the option in Administration >> Setup >> Charts to allow Count Descendants to be the default descendants chart, and<br/>
 +
- Torben Devantie added Danish translations
 +
|-
 +
| v3
 +
| 10.0 - 10.1.1
 +
| 15 Apr 2015
 +
| Eliminated the duplicates caused when cousins marry each other, and displays other duplicates.
 +
|-
 +
| v2
 +
| 10.0 - 10.1.1
 +
| 12Apr2015
 +
| Bernard Wortelboer added Dutch translations and caught some untranslated strings.
 +
|-
 +
| v1
 +
| 10.0 - 10.1
 +
| 4Apr2015
 +
| Initial Release
 +
<div class='mw-customtoggle-rh1 mw-customtoggle-rh2' style='text-decoration:underline;text-align:right; color:blue;'>&#91;Hide Older Versions&#93;</div></div>
 +
|}
 +
 +
 
[[Category:Mods for TNG v12]]
 
[[Category:Mods for TNG v12]]
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]

Revision as of 11:25, 16 February 2019


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


Count Descendants
Summary Counts the descendants of a person, and prints a report broken down by generation.
Validation
Mod Updated 25 Oct 2018
Download link v12.0.0.10a
TNG 12.0
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 12.0.0.10a
Min TNG V 12
Max TNG V at least 12.0.2
Files modified
descend.php, descendtext.php, desctracker.php, register.php, tngrobots.php, English pedconfig_help.php, English, Danish, German, and Dutch cust_text.php
Installs rrcount_descendants.php
Related Mods
Notes


Purpose of the Mod

To implement a new chart that contains:

  • First and foremost, a table of counts of a person's descendants, broken out by generation,
  • The number of living people in each generation,
  • The birth year range of descendants (not spouses) for each generation, and
  • Summary counts and lists:
    • The count and a list of marriages between cousins,
    • The count and a list of spouses who married more than one descendant,
    • The count and a list of descendants who have two sets of parents among the descendants,
    • The count of descendant surnames, and a Surname Cloud,
    • The count of descendants' spouses' surnames, and a Surname Cloud,
    • A table of descendant surname counts, by generation.

Notes

    • Installs: This mod installs a new PHP program (rrcount_descendants.php) that generates the Descendant Count chart.
  1. Cousins who marry: When cousins marry, their descendants are displayed twice by the native TNG descendant charts, but the Count Descendants program counts them only once.
  2. Count of unique people: When cousins marry, they are counted both as a descendant and as a spouse. But the chart shows the count (and a list) of marriages between cousins, so this duplication can be erased by subtracting the count of marriages between cousins from the Total number of descendants and spouses.
  3. Descendants adopted by a subsequent spouse: When a descendant has a child and remarries, and the second spouse adopts the child, that child will be listed twice in descendancy charts, but will be counted only once in the Count Descendants chart. If there are any children in this situation, the count will be shown below the results table
  4. Spouses who marry more than one descendant: When this occurs, the spouse is counted only once, and the count of such spouses is listed below the results table.
    • Innermenu Links from Native Programs: This mod Places a link to the Descendant Count program in the Inner Menu of all of the native Descendant Chart programs, e.g. Standard | Compact | Text | Register | PDF | Count.
  5. Innermenu links to other descendant charts: The native TNG Descendant Charts all pass their Generation count to any other native Descendant Charts when the second chart program is invoked from the first chart program's Innermenu. But since the Count Descendants chart can quickly print more generations than most charts, the generation count specified in the Count Descendants chart is not always passed to the other program in its Innermenu:
      • It passes the TNG system value "Initial Descendant Generations" ($pedigree['initdescgens']; typically equal to 4) to the PDF chart and the two variants of descend.php (Standard and Compact).
      • It passes its generation count to the remaining native charts (text, register), etc.), but only if its generation count is no more than the TNG system variable for the maximum number of descendant generations ($pedigree['maxdesc']; usually equal to 12).
      • It passes its generation count in full to the "Male Lines" and "Female Lines" charts (from Male Female and Parent Lines) and the TextPlus Descendant chart (from TextPlus Charts) -- if they are installed.

Related Mods

[Show Content]
[Hide this Section]

TextPlus Charts

First, if you want to use both Count Descendants and TextPlus Charts, you should install Count Descendants v9 and TextPlus Charts v15

This mod coordinates with TextPlus Charts v15 in two distinct ways.

  1. Inner menu links:
    • The Count Descendants chart program installed by this mod contains a link to the Text+ Descendant chart. That link is displayed only if the TextPlus Charts mod is installed.
    • Similarly, the Text+ Descendant Chart installed by TextPlus Charts contains a link to the Count Descendants chart, and that link is displayed only if the this mod (Count Descendants is installed.
  2. The Admin >> Setup >> Chart Settings form
    Both mods add
    (1) An option to the "Initial Display" selection box in the "Descendancy Chart" section of the Chart Settings form, and
    (2) A help link next to that selection box
    The two mods coordinate over that help link in two ways:
    1. Both mods insert nearly-identical Javascript (document).ready functions that install the help link only if the other (document).ready function installed by the other mod has not already created the link, and
    2. Both mods add text to the Chart Setting help file describing the choice(s) they add to the Chart Settings form.
      Technical detail: The two help file links to the help text necessarily use different anchors in the Chart Settings help file, and that only one of the two help file links get created. However, since both new blocks of text are small, and at the bottom of the help file, the text created by both mods should be visible no matter which link has been created and followed by a user.

Male Female and Parent Lines

The Inner Menu of the Text+ Descendant chart contains links to the "Male Lines" and "Female Lines" variants of the native Text Descendant chart. Those links are visible only if Male Female and Parent Lines has been installed.

The Male Female and Parent Lines mod modifies the native Text Descendant chart program descendtext.php, and uses that modified program to generate the new "Male Lines" and "Females Lines" charts. Since Count Descendants adds a "Count" link to descendtext.php, the "Male Lines" and "Female Lines" charts , in essence, automatically link to the Count Descendants chart.

Show Mod Names

Like almost all of my mods, the code installed by TextPlus Charts collects information that can be used by Show Mod Names, but only if Show Mod Names is installed. TextPlus Charts is not dependent on Show Mod Names.

[Hide the Related Mods Section]

Compatibility

No conflicts that I know of. Most of the installation problems that have been reported to me have been caused by the cust_text.php issue described in the notice at the top of this Wiki article.

Installation

This mod has a subfolder whose name matches the zip file. Be sure that you copy the subfolder to your mod folder along with the .cfg file. [Show Installation Details]

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

This mod creates new programs, so there is no 'Before' visualization.

1. A screenshot of the chart
  • Because there are more than 10 generations of Kuykendall descendants, and the user select '10' in the 'Generations' field, the message "There are more descendants" is displayed just below the results table.
  • The rightmost four columns in the results table were introduced with mod version 10. They hold counts of Living people in each generation, and the birth year date rage (among descendants only) for each generation. The two checkboxes in the third line of the Innermenu display and hide these new columns. (They are displayed by default.)
  • The count of two living descendants in generation 8 (where the birth year range is 1835-1904) is an indication of data errors. A SQL query to find people who should not be marked as "Living" is listed below in the SQL Queries section of this article.
  • Descendants who marry a cousin are counted as both a descendant and as a spouse - and are counted and listed with the heading "Marriages between cousins". The actual number of people in the chart is the Total outlined in red (1266) minus the number of "Marriages between cousins" (5; also outined in red), or 1261.
  • Each count and "Show Them" button below the results table is shown only if the count is not zero.
Count descendants10a-after.jpg
2. Some details from the counts below the results table

The first two "Show them" buttons have been clicked. Note that "Descendants who married cousins" always come in pairs. The details link to the family record and to each spouse's record.

Count descendants10a-after2.jpg
3. More details from the counts below the results table

This screenclip shows the descendant surname cloud (with 79 names), and a portion of the pop-up panel that results from clicking on the name "HUTCHESON". In the pop-up panel, you can see that not all of my surnames are fully capitalized. In the data, I only capitalize my ancestors' surnames. But to avoid confusion between "MACINTYRE", "Macintyre" and, "MacIntyre", the Count Descendants chart uses all-caps for all surnames.

Count descendants10a-after3-cloud.jpg
4. AFTER: A portion of the Surname Counts by Generation
Count descendants12-after4-surnamecounts.jpg
5. AFTER: Admin>>Setup>>Chart Settings options form

You can see the new option "Count", and the help icon. When you mouse over the help icon, the text "New Option(s)" is displayed.

Count descendants10a-options.jpg

Revision History

Mod Version TNG Version Date Note
v12.0.0.10a 12.0 - 12.0.2+ 9Nov2018
  1. Counts of living people (by generation) have been added in new columns in the table of descendant.
  2. The range of descendants' birth years (by generation) has been added in a new column in the table of descendant counts.
  3. The strategy for passing the number of generations processed by Count Descendants to the other Descendant Inner Menu programs has changed, as described in the Notes section above.
  4. The phrase "Descendant Count for" has been added to the name in the page title, and the page heading.
  5. (The short-lived version 10 didn't display the new column headings correctly in all templates.)
v12.0.0.9a 12.0 - 12.0.2+ 25 Oct 2018 Added surname clouds and a breakdown of descendant surname clouds by generation. Also replaced my little blue information icon style with the new image that was distributed with TNGv12. (See the last visualization above.) The mod is now fully compatible with TNGv12, and, as described above, coordinates more closely with TextPlus Charts v15.
v10.1.0.7c 10.1 - 11.1.2+ 25 Jan 2018 Again, no functional changes; just removed the second line of cust_text.php target location strings for compatibility with anticipated changes in TNGv12.

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 10.1.0.7s 10.1.1 English
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.0.6 10.1.1 EN, DE
MOTYER Family Genealogy John Mark Motyer Public site see here see here EN, DE, RU
Wortelboer Genealogy Bernard Wortelboer Public site 10.1.0.6 11.0.0 NL, EN
DJCM.DK Claus Martinussen Public site 10.1.0.6 10.1.3 DA, EN
Kemp(e) Family History Andrew Kemp Public site see User:Kempons see User:Kempons EN
Kleinmann Genealogy John Kleinmann 12.0.0.9a 12.0.2 EN
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
An Aotearoa Genealogy Website Merv Priestley Public & Private, modified v10.1.0.7c 12.0.2 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private 12.0.0.10a 12.0.2 EN,DE,CS,ES
Racine d'Alsace J-Louis Valory Public/Private - T17 customized 12.0.0.9 12.0.2 FR
Martius Genealogy Hendrik Martius Public/Private 12.0.0.10a 12.0.3 DE, EN, NL, FR
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 12.0.0.1a 12.0.3 English
[Show Older Versions]
[Hide Older Versions]
Mod Version TNG Version Date Note
v10.1.0.7b 10.1 - 11.1.2+ 11 Jun 2017 No real function changes; just changed the font size of the help button and hyperlink on the Admin>>Options>Charts screen.
v7a 10.1+ 10 May 2017 No real function changes
  1. Followed Roger Mitchell's suggestion to add borders to the results table.
  2. Added a mod Parameter that can suppress the border & heading styling.
  3. Eliminated the language .cfg file by moving the German and Dutch strings to this file.
  4. Show Mod Names is now optional, and a style class was defined in an embedded style sheet to remove a dependency on Blue Info Button
Count Descendants v6 10.0 - 10.0.3 25 May 2015 Moved the "Count" innermenu link from before the "PDF" link to the end of the inner menu, to avoid conflicts with a new mod.
Added a right-justified footer that displays the program name and version number.
For the TNGv10 variant only, fixed the database calls that were broken in v5 of the mod. [[Media:count_descendants-languages_v10.0.0.5.zip|Download Modv6 for TNGv10.0]
Languages v5 10.0 - 10.1.1 25 May 2015 Small changes to German translation; added HTML entities to German non-UTF8.
Count Descendants v5 10.0 - 10.1.1 1 May 2015 Martin Pannier found two HTML typos that caused the copyright footer to be mispositioned.
v4a & languages file 10.0 - 10.1.1 30 Apr 2015 - The base mod with English strings is unchanged.

- The Danish, German, and Dutch translations are in a separate file.

v4 10.0 - 10.1.1 18 Apr 2015 - A new, more understandable (and more translatable) way of displaying special counts below the table of descendant counts,

- Handles Danish terminology that counts great*(n)grandparents differently,
- Adds the option in Administration >> Setup >> Charts to allow Count Descendants to be the default descendants chart, and
- Torben Devantie added Danish translations

v3 10.0 - 10.1.1 15 Apr 2015 Eliminated the duplicates caused when cousins marry each other, and displays other duplicates.
v2 10.0 - 10.1.1 12Apr2015 Bernard Wortelboer added Dutch translations and caught some untranslated strings.
v1 10.0 - 10.1 4Apr2015 Initial Release
[Hide Older Versions]