Person Not Found Mod
Jump to navigation
Jump to search
404 Error Message for Individual
This mod describes how to change the thispagedoesnotexist.html for the getperson.php to a more friendly 404 page that might keep the user on your site
- [TNG Forum http://www.tngforum.us/index.php?showtopic=2186 TNG 6.2 mod]
getperson.php
Replace line 46 (in TNG 7.0, line number is different in TNG 6.2)
header( "Location: thispagedoesnotexist.html" );
with
// header( "Location: thispagedoesnotexist.html" ); replaced with custom 404 page Rush/Ken Roy header("HTTP/1.0 404 Not Found"); echo "<center>"; echo "<font size=\"5\" face=\"Verdana\"> <b>$text[sorry]</b>"; echo "<font size=\"3\" face=\"Verdana\">"; echo "<br /><br />$text[personpagemoved]<br />"; echo "<br />$text[pleaseuse] <a href=$tngdomain/searchform.php>$text[search]</a> $text[tolocateperson]"; echo "</font>"; echo "</center>"; // see TNG Forum Entry http://www.tngforum.us/index.php?s=&showtopic=2186&view=findpost&p=9701 Rush/Ken Roy
cust_text.php
Note $text variables for TNG 7.0 are slightly different to all support the mod for showsource.php
English/text.php
additions
// Added for Person Not Found message in getperson.php 404 error message $text[sorry] = "Sorry!"; $text[personpagemoved] = "The page for the person you were looking for may have moved,"; $text[pleaseuse] = "Please use the "; $text[tolocateperson] = " feature to locate the person.";
French/text.php
additions
// Added for Person Not Found message in getperson.php 404 error message $text[sorry] = "Désolé!"; $text[personpagemoved] = "La page pour la personne que vous cherchez peut-être déplacée,"; $text[pleaseuse] = "Veuillez employer la forme de "; $text[tolocateperson] = " pour localiser la personne.";
Related Links
This mod is used in conjunction with the Resequencing IDs to help keep the user on your site, if you resequenced or deleted some IDs.
TNG User sites using this mod
- Please add TNG site that you have found that utilize this modification
Site List
- Our Acadian, French Canadian, and Maine Ancestors I use this TNG mod to help keep on my site if the person ID from a search engine is no longer found. (Ken Roy)