%name:Person Not Found Mod-$25%
%version:V10.1.0.1%
%wikipage:Person_Not_Found_Mod%
%description:This mod is for changing the This Page does not exist message with a Person Not Found message so the user might remain on the site if a personID has changed due to re-sequencing or merging of individuals.
Mod developer is Rush Krieger with multi-language enhancement by Ken Roy.
// header( "Location: thispagedoesnotexist.html" ); replaced with custom 404 page Rush/Ken Roy - line 46
/$$ swapped out head 404 for tng_header%
%target:getperson.php%
%location:%
tng_free_result($result);
header( "Location: thispagedoesnotexist.html" );
%end:%
%replace:%
tng_free_result($result);
// header( "Location: thispagedoesnotexist.html" ); replaced with custom 404 page Rush Krieger/Ken Roy
header("HTTP/1.0 404 Not Found");
/*$25*/ tng_header( $text['logfilefor'] . " $owner", $flags );
echo "
";
echo " {$text['sorry']}";
echo "";
echo "
{$text['personpagemoved']}
";
echo "
{$text['pleaseuse']} {$text['search']} {$text['tolocateperson']}";
echo "";
echo ""; // see TNG Forum Entry http://www.tngforum.us/index.php?s=&showtopic=2186&view=findpost&p=9701 Rush/Ken Roy
%end:%
// Note that you will have to add your other languages to the config file
%target:languages/English/cust_text.php%
%location:%
?>
%end:%
%insert:before%
// 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.";
%end:%
%target:languages/English-UTF8/cust_text.php%
%location:%
?>
%end:%
%insert:before%
// 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.";
%end:%