Difference between revisions of "TNG Gendex Search"

From Genwiki

Jump to: navigation, search
m
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
<font size="-1" color="green">
 
<font size="-1" color="green">
''Revision 1.3 - Jul 11, 2007 - minor html validation correction.<br />
+
''TNG Version 7.1.0 - Code support for this mod is now included in the Mod Manager Package''<br />
''Revision 1.2 - May 14, 2007 - no changes required, valid for TNG V6.1 <br />
+
''Revision 2.1 - Jul 3, 2008 - corrections to the customized text''<br />
 +
''Revision 2.0 - Jul 2, 2008 - updated for TNG V7, now self updates the title''<br />
 +
''Revision 1.3 - Jul 11, 2007 - minor html validation correction.''<br />
 +
''Revision 1.2 - May 14, 2007 - no changes required, valid for TNG V6.1'' <br />
 
''Revision 1.2 - Oct 25, 2006 - updated with Multi-language support(contributed by [http://legault-deslauriers.net Jean Deslauriers])''<br />
 
''Revision 1.2 - Oct 25, 2006 - updated with Multi-language support(contributed by [http://legault-deslauriers.net Jean Deslauriers])''<br />
 
''Revision 1.1 - Sep 30, 2006 - minor cosmetic adjustment to line up the field entry boxes''
 
''Revision 1.1 - Sep 30, 2006 - minor cosmetic adjustment to line up the field entry boxes''
Line 15: Line 18:
 
==What's a GENDEX Search==
 
==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 238 databases, and contains over 3.5 million names.  The main page to this index is [http://tngnetwork.lythgoes.net/index.php here]
+
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 [http://tngnetwork.lythgoes.net/index.php here]
  
  
Line 21: Line 24:
 
==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 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.  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.
  
  
Line 32: Line 35:
  
  
==TNG Modifications for TNG V5 or V6==
+
==TNG Modifications for TNG V5, V6, or V7==
  
 
The following zip file contains the single gendexform.php file.
 
The following zip file contains the single gendexform.php file.
  
* The zip file [[Media:TNG_gendexform_1.3.zip|TNG_gendexform_1.3.zip]] contains 1 file:
+
* The zip file [[Media:TNG_gendexform_2.1.zip|TNG_gendexform_2.1.zip]] contains 1 file:
 
** gendexform.php - the Gendex form to be included in the TNG searchform.php file
 
** gendexform.php - the Gendex form to be included in the TNG searchform.php file
  
  
 
# backup your existing TNG searchform.php file
 
# backup your existing TNG searchform.php file
# download this zip ([[Media:TNG_gendexform_1.3.zip|TNG_gendexform_1.3.zip]])
+
# download this zip ([[Media:TNG_gendexform_2.1.zip|TNG_gendexform_2.1.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 64: Line 67:
 
<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 gendexform.php to your base TNG directory </li>
:* ensure the gendexform.php is readable by all
+
:* 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.
 +
<li> 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.</li>
 
<li> check it out </li>
 
<li> check it out </li>
 
</ol>
 
</ol>
 +
  
  

Latest revision as of 20:28, 27 April 2009

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


Example

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.


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 V5, V6, or V7

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

  • The zip file TNG_gendexform_2.1.zip 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 (TNG_gendexform_2.1.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] . "gendexform.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 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

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