Source Not Found Mod
|Downloads of Source Not Found Mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account|
|Source Not Found Mod|
|Summary||Displays a meaningful 404 error message that allows the visitor to browse the sources for your site.|
|Validation||Not compliant, but then it's an error page.|
|Mod Updated||12 Jan 2015|
French language files
|Download stats||View download statistics|
|Author(s)||Ken Roy based on Rush Krieger's Message 404 - getperson Mod|
|Homepage||Source Not Found Mod (This page)|
|Mod Support||TNG Community Forums|
|Contact Developer||Ken Roy|
|Latest Mod||10.1.0.1 for TNG V0.1 and up|
126.96.36.199 for TNG V9 and up
8.1.0 for TNG V8
1.0 for TNG V7
|Min TNG V||7.0.0|
|Max TNG V||12+|
Purpose of Mod
This mod changes the thispagedoesnotexist.html for the showsource.php to a more friendly 404 page that might keep the user on your site by allowing the visitor to browse the sources for your site.
You may want to consider using this mod if you use the Resequencing_IDs feature in TNG 7.0 to re-sequence Sources, so that search engine links will not fail entirely.
See the TNG Forum entry for TNG 7.0 mod
Ken Roy based on Rush Krieger's Message 404 - getperson Mod for the individual page.
- A working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0. Manual installation previously used on TNG 7
- A backup of your TNG showsource.php file.
- An installed current version of the Mod Manager.
|v10.1.0.1||12 January 2015||updated for TNG V10.1|
|v188.8.131.52||2 February 2012||updated config file for TNG V9|
|v8.1.0||27 May 2010||updated config file for TNG V8|
|v1.1||18 December 2009||updated config file to eliminate dependency on Message 404 - getperson Mod for some of the $text variables|
|v1.0||25 May 2009||original Mod Manager config file|
|19 July 2008||Mod originally provided on TNG Forum for TNG 7.0|
- Download the appropriate zip file from the summary in the upper right hand corner
- Unzip the downloaded config file into your admin/mod_folder in TNG V7 and mods folder in TNG V8 and above
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the source_not_found.cfg.
Custom Text Additions
Note that the config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for your other languages, or you need to manually add the custom text to your other language cust_text.php files.
See the English custom Text additions made to your English/cust_text.php file by this mod.
The language additions for French custom Text is shown below.
Note that the config file only includes the custom text for the English language, so you will need to add the other languages that your site supports. Also if you did not install the Message 404 - getperson Mod you will need to add the $text[sorry] to the config file.
The following is added to the English/cust_text.php in TNG V7 and to the languages/English/cust_text.php and languages/English-UTF8/cust_text.php in TNG V8
// Added for Source Not Found message in showsource.php 404 error message $text['source_sorry'] = "Sorry!"; $text['sourcepagemoved'] = "The page for the source you were looking for may have moved,"; $text['source_use'] = "Please use the "; $text['tolocatesource'] = " feature to locate the source page.";
For the French language, you would add the following to the French/cust_text.php in TNG V7 and to the languages/French/cust_text.php or languages/French-UFT8/cust_text.php in TNG V8
// Added for Source Not Found message in showsource.php 404 error message $text[source_sorry] = "Désolé!"; $text[sourcepagemoved] = "La page pour la source que vous cherchez peut-être déplacée,"; $text[source_use] = "Veuillez employer la forme de "; $text[tolocatesource] = " pour localiser la source.";
- Try using the Mod Manager Remove capability
- Or copy your backup showsource.php files to your TNG directory
- all should be well now
Visualization of this mod
Without this mod, the normal 404 message displayed by TNG is shown in the image on the right.
With Mod Installed
With the Message 404 - source Mod installed, the source not found message is changed to one that allows the user to click the Browse All Sources link to find the source as shown in the image on the right.
- 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.
- Message 404 - getperson Mod
Sites using this mod
If you download and install this mod, please add your TNG site to the table below:
|Our Acadian, French Canadian, and Maine Ancestors||Ken Roy||I use this TNG mod to help keep on my site if the source ID from a search engine is no longer found.||10.1.0.1||12.0.0||EN, FR|
|Kemp(e) Family History||Andrew Kemp||see User:Kempons||see User:Kempons||EN|
|OurLife Family History - McMullen Clan||Sean Thompson||Not a public site.||10.1.0.1||11.1.0||English|
|Hooley Family Links||Rick Hooley||10.1.0.1||11.0.2||English|
|SiEiNo's slekt på Internett||Eilif A Nordseth||Not a public site||10.1.0.1||11.1.1||English, Norwegian|
|Bumbery-Wangler||Bob Bumbery||Public site||10.1.0.1||11.1.2||English|