TNG Gendex Search

From Genwiki

Jump to: navigation, search

If you are not comfortable with html and php editing, this page may not be for you

GENDEX Direct Search form

If you want to add a simple/integrated way for your users to access the TNG Gendex Search, try adding this form to the bottom of your search page. If you are comfortable with a text editor, you can add this to your existing TNG search page in just a few minutes.

TNG Version 7.1.0 - Code support for this mod is now included in the Mod Manager Package
Revision 2.1 - Jul 3, 2008 - corrections to the customized text
Revision 2.0 - Jul 2, 2008 - updated for TNG V7, now self updates the title
Revision 1.3 - Jul 11, 2007 - minor html validation correction.
Revision 1.2 - May 14, 2007 - no changes required, valid for TNG V6.1
Revision 1.2 - Oct 25, 2006 - updated with Multi-language support(contributed by Jean Deslauriers)
Revision 1.1 - Sep 30, 2006 - minor cosmetic adjustment to line up the field entry boxes

What's a GENDEX Search

The TNG Gendex project is a single searchable index of genealogy records from contributing users. At this writing, it includes indicies from over 600 databases, and contains over 5.5 million names. The main page to this index is here


To see how the TNG Gendex search form will look on your search page, you can preview it on my site at My Search Page at the bottom of the page. As of version 2.0, this script will check Darrin's site after 'N' days (default 10), read the gendex form and extract the # of databases and names and automatically update the script variables to display the form with updated numbers.


  1. A working TNG installation - see The Next Generation of Genealogy Sitebuilding
  2. A backup of your TNG searchform.php file.

TNG Modifications for TNG V5, V6, or V7

The following zip file contains the single gendexform.php file.

  • The zip file contains 1 file:
    • gendexform.php - the Gendex form to be included in the TNG searchform.php file

  1. backup your existing TNG searchform.php file
  2. download this zip (
  3. unzip it, examine the contents
  4. find and open your original searchform.php file
    • edit the last few lines of the file
      • change the last lines from this
 <br /><br />
 tng_footer( "" );
  • to this
 <?php @include($cms[tngpath] . "gendexform.php"); ?>
 <br /><br />
 tng_footer( "" );
  • you can copy the single line above from this page and paste it into your file
  1. close your searchform.php file and copy it to your base TNG directory
  2. copy the gendexform.php to your base TNG directory
    • ensure the gendexform.php is readable by all and writeable by owner and group. This script will automatically re-write itself with new information at predefined intervals, so the script gendexform.php must be writeable. The permission may have to be set to at least 664 or 775 depending on your server operation.
  3. If you wish to customize the title text, or provide an alternate language, simply copy the lines in the custom_txt file provided into your custom_txt.php script in each of your language folders.
  4. check it out

  • In the event of a problem with your TNG site
  1. copy your backup searchform.php file to your base TNG directory
    • all should be well now
  2. you may also delete the gendexform.php file


Thanks go out to Jean Deslauriers who converted the initial gendex search form for multi-language support.


  1. You're sort of on your own... If you have a specific question, or feel some additional info in the above would help others, feel free to contact me directly. Mail me here
    • Please post suggestions, or your own flavour of this mod to the forum or list
Personal tools