Difference between revisions of "Count Ancestors n Descendants"

From TNG_Wiki
Jump to navigation Jump to search
 
(145 intermediate revisions by 40 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{SupportNeeded}}
 +
{{restricted}}{{V12_cust_text}}{{caution |notes=
 +
This mod prevents [[Regroup Person Profile]] from installing. If you wish to also install [[Regroup Person Profile]] you need to install [[Count_Ancestors_n_Descendants]] mod after installing the [[Regroup Person Profile]] mod. You also must uninstall in the reverse order.}}{{TNGmod
 
| mod_name        = Count Ancestors (and) Descendants
 
| mod_name        = Count Ancestors (and) Descendants
| mod_summary    = Show number of AnD under the person's name in getperson.php
+
| mod_summary    = Show number of Ancestors and Descendants under the person's name in getperson.php
| mod_validation  =
+
| mod_validation  = n/a
| download_link = for {{Tv1011}}[https://xerxx.se/modSupport/click/click.php?id=2 Count Ancestors Descendants mod v10.1.1.2c.cfg.zip]
+
| mod_last_update = 9 Jan 2021
| download_stats = [https://xerxx.se/modSupport/click/index.php?action=stats&id=2 Count Ancestors Descendants mod v10.1.1.2c]
+
| download_link = for {{Tv130}}[https://xerxx.se/click3/click.php?id=11&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Count Ancestors n Descendants v13.0.0.5b.cfg.zip]<hr/>for {{Tv120}}{{Tv110}}{{Tv1011}}[https://xerxx.se/click3/click.php?id=10&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Count Ancestors n Descendants v10.1.1.5b.cfg.zip]
 +
| download_stats = [https://xerxx.se/click3/index.php?action=stats&groupid=5 Click here]
 
| mod_author      = Erik Hoppe
 
| mod_author      = Erik Hoppe
 
| mod_url        = [[Count Ancestors n Descendants]] (this page)
 
| mod_url        = [[Count Ancestors n Descendants]] (this page)
| mod_support    = [https://xerxx.se/modSupport/index.php?mod=5 My Mod Support]
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums:  TNG Specific - Code Discussion - Addons]
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=5 My Mod Support]
+
| mod_contact    =  
| mod_version    = 10.1.1.2c
+
| mod_version    = 10.1.1.5b - 13.0.0.5b
 
| min_TNG_ver    = 10.1.1
 
| min_TNG_ver    = 10.1.1
| max_TNG_ver    = 10.1.1
+
| max_TNG_ver    = 14.+
 
| TNG_file_list  = See [[Count_Ancestors_n_Descendants#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| TNG_file_list  = See [[Count_Ancestors_n_Descendants#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| related_mods    =
 
| related_mods    =
 
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/>Mods by me: [[User:XerxX|At my user page]].
 
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/>Mods by me: [[User:XerxX|At my user page]].
}}
+
}}{| style="margin-right:0.5 em;" align="right"  
{| style="margin-right:0.5 em;" align="right"  
 
 
| __TOC__
 
| __TOC__
 
 
|}
 
|}
== Preface ==
 
 
I want to upgrade my site (TNG v9.1.1) sometime after the summer and have set up a local test-v10.1.1 site. But as I want to keep all the functionality from all my hard-coded modifications, I have to write mods for v10.1.1.
 
 
Some of my mods may very well do the same things, or nearly, as other mods already posted.<br/>I'm not posting these mods to compete or compare or claim anything but as I'm writing them and they are tested, why not post them here?
 
 
My mods work ''exactly'' as I want them to and I know that they ''don't have conflicts'' with eachother, and '''that's''' why I prefer them before other mods, even if they do ''exactly'' the same thing.
 
 
If you like a mod that's great, if not; that's fine too.<br/>As I said: I'm not competing - just writing what I need and posting for anyone to use, modify or discard.
 
 
As i only have a local TNG v10 site, I can't show a live example of some of the mods. If you install one: Please add the URL to the ''Sites using this mod'' list at that page. '''Thank you'''.<br/>
 
(I link to my v9.1.1 site where the hard-coded versions can be seen)
 
 
/Erik
 
 
 
 
== Purpose of the mod ==
 
== Purpose of the mod ==
  
 
To show the number of Ancestors and Descendants (up to 100 of each) below the person's name in ''getperson.php''.
 
To show the number of Ancestors and Descendants (up to 100 of each) below the person's name in ''getperson.php''.
  
The '''max 100''' is a limit I put there after measuring the time it took on the live server.<br/>If I remember correctly, it took like 0.2 seconds to count to around 1,000 people.<br/>You can change the limit to whatever you want, using the ModManager's built-in '''''Edit Options'''''.
+
The '''max 100''' is a limit I put there after measuring the time it took on the live server.<br/>If I remember correctly, it took like 0.2 seconds to count to around 1,000 people.<br/>You can change the limit to whatever you want, using the ModManager's built-in '''Edit Options'''.
 
 
 
 
== What the mod doesn't do properly ==
 
 
 
In the cases where TNG would generate two identical branches, f.ex. cousins who get children, the mod counts '''both''' branches.
 
 
 
 
 
  
 
== Developer ==
 
== Developer ==
  
This mod was developed by [[User:XerxX|Erik Hoppe]]
+
This mod was developed by [[User:XerxX|Erik Hoppe]] who is '''<span style="color: red">NOT maintaining or developing</span>''' this mod.<br/>See '''Mod Support''' in the data box top right.
 
 
  
 
== Requirements ==
 
== Requirements ==
  
{{TNG 10.1.1}}
+
{{TNG 10.1.1|and after}}
 
* A working TNG installation.
 
* A working TNG installation.
 
* A backup of all affected files (see the list below)
 
* A backup of all affected files (see the list below)
 
* An installed current version of the [[Mod Manager]] (is already included in TNG v10.1.1)
 
* An installed current version of the [[Mod Manager]] (is already included in TNG v10.1.1)
 
  
 
== Installation ==
 
== Installation ==
Line 69: Line 45:
 
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config  Files]] to install the mod.
 
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config  Files]] to install the mod.
 
# After installation you can edit the counter limit that defaults to 100.
 
# After installation you can edit the counter limit that defaults to 100.
 
  
 
== In the event of a problem ==
 
== In the event of a problem ==
Line 75: Line 50:
 
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* Replace all affected files with the copies you made before the installation.
 
* Replace all affected files with the copies you made before the installation.
* Contact me through [https://xerxx.se/modSupport/index.php?mod=5 My Mod Support]
+
* [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums:  TNG Specific - Code Discussion - Addons]
 
 
  
 
== Custom Text Additions ==  
 
== Custom Text Additions ==  
  
'''Note:''' The config file includes the English language custom text. If the German and Swedish texts are present in your system translations will be added.<br />For other languages you can modify the config file to add the custom text or manually add to whatever language you like.
+
'''Note:''' The config file includes the English language custom text. If the German, Spanish, Dutch, French and/or Swedish texts are present in your system translations will be added.<br />For other languages you can modify the config file to add the custom text or manually add to whatever language you like.
  
 
'''English custom text For Reference Only!'''<br />
 
'''English custom text For Reference Only!'''<br />
 
<pre>
 
<pre>
 +
$text['xerxxGPstarttext0'] = "&nbsp;&nbsp;&nbsp;Has "; // When 0 ancs
 
$text['xerxxGPstarttext'] = "&nbsp;&nbsp;&nbsp;Has ";
 
$text['xerxxGPstarttext'] = "&nbsp;&nbsp;&nbsp;Has ";
 
$text['xerxxGPstarttextNone'] = "";
 
$text['xerxxGPstarttextNone'] = "";
Line 97: Line 72:
 
$text['xerxxGPbut'] = " but ";
 
$text['xerxxGPbut'] = " but ";
 
$text['xerxxGPmore'] = "more than ";
 
$text['xerxxGPmore'] = "more than ";
$text['xerxxGPfinishtext'] = " in our family tree.";
+
$text['xerxxGPfinishtext'] = " in this family tree.";
 
</pre>
 
</pre>
 
(The empty ones close to the top are used for German word and MUST be present in ALL languages)
 
(The empty ones close to the top are used for German word and MUST be present in ALL languages)
 
  
 
== Uninstalling the mod ==
 
== Uninstalling the mod ==
Line 108: Line 82:
 
# click the '''Delete''' button to delete the config file from the mods folder.
 
# click the '''Delete''' button to delete the config file from the mods folder.
  
 +
== Mod Conflicts ==
 +
 +
This mod prevents [[Regroup Person Profile]] from installing. If you wish to also install [[Regroup Person Profile]] you need to install [[Count_Ancestors_n_Descendants]] mod after installing the [[Regroup Person Profile]] mod. You also must uninstall in the reverse order.
  
 
== Revision History ==
 
== Revision History ==
  
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
+
==Revision History==
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
|-
 
|-
 
! Version
 
! Version
Line 117: Line 95:
 
! Description
 
! Description
 
|-
 
|-
| V10.1.1.2c
+
 
| 15 June 2015
+
|- valign="top"
 +
| 13.0.0.5b
 +
| 9 Jan 2021
 +
| Corrected French, thanks to Michel Kirsch's suggestions. Corrected Dutch suggested by Peter Buyk.<br/>'''NOTE!''' the TNG12+ cust_text files update guidelines (see top of page)!
 +
 
 +
|- valign="top"
 +
| 10.1.1.5b
 +
| 9 Jan 2021
 +
| Corrected French, thanks to Michel Kirsch's suggestions. Corrected Dutch suggested by Peter Buyk.<br/>'''NOTE!''' the TNG12+ cust_text files update guidelines (see top of page)!
 +
 
 +
|- valign="top"
 +
| 13.0.0.5
 +
| 3 Dec 2020
 +
| Correcting PHPcode (6 PHP Notices removed) and some French, '''thanks to Michel Kirsch's''' suggestions.
 +
 
 +
|- valign="top"
 +
| 10.1.1.5
 +
| 3 Dec 2020
 +
| Correcting PHPcode (6 PHP Notices removed) and some French, '''thanks to Michel Kirsch's''' suggestions.
 +
 
 +
|- valign="top"
 +
| 13.0.0.4
 +
| 22 Sep 2020
 +
| Updated for TNG v13 by [[User:KenRoy|Ken Roy]]. '''''Thanks'' Ken!'''
 +
 
 +
|- valign="top"
 +
| 10.1.1.4
 +
| 15 Sep 2019
 +
| Updated to use TNG variables for database table names by [[User:KenRoy|Ken Roy]].
 +
 
 +
|- valign="top"
 +
| 10.1.1.3d
 +
| 9 Jul 2017
 +
| Corrected Dutch translation kindly provided by Bernard Wortelboer.
 +
 
 +
|- valign="top"
 +
| 10.1.1.3c
 +
| 11 May 2017
 +
| Was making an empty line in genlib.php making it incompatible with a future mod of mine. Thanks to Ken Roy for the suggested change.
 +
 
 +
|- valign="top"
 +
| 10.1.1.3a
 +
| 17 Sep 2016
 +
| Added Spanish, Dutch and French translations, kindly provided By Graham Chamberlain.
 +
 
 +
|- valign="top"
 +
| 10.1.1.3
 +
| 4 May 2016
 +
| Prevented the mod to count persons in duplicate branches, e.g. cousins making a family.
 +
 
 +
|- valign="top"
 +
| 10.1.1.2d
 +
| 24 Jul 2015
 +
| Text changed from "our family tree" to "this family tree" by several requests.
 +
 
 +
|- valign="top"
 +
| 10.1.1.2c
 +
| 15 Jun 2015
 
| Reported to not install (thanks Rick Hooley). Solved.
 
| Reported to not install (thanks Rick Hooley). Solved.
|
+
 
|-
+
|- valign="top"
| V10.1.1.2b
+
| 10.1.1.2b
| 10 June 2015
+
| 10 Jun 2015
 
| Clumsy solution for the below made it Crash in some situations.
 
| Clumsy solution for the below made it Crash in some situations.
|-
+
 
| V10.1.1.2
+
|- valign="top"
| 9 June 2015
+
| 10.1.1.2
 +
| 9 Jun 2015
 
| Could not be installed after [[Mobile Media]] mod. Now can.
 
| Could not be installed after [[Mobile Media]] mod. Now can.
|-
+
 
| V10.1.1.1
+
|- valign="top"
 +
| 10.1.1.1
 
| 29 May 2015
 
| 29 May 2015
 
| Added the MM Edit Option to set the counter limit
 
| Added the MM Edit Option to set the counter limit
|-
+
 
| V10.1.1.0b
+
|- valign="top"
 +
| 10.1.1.0b
 
| 19 May 2015
 
| 19 May 2015
 
| Changes in the German text only (Thanks Hendrik M.)
 
| Changes in the German text only (Thanks Hendrik M.)
|-
+
 
| V10.1.1.0
+
|- valign="top"
 +
| 10.1.1.0
 
| 17 May 2015
 
| 17 May 2015
 
| Introduction.
 
| Introduction.
 
|}
 
|}
  
 
+
== Visualization of this mod (v10.1.1.2d) ==
== Visualization of this mod (v10.1.1.0) ==
 
  
 
{| border="0" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
{| border="0" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
Line 151: Line 189:
 
|-
 
|-
 
|[[File:calcAncDesc.jpg]]<br/>[[File:calcAncDesc3.png]]
 
|[[File:calcAncDesc.jpg]]<br/>[[File:calcAncDesc3.png]]
|-
 
| The hard-coded version at my 9.1.1 site (link to this page below):
 
|-
 
|[[File:calcAncDesc2.png]]
 
 
|}
 
|}
  
 
+
==Sites using this mod==
== Sites using this mod ==
 
 
If you download and install this mod, please add your TNG site to the table below:
 
If you download and install this mod, please add your TNG site to the table below:
 +
<p>Regarding the '''Swedish-Only''' site below: Using the Google setting ''"English language"'' and then google for the site, I have a '''''"Translate this page"''''' beside the link. If I use it I get a quite decent translation...</p>
  
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
Line 169: Line 203:
 
! TNG-Version
 
! TNG-Version
 
! User-language
 
! User-language
|-
+
 
| [https://xerxx.se/getperson.php?personID=I36&amp;tree=tredNr2 Andersson, Hoppe, Sahlin, Thorell]
+
|<!-- Please add your site BELOW the first site. Thanks -->
| [[User:XerxX|Erik Hoppe]]
+
 
| Mod author. Please read '''Preface'''
+
|- valign="top"
| Pre-mod
+
| [https://botebygden.se/getperson.php?personID=I44&tree=bote Botebygden] / P Lundqvist<br/>Swedish only (community research site).
| 9.1.1
+
| [[User:Larsa52|Lars Ar&eacute;n]]
| Swedish, German, English
+
| Open public site: Many of [[User:XerxX|Erik Hoppe]]'s mods on display. Swedish only (community research site).
|-
+
| 13.0.0.5b
 +
| 13.1.2
 +
| SE
 +
 
 +
|- valign="top"
 +
|[http://drzewo.online/ Family tree of Marcin & Emilia Senderski]
 +
|[[User:Mycroft|Marcin Senderski]]
 +
|Only home page is public
 +
|13.0.0.5
 +
|13.0.4
 +
|EN, PL
 +
 
 +
|- valign="top"
 +
|[https://tng.stegemueller.dk Stegemüller Family History]
 +
|[Https://tng.lythgoes.net/wiki/index.php/User:Stegemüller Hanne B. Stegemüller]
 +
|Public site
 +
|13.0.0.5b
 +
|14.0
 +
|EN, DE, DA
 +
 
 +
|- valign="top"
 
| [http://www.wortelboer.tk/ Wortelboer Genealogy]
 
| [http://www.wortelboer.tk/ Wortelboer Genealogy]
 
| [[User:Bernard57|Bernard Wortelboer]]
 
| [[User:Bernard57|Bernard Wortelboer]]
 
| Public site
 
| Public site
| 10.1.1.1
+
| 10.1.1.3d
| 10.1.1
+
| 11.1.1
 
| NL, EN
 
| NL, EN
|-
+
 
| [http://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
+
|- valign="top"
 +
| [https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
 
| [[User:bradyfamilytree|Darryl Brady]]
 
| [[User:bradyfamilytree|Darryl Brady]]
 
| Public site  
 
| Public site  
Line 190: Line 245:
 
| 10.1.1
 
| 10.1.1
 
| EN, DE
 
| EN, DE
|-
+
 
| [https://genealogywings.com/ MOTYER Family Genealogy]
+
|- valign="top"
 +
| [https://www.genealogywings.com/ MOTYER Family Genealogy]
 
| [[User:JMM|John Mark Motyer]]
 
| [[User:JMM|John Mark Motyer]]
 
| Public site
 
| Public site
| [[User:JMM|see here]]
+
| [https://www.genealogywings.com/jmm_pages/My-TNG-mods.php See here]
| [[User:JMM|see here]]
+
| [https://www.genealogywings.com/jmm_pages/My-TNG-mods.php See here]
| EN, DE, RU
+
| EN
|-
+
 
 +
|- valign="top"
 
| [http://mfo.me.uk Mitchell Families Online]
 
| [http://mfo.me.uk Mitchell Families Online]
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| Another great idea from Erik
 
| Another great idea from Erik
| 10.1.1.1
+
| 10.1.1.2c
 
| 10.1.1
 
| 10.1.1
 
| EN, DE, ES, NL, FR
 
| EN, DE, ES, NL, FR
|-
+
 
 +
|- valign="top"
 
| [http://oceanwharf.com Hooley Family Links]
 
| [http://oceanwharf.com Hooley Family Links]
 
| [[User:lastejas|Rick Hooley]]
 
| [[User:lastejas|Rick Hooley]]
 +
| Public/Private
 +
| [[User: lastejas|See Here]]
 +
| [[User: lastejas|See Here]]
 +
| EN
 +
 +
|- valign="top"
 +
| [http://www.kempfamilyhistory.com Kemp(e) Family History]
 +
| [[User:Kempons|Andrew Kemp]]
 
| Public Site
 
| Public Site
| 10.1.1.2
+
| see [[User:Kempons]]
| 10.1.1
+
| see [[User:Kempons]]
 
|EN
 
|EN
 +
 +
|- valign="top"
 +
| [http://www.djcm.dk DJCM.DK]
 +
| [[User:Clausm|Claus Martinussen]]
 +
| Not a Public Site
 +
| 13.0.0.5b
 +
| 13.0.4
 +
| DA,EN
 +
 +
|- valign="top"
 +
| [http://geneagraphie.com/ Families all over the World]
 +
| [[User:Henri_Textor| Hans Weebers]]
 +
| Public/Private
 +
| 10.1.1.2d
 +
| 11.0.0.0
 +
| NL/DE/ENG/(FR)
 +
 +
|- valign="top"
 +
| [https://www.kmtrees.com/index.php Roots & Relatives Remembered]
 +
| [[User:tngrlkrz| Ron Krzmarzick]]
 +
| Public & Private, modified
 +
| [https://www.kmtrees.com/mods-installed See Here]
 +
| [https://www.kmtrees.com/mods-installed See Here]
 +
| EN,DE,CS
 +
 +
|- valign="top"
 +
| [http://www.katiandgraham.com/genealogy Chamberlain & Eidenbenz Genealogy]
 +
| [[User:hiraeth| Graham Chamberlain]]
 +
| Public Site. Some restrictions for non-registered users
 +
| 10.1.1.3
 +
| 12.0.1
 +
| EN,NL,FR,DE,ES
 +
 +
|- valign="top"
 +
| [http://www.duttongenealogy.com/ The Duttons of New England]
 +
| [[User:Darrin65| Darrin Dutton]]
 +
| Public/Private
 +
| 13.0.0.5b
 +
| 14.0.1
 +
| EN
 +
 +
|- valign="top"
 +
| [https://www.tng.riehl-partner-web.de/ Familienforschung Riehl &amp; Kr&ouml;ber]
 +
| [[User:Otto_Riehl|Otto Riehl]]
 +
| (no public site)
 +
| 10.1.1.3a
 +
| 11.1.2
 +
| DE, EN, ES, FR, PT
 +
 +
|- valign="top"
 +
| [https://www.rintoulbowman.com/ Rintoul/Bowman Family]
 +
| [[User:Adrintoul|Andrew Rintoul]]
 +
| Public/Private
 +
| 10.1.1.3c
 +
| 12.0
 +
| EN, DE, ES, FR
 +
 +
|- valign="top"
 +
| [http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 +
| [[User:Louis42|J-Louis Valory]]
 +
| Public/Private - T17 customized
 +
| 10.1.1.3d
 +
| 12.0.2
 +
| FR
 +
 +
|- valign="top"
 +
| [https://roeljongman.nl Stamboom Jongman]
 +
| [[User:Roelj|Roel Jongman]]
 +
| Public/Private - Template 9
 +
| 10.1.1.3d
 +
| 10.1.3
 +
| NL, EN, DE
 +
 +
|- valign="top"
 +
| local computer
 +
| [[Tadeko]]
 +
| local computer
 +
| 10.1.1.3d
 +
| 11.0.2
 +
| PL
 +
 +
|- valign="top"
 +
| [https://vanseeventer.nl Familie van Seeventer]
 +
| [[User:see7ter|Sandor van Seeventer]]
 +
| Public site
 +
| 13.0.0.5b
 +
| 14.0
 +
| DE/EN/NL
 +
 +
|- valign="top"
 +
| [http://bumbery.com/ Bumbery-Wangler]
 +
| [[User:Bob|Bob Bumbery]]
 +
| Public/Private site
 +
| 13.0.0.4
 +
| 13.0.0
 +
| EN
 +
 +
|- valign="top"
 +
| [http://www.colegenealogy.net/ The Cole / Tanner Family Tree]
 +
| [[User:dlcole|David Cole]]
 +
| Public/Private
 +
| [[User:Dlcole|see here]]
 +
| [[User:Dlcole|see here]]
 +
| EN, DE, FR, ES, NL
 +
 +
|- valign="top"
 +
| [https://www.eskeland.net/tng/ Eskeland and Haugland Family]
 +
| [[User:helland71]]
 +
| Private
 +
| 10.1.1.3d
 +
| 12.0.2
 +
| NO, EN
 +
 +
|- valign="top"
 +
| [https://thrushfamily.com Journeys in Genealogy]
 +
| [[User:PapaTango|Patrick Thrush]]
 +
| Public WordPress/TNG bundle
 +
| 10.1.1.3d
 +
| 12.0.3
 +
| EN
 +
 +
|- valign="top"
 +
| [https://scabell.info/ Familienforschung SCABELL]
 +
| [[User:Helgaskally|Helga Scabell]]
 +
| Public/Private
 +
| 13.0.0.4
 +
| 13.0.1
 +
| DE, EN, PT
 +
 +
|- valign="top"
 +
| [https://www,royandboucher.com/tng/index.php Our Roy and Boucher Family]
 +
| [[User:KenRoy|Ken Roy]]
 +
| Updated v10.1.0.4 to use TNG table name variables for queries
 +
| 13.0.0.5b
 +
| {{Tv1404}}
 +
| EN, FR
 +
 +
|- valign="top"
 +
| [https://familytree.jansuhr.se Jan Suhr family tree]
 +
| [[User:Jan Suhr|Jan Suhr]]
 +
| Public Joomla / TNG
 +
| 10.1.1.3d
 +
| 12.1
 +
| SV, DK, EN
 +
 +
|- valign="top"
 +
| [https://peter-buyk.nl Genealogie Buijk]
 +
| [[User:PeterBuijk|Peter Buijk]]
 +
| Public/Private
 +
| 13.0.0.5
 +
| 13.02
 +
| NL, EN
 +
 +
|- valign="top"
 +
| [http://genealogy.mkirsch.be Racines Luxo-hennuyères]
 +
| [[User:MichelKirsch|Michel Kirsch]]
 +
| Public site (registration)
 +
| V13.0.0.5b
 +
| TNG 13.0.3
 +
| FR/EN/GE/NL
 +
 +
|- valign="top"
 +
| [https://www.lathro.pe Lathrope Family Genealogy]
 +
| [[User:4lexsharpe|S Sharpe]]
 +
| Public
 +
| 13.0.0.2a
 +
| 13.0.4,
 +
| EN
 +
 +
|- valign="top"
 +
|[https://sejarah-thumann.online/index.php Sejarah Thümann]
 +
|[https://tng.lythgoes.net/wiki/index.php/User:Jeffrey.thumann Jeffrey Thümann]
 +
|Public
 +
|13.0.0.5b
 +
|13.0.3
 +
|NL, EN
 +
 +
|- valign="top"
 +
| [https://www.josephoranholtz.com/ Joseph Oran Holtz Genealogy Pages]
 +
| [[User:Stores|Jim Holt]]
 +
| Private
 +
| [[User:Stores|See Here]]
 +
| [[User:Stores|See Here]]
 +
| EN
 +
 +
|- valign="top"
 +
| [https://www.craswell.ca/ Your Roots are Showing]
 +
| [[User:crashar|Harold Craswell]]
 +
| Public/Private
 +
| [https://www.craswell.ca/rrmodcompare_report.php?power=basic&cachemethod=3&sb=filename&aformat=full&statushilite=1&b1=0 See Here]
 +
| [https://www.craswell.ca/rrmodcompare_report.php?power=basic&cachemethod=3&sb=filename&aformat=full&statushilite=1&b1=0 See Here]
 +
| EN
 +
 +
|- valign="top"
 +
| [http://cw.ourfamilyroots.org Coon White Family History]
 +
| [[User:mntoolboy|Alan Coon]]
 +
| Public / Private
 +
| 13.0.0.1
 +
| 13.1.2
 +
| EN
 +
 +
|- valign="top"
 +
|[https://cnl-gla.ca/nos-ancetres/lapierreamerique/ Les Lapierre d'Amérique]
 +
| [[User:NLapierre|Normand Lapierre]]
 +
| Public/Private site
 +
| 13.0.0.5b
 +
| 14.0
 +
| FR, EN
 +
 +
|- valign="top"
 +
|[https://arenknapp.se/tng/index.php Vår Familjehistoria]
 +
|[https://tng.lythgoes.net/wiki/index.php/User:Larsa52 Lars Arén]
 +
|Public
 +
|13.0.0.5b
 +
|14.0.4
 +
|SE, EN, DE
 +
 
|-
 
|-
 +
|[https://www.vanderhorde.nl/index.php Onze familiegeschiedenis]
 +
|[[Wim van der Horde|Wvdhorde]]
 +
|Public / Private
 +
|13.0.0.5b
 +
|14.0.3
 +
|NL
 +
 +
|- style="vertical-align:top;"
 +
| [https://datschetzky.genealogenstammtisch.net Stammbaum der Familie Datschetzky]
 +
| style="white-space: nowrap;"|[[User:ChristianD|Christian Datschetzky]]
 +
| Public
 +
| 13.0.0.5b
 +
| 14.0.3
 +
| DE, EN
 
|}
 
|}
  
Line 222: Line 519:
 
* languages/German/cust_text.php - if present
 
* languages/German/cust_text.php - if present
 
* languages/German-UTF8/cust_text.php - if present
 
* languages/German-UTF8/cust_text.php - if present
 +
* languages/Spanish/cust_text.php - if present
 +
* languages/Spanish-UTF8/cust_text.php - if present
 +
* languages/Dutch/cust_text.php - if present
 +
* languages/Dutch-UTF8/cust_text.php - if present
 +
* languages/French/cust_text.php - if present
 +
* languages/French-UTF8/cust_text.php - if present
 
* languages/Swedish/cust_text.php - if present
 
* languages/Swedish/cust_text.php - if present
 
* languages/Swedish-UTF8/cust_text.php - if present
 
* languages/Swedish-UTF8/cust_text.php - if present
  
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]
 +
[[Category:Mods for TNG v11]]
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v14]]
  
 
[[Category:genlib.php mods]]
 
[[Category:genlib.php mods]]

Latest revision as of 10:57, 4 March 2024

NeedSupport The mod Count Ancestors n Descendants needs a new support person since the original mod developer or subsequent developers are no longer available to support the mod NeedSupport


Restricted Downloads of Count Ancestors n Descendants 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


Caution This mod prevents Regroup Person Profile from installing. If you wish to also install Regroup Person Profile you need to install Count_Ancestors_n_Descendants mod after installing the Regroup Person Profile mod. You also must uninstall in the reverse order. Caution


Count Ancestors (and) Descendants
Summary Show number of Ancestors and Descendants under the person's name in getperson.php
Validation n/a
Mod Updated 9 Jan 2021
Download link for
TNG 13.0
Count Ancestors n Descendants v13.0.0.5b.cfg.zip
for
TNG 12.0
TNG 11.0
TNG 10.1.1
Count Ancestors n Descendants v10.1.1.5b.cfg.zip
Download stats Click here
Author(s) Erik Hoppe
Homepage Count Ancestors n Descendants (this page)
Mod Support TNG Community Forums: TNG Specific - Code Discussion - Addons
Contact Developer
Latest Mod 10.1.1.5b - 13.0.0.5b
Min TNG V 10.1.1
Max TNG V 14.+
Files modified
Related Mods
Notes
Author of TNG Colouring Book
Mods by me: At my user page.

Purpose of the mod

To show the number of Ancestors and Descendants (up to 100 of each) below the person's name in getperson.php.

The max 100 is a limit I put there after measuring the time it took on the live server.
If I remember correctly, it took like 0.2 seconds to count to around 1,000 people.
You can change the limit to whatever you want, using the ModManager's built-in Edit Options.

Developer

This mod was developed by Erik Hoppe who is NOT maintaining or developing this mod.
See Mod Support in the data box top right.

Requirements

TNG version: 10.1.1
  • A working TNG installation.
  • A backup of all affected files (see the list below)
  • An installed current version of the Mod Manager (is already included in TNG v10.1.1)

Installation

  1. Click on the download link, shown in the summary in the upper right corner of the page.
  2. Un-zip the file.
  3. Move/copy/FTP the un-zipped .cfg file to the mods folder of your TNG system.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
  5. After installation you can edit the counter limit that defaults to 100.

In the event of a problem

Custom Text Additions

Note: The config file includes the English language custom text. If the German, Spanish, Dutch, French and/or Swedish texts are present in your system translations will be added.
For other languages you can modify the config file to add the custom text or manually add to whatever language you like.

English custom text For Reference Only!

$text['xerxxGPstarttext0'] = "   Has "; // When 0 ancs
$text['xerxxGPstarttext'] = "   Has ";
$text['xerxxGPstarttextNone'] = "";
$text['xerxxGPstarttextSing'] = "";
$text['xerxxGPstarttextPlur'] = "";
$text['xerxxGPdescs'] = " descendants";
$text['xerxxGPdesc'] = " descendant";
$text['xerxxGPancs'] = " ancestors";
$text['xerxxGPanc'] = " ancestor";
$text['xerxxGPno'] = "no";
$text['xerxxGPone'] = "one";
$text['xerxxGPand'] = " and ";
$text['xerxxGPbut'] = " but ";
$text['xerxxGPmore'] = "more than ";
$text['xerxxGPfinishtext'] = " in this family tree.";

(The empty ones close to the top are used for German word and MUST be present in ALL languages)

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 and then
  2. click the Delete button to delete the config file from the mods folder.

Mod Conflicts

This mod prevents Regroup Person Profile from installing. If you wish to also install Regroup Person Profile you need to install Count_Ancestors_n_Descendants mod after installing the Regroup Person Profile mod. You also must uninstall in the reverse order.

Revision History

Revision History

Version Date Description
13.0.0.5b 9 Jan 2021 Corrected French, thanks to Michel Kirsch's suggestions. Corrected Dutch suggested by Peter Buyk.
NOTE! the TNG12+ cust_text files update guidelines (see top of page)!
10.1.1.5b 9 Jan 2021 Corrected French, thanks to Michel Kirsch's suggestions. Corrected Dutch suggested by Peter Buyk.
NOTE! the TNG12+ cust_text files update guidelines (see top of page)!
13.0.0.5 3 Dec 2020 Correcting PHPcode (6 PHP Notices removed) and some French, thanks to Michel Kirsch's suggestions.
10.1.1.5 3 Dec 2020 Correcting PHPcode (6 PHP Notices removed) and some French, thanks to Michel Kirsch's suggestions.
13.0.0.4 22 Sep 2020 Updated for TNG v13 by Ken Roy. Thanks Ken!
10.1.1.4 15 Sep 2019 Updated to use TNG variables for database table names by Ken Roy.
10.1.1.3d 9 Jul 2017 Corrected Dutch translation kindly provided by Bernard Wortelboer.
10.1.1.3c 11 May 2017 Was making an empty line in genlib.php making it incompatible with a future mod of mine. Thanks to Ken Roy for the suggested change.
10.1.1.3a 17 Sep 2016 Added Spanish, Dutch and French translations, kindly provided By Graham Chamberlain.
10.1.1.3 4 May 2016 Prevented the mod to count persons in duplicate branches, e.g. cousins making a family.
10.1.1.2d 24 Jul 2015 Text changed from "our family tree" to "this family tree" by several requests.
10.1.1.2c 15 Jun 2015 Reported to not install (thanks Rick Hooley). Solved.
10.1.1.2b 10 Jun 2015 Clumsy solution for the below made it Crash in some situations.
10.1.1.2 9 Jun 2015 Could not be installed after Mobile Media mod. Now can.
10.1.1.1 29 May 2015 Added the MM Edit Option to set the counter limit
10.1.1.0b 19 May 2015 Changes in the German text only (Thanks Hendrik M.)
10.1.1.0 17 May 2015 Introduction.

Visualization of this mod (v10.1.1.2d)

Some examples of texts:
CalcAncDesc.jpg
CalcAncDesc3.png

Sites using this mod

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

Regarding the Swedish-Only site below: Using the Google setting "English language" and then google for the site, I have a "Translate this page" beside the link. If I use it I get a quite decent translation...

URL User Note Mod-Version TNG-Version User-language
Botebygden / P Lundqvist
Swedish only (community research site).
Lars Arén Open public site: Many of Erik Hoppe's mods on display. Swedish only (community research site). 13.0.0.5b 13.1.2 SE
Family tree of Marcin & Emilia Senderski Marcin Senderski Only home page is public 13.0.0.5 13.0.4 EN, PL
Stegemüller Family History Hanne B. Stegemüller Public site 13.0.0.5b 14.0 EN, DE, DA
Wortelboer Genealogy Bernard Wortelboer Public site 10.1.1.3d 11.1.1 NL, EN
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.1.1 10.1.1 EN, DE
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Mitchell Families Online Roger Mitchell Another great idea from Erik 10.1.1.2c 10.1.1 EN, DE, ES, NL, FR
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Kemp(e) Family History Andrew Kemp Public Site see User:Kempons see User:Kempons EN
DJCM.DK Claus Martinussen Not a Public Site 13.0.0.5b 13.0.4 DA,EN
Families all over the World Hans Weebers Public/Private 10.1.1.2d 11.0.0.0 NL/DE/ENG/(FR)
Roots & Relatives Remembered Ron Krzmarzick Public & Private, modified See Here See Here EN,DE,CS
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Public Site. Some restrictions for non-registered users 10.1.1.3 12.0.1 EN,NL,FR,DE,ES
The Duttons of New England Darrin Dutton Public/Private 13.0.0.5b 14.0.1 EN
Familienforschung Riehl & Kröber Otto Riehl (no public site) 10.1.1.3a 11.1.2 DE, EN, ES, FR, PT
Rintoul/Bowman Family Andrew Rintoul Public/Private 10.1.1.3c 12.0 EN, DE, ES, FR
Racine d'Alsace J-Louis Valory Public/Private - T17 customized 10.1.1.3d 12.0.2 FR
Stamboom Jongman Roel Jongman Public/Private - Template 9 10.1.1.3d 10.1.3 NL, EN, DE
local computer Tadeko local computer 10.1.1.3d 11.0.2 PL
Familie van Seeventer Sandor van Seeventer Public site 13.0.0.5b 14.0 DE/EN/NL
Bumbery-Wangler Bob Bumbery Public/Private site 13.0.0.4 13.0.0 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
Eskeland and Haugland Family User:helland71 Private 10.1.1.3d 12.0.2 NO, EN
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 10.1.1.3d 12.0.3 EN
Familienforschung SCABELL Helga Scabell Public/Private 13.0.0.4 13.0.1 DE, EN, PT
Our Roy and Boucher Family Ken Roy Updated v10.1.0.4 to use TNG table name variables for queries 13.0.0.5b
TNG 14.0.4
EN, FR
Jan Suhr family tree Jan Suhr Public Joomla / TNG 10.1.1.3d 12.1 SV, DK, EN
Genealogie Buijk Peter Buijk Public/Private 13.0.0.5 13.02 NL, EN
Racines Luxo-hennuyères Michel Kirsch Public site (registration) V13.0.0.5b TNG 13.0.3 FR/EN/GE/NL
Lathrope Family Genealogy S Sharpe Public 13.0.0.2a 13.0.4, EN
Sejarah Thümann Jeffrey Thümann Public 13.0.0.5b 13.0.3 NL, EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Your Roots are Showing Harold Craswell Public/Private See Here See Here EN
Coon White Family History Alan Coon Public / Private 13.0.0.1 13.1.2 EN
Les Lapierre d'Amérique Normand Lapierre Public/Private site 13.0.0.5b 14.0 FR, EN
Vår Familjehistoria Lars Arén Public 13.0.0.5b 14.0.4 SE, EN, DE
Onze familiegeschiedenis Wvdhorde Public / Private 13.0.0.5b 14.0.3 NL
Stammbaum der Familie Datschetzky Christian Datschetzky Public 13.0.0.5b 14.0.3 DE, EN

TNG Modules Impacted

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

  • genlib.php
  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php
  • languages/German/cust_text.php - if present
  • languages/German-UTF8/cust_text.php - if present
  • languages/Spanish/cust_text.php - if present
  • languages/Spanish-UTF8/cust_text.php - if present
  • languages/Dutch/cust_text.php - if present
  • languages/Dutch-UTF8/cust_text.php - if present
  • languages/French/cust_text.php - if present
  • languages/French-UTF8/cust_text.php - if present
  • languages/Swedish/cust_text.php - if present
  • languages/Swedish-UTF8/cust_text.php - if present