TreeID-One Column

From TNG_Wiki
Jump to navigation Jump to search
TreeID-One Column
Summary Add the TreeID to the Tree column in the HTML results table for several reports. Based on Ken Roy's TreeIDMod, which adds a separate TreeID column.
Mod Updated 28 Jan 2022
Download link v14.0.0.3a
TNG 14.0
TNG 13.0
See the Revision History for older versions
Download stats
Author(s) Robin Richmond
Homepage (this page)
Mod Support My Mod Support form
Contact Developer My Mod Support form
Latest Mod
Min TNG V 10.1.0
Max TNG V 14
Files modified
search.php, famsearch.php, browsetrees.php, browsebranches.php, showmap.php, showtree.php, admin_places.php, admin_branches.php, admin_newbranch.php, admin_editbranch.php, admin_edituser.php, browse_dna_tests.php, cust_text.php English
Related Mods

Purpose of the Mod

Add the TreeID or TreeName to various programs where the only one of those values is displayed. It updates 12 different programs, and, depending on the program, it may

  1. Add the TreeID in each row of the Tree column of a results table, and
    in some cases, the "Tree" heading is a hyperlink that toggles between the TreeID and the Tree Name.
  2. Add the TreeID in front of the Tree Name in some programs that display or edit just one record,
  3. Add a row for the Tree ID in other programs that display or edit just one record, or
  4. Add the Tree ID or TreeName in drop-down <select> lists.

This mod is based on Ken Roy's Tree ID Mod, with these differences:

  • In case 1 above, this mod puts both values in one column, whereas Tree ID Mod adds a new column. The reason this mod was written was to avoid some conflicts that resulted from the extra column.
  • Also in cases 1 and 2 above, this mod does not add the TreeID when the TreeID and the Tree Name are the same
  • Tree ID Mod never tries to toggle between the TreeID and the Tree name.


This mod conflicts with Tree ID Mod, but is essentially a variant of Tree ID Mod, so there would be no reason to try to install both mods. TreeID-One Column is known to be compatible with numerous other mods that modify the 12 programs that it modifies. Please report any conflicts.

Related Mods

  1. This mod is almost identical to Tree ID Mod, with the differences described above.
  2. This mod saves information about the programs it modifies so that the optional Show Mod Names mod can display the list of (my) mods that affect a program.
    • Unlike most of my mods, this mod does not insert any code to try to call the Show Mod Names display function at the end of each program. Programs such as admin_users.php that are modified my another of my mods will already have that code, but programs that I do not modify otherwise, such as browse_dna_tests.php, will not.
    • Like my other mods, this mod does not require that Show Mod Names be installed. If Show Mod Names is not installed, the "Show Mod Names" button at the bottom of modified programs will simply not appear.


This mod uses the standard installation procedure, and has no mod subfolder [Show Standard Installation Process]


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


  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.


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


BEFORE: Person Search Results - Representing several search result programs where each table row represents a database record.

Treeid one column-before-search.jpg

AFTER: Person Search Results

The Tree column now has both the TreeID and the Tree Name - except when they are the same.

Treeid one column-after-search.jpg

BEFORE: showtree.php - A tree selected from the search function at Person Profile >> Info menu >> Trees TreeID one column showtree-before.jpg
AFTER: showtree.php

A new row at the top shows the TreeID

TreeID one column showtree-after.jpg
AFTER: Admin>>Branches>>Add New

The TreeID has been added to a drop-down selection list. Note that, in drop-down lists, the TreeID and the Tree Name not both displayed when they are the same.

TreeID one column newbranch-after.jpg
AFTER: Admin>>Branches>>Edit TreeID one column edit branches after.jpg
AFTER: Admin>>Places>>Search
showing the Tree column in both of its toggled states
TreeID-one column-placesearch.jpg

Revision History

Mod Version TNG Version Date Note 14 28Jan2020 Upgrade to TNGv13
v13.0.0.3 13 4Nov2020 Upgraded to TNGv13; Changed some Tree columns so that, instead of the TreeID and Tree being visible at once, the "Tree" heading is a hyperlink that toggles Tree values between the TreeID and Tree Name
v12.0.0.2 12.0 - 12.0.2+ 11Dec2018 Add the TreeID to the Tree column in the HTML results table for several reports; made compatible with TNGv12. 10.1.0 - 11.1.2+ 10 Jan 2018 Except when it is adding the TreeID or Tree Name to <select> box options, the mod no longer adds the Tree ID if the TreeID and Tree Name are the same. 10.1.0 - 11.1.2+ 07 Nov 2017 Removed the second line of the target location search string for cust_text.php files. 10.1.0 and up 17 Jun 2017 First production release. Derived from Ken Roy's Tree ID Mod. Made the browse_dna_tests.php target optional for compatibility with TNGv10.1. Other version 10.1 dependencies are no longer in the code.

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 14 English
Hooley Family Links Rick Hooley Public/Private See Here See Here EN