Expand Search

From TNG_Wiki
Jump to navigation Jump to search
Caution Expand Search replaces: Direct Line Search, Search Page Expansion. You must uninstall them both first.
TNG version: 13.0.0

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 13.0
TNG 12.0

Expand Search
Summary Adds search functionality and a user search page with filters.
Mod Updated 6 Apr 2020
Download link for
TNG 13.0

Expand Search for tng 13

TNG 12.0

Expand Search Version 7

Download stats
Author(s) A. S. DuPree
Homepage Expand_Search (this page)
Mod Support TNG Community Forums
Contact Developer [1]
Latest Mod
Min TNG V 12
Max TNG V 13
Files modified
search.php searchform.php
Related Mods
An amalgam of Direct Line Search and Search Page Expansion - UNINSTALL them before installing this mod.


In larger and larger databases, it can be frustrating to hone in attention on the people we need to research.

This mod helps by providing searching aids to get right to the right people. New - Type in "All-USA" and get all persons with birth or death in the USA. This should work if you do not include country for USA places (i.e. Boston, Massachusetts or Boston, MA) or even if you do.

It adds the following functionality:
To the Search Page

  1. Search end of lines - finds individuals with no parents. Use with branches or Sosa to find top of the line ancestors
  2. No sources - returns records that do not have citations. Useful for improving your data
  3. Sosa search - Search for folks with sosa numbers. Shows up if you have Sosa installed
  4. New Search criteria - Adds CAPS (for capital letters) and does not contain to the search criteria
  5. A "residence" search that allows searching across all places -- birth, death, burial and baptism -- at once. An "all residence" option includes all events.

To the Search Results Only for logged in users:

  1. Sources, notes and media numbers are added to the table
  2. A filter bar for branches, sosa (shows if mod installed), sources, notes and media.

It can be used as a stand alone or in conjunction with the Bold Ancestor Child Links mod or Sosa mod to identify direct and end-of-line ancestors where many of us want to focus our attention.

Search Page

What this looks like on your search page:


Search Results



This mod was developed by A.S. DuPree (a novice, happy for any help on improving it)


  • A working TNG installation. This has only been tested on TNG V 12.1
  • An installed current version of the Mod Manager.

Revision History

  1. V7 - Includes search code from Expand Statistics and fixes long url strings.
  2. V6 - Note there was no V5. V6 provides functionality to Expand_Statistics. Also some small fixes. Adds search in residence for All USA places.
  3. V4a - Adds an option to control the way the Residence search field displays.
  4. V4 - Fixes error when sosa is not installed.
  5. V3 - Adds residence search.
  6. V2 - filters are now persistent across pages and the next time you search. Also a message tells you how many records are displayed on the page.

Automated Installation

  1. Download the zip file in the status area in the upper right.
  2. Extract the zip file to your mod folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the expand_search.cfg.


Mod is only in English but can be modified for any language by revising the code below and copying into the cust_text.php file for your language. Replace the words between the quotes with your translation.

// Expand Search
$text['displaying'] = "Displaying";
$text['recordsfrom'] = "records from";
$text['srcmsg'] = "No citations - person and one family (slow)";	
$text['eolmsg'] = "Search end of lines (children but no parents)";
$text['allcaps'] = "All CAPS for";	
$text['dncontain'] = "does not contain";
$text['residence'] = "Residence";
$text['residenceisin'] = "residence is in";
$text['withoutparents'] = "without parents";
$text['noattachedsources'] = "no attached sources";
$text['allresidences'] = "all residences";
// Expand Search

Conflicts and Issues

I have not found any conflicts or issues with this mod but I suspect there may be some. Please let me know if you find any. The language is ONLY in English.

In the event of a problem with your TNG site

  1. Try using the Mod Manager to Remove the mod

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
Adupree.com A.S. DuPree Mod Developer 13.0 English
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
Racines Luxo-hennuyères Michel Kirsch Public site (registration) V13.0.0.7 TNG 13.0.3 FR/EN/GE/NL
Racine d'Alsace J-Louis Valory Public (registration) 13.0.4 FR