Difference between revisions of "Person Not Found Mod"

From TNG_Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<font color=gray><div align="center" style="text-align: center;font-size: 300%; font-weight: bold; margin: 10px auto;"> '' 404 Error Message for Individual page '' </div></font>
+
<font color=gray><div align="center" style="text-align: center;font-size: 300%; font-weight: bold; margin: 10px auto;"> '' 404 Error Message for Individual '' </div></font>
  
 
__NOTOC__
 
__NOTOC__
Line 6: Line 6:
  
 
* [TNG Forum http://www.tngforum.us/index.php?showtopic=2186 TNG 6.2 mod]
 
* [TNG Forum http://www.tngforum.us/index.php?showtopic=2186 TNG 6.2 mod]
==
+
 
 
== getperson.php ==
 
== getperson.php ==
  

Revision as of 14:10, 19 July 2008

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

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