Event Place Search Mod

From TNG_Wiki
Jump to: navigation, search
Event Place Search
Summary Adds an event place search to the bottom of your search page
Mod Updated {{{mod_last_update}}}
Download link For
TNG 9.0
TNG 8.0
TNG 7.0
Download stats {{{download_stats}}}
Author(s) Brian McFadyen, modified for TNG V9 by Bryan S. Larson
Homepage Event Place Search Mod (this page)
TNG Event Search for history
Mod Support TNG Community Forums
Contact Developer
Latest Mod for TNG V9
8.1.0 for TNG V8
2.4 for TNG V7
Min TNG V 7.1.0
Max TNG V 9.0.0
Files modified
placesearchform.php (V7)
extensions/placesearchform.php (V8)
Related Mods
Please update your additional language cust_text.php files with translations based upon the Custom Text Additions for this mod.

Event Place Search Mod

When you enter a place location associated with a Birth, Death, Burial, Marriage, Divorce, or other Event, it is associated with your specific person record.

These locations may be searched to find other people that have the locations associated with them.

TNG version 6 and greater has a built in feature to find exact matches for this type of search. The grey magnifying glass next to locations will provide the results of an exact match to the location it is next to.

This mod will allow you to do a similar search, but in a more general matching scheme by adding a small Event Search Form on your advanced search page.

This mod is now distributed under the Mod Manager tool for TNG versions 7.1.0 and greater.


This mod was developed by Brian McFadyen


  • A working TNG installation.
  • A backup of your TNG searchform.php and placesearch.php files.
  • An installed current version of the Mod Manager.

Revision History

Version Date Contents
V9.0.0.0 Feb 2, 2012 Updates for TNG V9
V8.1.0 May 30, 2010 Updates for TNG V8
V2.4 Dec 4, 2009 Updated config file documentation to point to TNG Wiki. This file is identical as that of V2.3 included in the Mod Manager zip file, but will soon be eliminated from the bundle.
TNG Version 7.1.0 May 18, 2009 Code support for this mod is now contained in the Mod Manager module
Rev 1.2 Jul 1, 2008 Updated installation instructions for TNG V7.0.0
Rev 1.1 Jul 11, 2007 Updated installation instructions for TNG V6.1.1, validated up to V6.2.0
Rev 1.0 May 14, 2007 minor instruction update for TNG V6.1.0
Jan 21, 2007 Initial release

Automated Installation

  1. Download the appropriate version mod configuration zip from the status box above.
  2. Extract the .zip to your ./admin/mod_folder for TNG V7 or /mods for TNG V8.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the placesearch_form_vXXXXX.cfg.

Custom Text Additions

The following custom text will be added to your English/cust_text.php file by this mod. If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course.

//Place Search Form  (English)
$text[searchplaces] = "Event Place Search";
$text[findplaces] = "Find a place location associated with a Birth, Death, Burial, Marriage, Divorce, or other Event,<br /> it is associated with your specific person record.";
$text[eventscont] = "Place containing";
$text[andcont] = "And containing";
//Place Search Form Text (German)
$text[searchplaces] = "globale Ortssuche";
$text[findplaces] = "Finde eine Ortsbezeichnung im Zusammenhang mit Geburt, Tod, Beerdigung, Hochzeit, Scheidung oder anderen Events,<br />wenn sie mit Personen Profilen verbunden sind.";
$text[eventscont] = "Ort enthält";
$text[andcont] = "und enthält";

Side effects

As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager greatly simplifies this process).

Visualization of this mod

The image on the right shows the resultant addition made to the TNG advanced search page.

Placesearch form.jpg


To see how this works and how the form will look on your search page, you can preview it at My Search Page at the bottom of the page.
For this example, try typing "Tiverton" without the quotes in the first search field. It will return all locations that have this in the place field.
You could also type just "Tiver" and achieve the same results.
Try entering "Tiverton" in the first field, and "Cemetery" in the second field. You get the idea.

In the event of a problem

  • Try using the Mod Manager Remove capability
  • copy your backup searchform.php and placesearch.php files to your base TNG directory
    • all should be well now
  • you may also delete the created ./extensions/placesearchform.php file


Thanks go out to Lee Drew who came up with the idea and prompted me to code it. He may be contacted via the tnguser2 mailing list.

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
My family Oname.gif (no public site) see at Oname.gif D,(NL),(GB)
MOTYER Family Genealogy John Mark Motyer Public site

Very useful mod,
but not quite working yet
on my site
see here EN, DE, RU
... ... ... ... ...