Difference between revisions of "TNG Event Search"

From Genwiki

Jump to: navigation, search
 
(initial page)
Line 1: Line 1:
 
<font color=red>''If you are not comfortable with html and php editing, this page may not be for you''</font>
 
<font color=red>''If you are not comfortable with html and php editing, this page may not be for you''</font>
  
==GENDEX Direct Search form==
+
==Event Place 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.
+
If you want to add a simple/integrated way for your users to search your Events for common place names, 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.
  
  
 
<font size="-1" color="green">
 
<font size="-1" color="green">
''Revision 1.2 - Oct 25, 2006 - updated with Multi-language support(contributed by [http://legault-deslauriers.net Jean Deslauriers])''<br />
+
''Initial release - Jan 21, 2007''<br />
''Revision 1.1 - Sep 30, 2006 - minor cosmetic adjustment to line up the field entry boxes''
+
 
</font>
 
</font>
  
==What's a GENDEX Search==
+
==What are Event Places==
 
+
The TNG Gendex project is a single searchable index of genealogy records from contributing users.  At this writing, it includes indicies from over 238 databases, and contains over 3.5 million names.  The main page to this index is [http://tngnetwork.lythgoes.net/index.php here]
+
  
 +
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 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.
  
  
 
==Example==
 
==Example==
  
To see how the TNG Gendex search form will look on your search page, you can preview it on my site at [http://genealogy.mcfadyen.ca/searchform.php My Search Page] at the bottom of the page.
+
To see how this works and how the form will look on your search page, you can preview it on my site at [http://genealogy.mcfadyen.ca/searchform.php 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.
  
  
Line 30: Line 30:
  
  
==TNG Modifications for TNG V5 or V6==
+
==TNG Modifications for TNG V6==
  
The following zip file contains the single gendexform.php file.
+
The following zip file contains the single placesearchform.php file.
  
* The zip file [[Media:TNG_gendexform_1.2.zip|TNG_gendexform_1.2.zip]] contains 1 file:
+
* The zip file [[Media:TNG_placesearchform_1.0.zip|TNG_placesearchform_1.0.zip]] contains 1 file:
** gendexform.php - the Gendex form to be included in the TNG searchform.php file
+
** placesearchform.php - the Events - Place search form to be included in the TNG searchform.php file
  
  
# backup your existing TNG searchform.php file
+
# backup your existing TNG searchform.php and placesearch.php files
# download this zip ([[Media:TNG_gendexform_1.2.zip|TNG_gendexform_1.2.zip]])
+
# download this zip ([[Media:TNG_placesearchform_1.0.zip|TNG_placesearchform_1.0.zip]])
 
# unzip it, examine the contents
 
# unzip it, examine the contents
 
# find and open your original searchform.php file
 
# find and open your original searchform.php file
Line 51: Line 51:
 
::* to this
 
::* to this
 
  <nowiki> </form>
 
  <nowiki> </form>
  <?php @include($cms[tngpath] . "gendexform.php"); ?>
+
  <?php @include($cms[tngpath] . "placesearchform.php"); ?>
 +
<br /><br />
 +
<?php
 +
tng_footer( "" );
 +
?></nowiki>
 +
::* you can copy the single line above from this page and paste it into your file
 +
# find and open your original searchform.php file
 +
#* edit the last few lines of the file
 +
#** change the last lines from this
 +
<nowiki> </form>
 +
<br /><br />
 +
<?php
 +
tng_footer( "" );
 +
?></nowiki>
 +
::* to this
 +
<nowiki> </form>
 +
<?php @include($cms[tngpath] . "placesearchform.php"); ?>
 
  <br /><br />
 
  <br /><br />
 
  <?php
 
  <?php
Line 59: Line 75:
 
<ol start=5>
 
<ol start=5>
 
<li> close your searchform.php file and copy it to your base TNG directory </li>
 
<li> close your searchform.php file and copy it to your base TNG directory </li>
<li> copy the gendexform.php to your base TNG directory </li>
+
<li> copy the placesearchform.php to your base TNG directory </li>
:* ensure the gendexform.php is readable by all
+
:* ensure the placesearchform.php is readable by all
 
<li> check it out </li>
 
<li> check it out </li>
 
</ol>
 
</ol>

Revision as of 22:07, 21 January 2007

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

Event Place Search form

If you want to add a simple/integrated way for your users to search your Events for common place names, 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.


Initial release - Jan 21, 2007

What are Event Places

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 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.


Example

To see how this works and how the form will look on your search page, you can preview it on my site 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.


Requirements

  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 V6

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

  • The zip file TNG_placesearchform_1.0.zip contains 1 file:
    • placesearchform.php - the Events - Place search form to be included in the TNG searchform.php file


  1. backup your existing TNG searchform.php and placesearch.php files
  2. download this zip (TNG_placesearchform_1.0.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
 </form>
 <br /><br />
 <?php
 tng_footer( "" );
 ?>
  • to this
 </form>
 <?php @include($cms[tngpath] . "placesearchform.php"); ?>
 <br /><br />
 <?php
 tng_footer( "" );
 ?>
  • you can copy the single line above from this page and paste it into your file
  1. find and open your original searchform.php file
    • edit the last few lines of the file
      • change the last lines from this
 </form>
 <br /><br />
 <?php
 tng_footer( "" );
 ?>
  • to this
 </form>
 <?php @include($cms[tngpath] . "placesearchform.php"); ?>
 <br /><br />
 <?php
 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 placesearchform.php to your base TNG directory
    • ensure the placesearchform.php is readable by all
  3. 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

Acknowledgements

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


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