Difference between revisions of "Source Not Found Mod"

From TNG_Wiki
Jump to navigation Jump to search
(added French language files)
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{restricted}}{{TNGmod
| mod_name        = Message 404 - showsource Mod
+
| mod_name        = Source Not Found Mod
 
| mod_summary    = Displays a meaningful 404 error message that allows the visitor to browse the sources for your site.
 
| mod_summary    = Displays a meaningful 404 error message that allows the visitor to browse the sources for your site.
 
| mod_validation  = Not compliant, but then it's an error page.
 
| mod_validation  = Not compliant, but then it's an error page.
| download_link  = For {{Tv90}}[[Media:source_not_found_v9.0.0.0.zip| source_not_found_v9.0.0.0.zip]]<br />[[Media:source_not_found_v9.0.0.0_fr.zip| French language files]]<hr />For {{Tv80}} [[Media:source_not_found_v8.1.0.zip| source_not_found_v8.1.0.zip]]<hr />For {{Tv70}}[[Media:source_not_found_v1.1.zip| source_not_found_v1.1.zip]]  
+
| mod_last_update = 12 Jan 2015
 +
| download_link  = For {{Tv120}}{{Tv110}}{{Tv1010}}[https://www.royandboucher.com/ccount/click.php?id=223&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} source_not_found_v10.1.0.1.zip]<hr />For <span class="nowrap">{{Tv100}}{{Tv90}}</span>[https://www.royandboucher.com/ccount/click.php?id=70&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} source_not_found_v9.0.0.0.zip]<br />[https://www.royandboucher.com/ccount/click.php?id=71&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} French language files]<hr />For {{Tv80}} [https://www.royandboucher.com/ccount/click.php?id=72&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} source_not_found_v8.1.0.zip]<hr />For {{Tv70}}[https://www.royandboucher.com/ccount/click.php?id=73&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} source_not_found_v1.1.zip]
 +
| download_stats = [https://www.royandboucher.com/ccount/index.php?action=stats&id=70-71-72-73-223 View download statistics]
 
| mod_author      = Ken Roy based on Rush Krieger's [[Message 404 - getperson Mod]]
 
| mod_author      = Ken Roy based on Rush Krieger's [[Message 404 - getperson Mod]]
| mod_url        = [[Message 404 - showsource Mod]] (This page)
+
| mod_url        = [[Source Not Found Mod]] (This page)
| mod_support    = [http://www.tngforum.us/ TNG Forums]
+
| mod_support    = [http://tng.community/ TNG Community Forums]
| mod_contact    =
+
| mod_contact    = [https://www.royandboucher.com/tng/mod_support.php Ken Roy]
| mod_version    = 9.0.0.0 for TNG V9<br />8.1.0 for TNG V8<br />1.0 for TNG V7
+
| mod_version    = 10.1.0.1 for TNG V0.1 and up<br />9.0.0.0 for TNG V9 and up<br />8.1.0 for TNG V8<br />1.0 for TNG V7
 
| min_TNG_ver    = 7.0.0
 
| min_TNG_ver    = 7.0.0
| max_TNG_ver    = 9.0.0
+
| max_TNG_ver    = 12+
 
| TNG_file_list  = showsource.php
 
| TNG_file_list  = showsource.php
| related_mods    = [[Message 404 - getperson Mod]]
+
| related_mods    = [[Person Not Found Mod]]
 
| notes          = This mod might be helpful to keep visitors on your site if you use the [[Resequencing_IDs]] feature in TNG 7.0.0 and above.<br />If using multiple languages, please add the [[Message 404 - showsource Mod#Custom Text Additions|custom text]] for your other languages
 
| notes          = This mod might be helpful to keep visitors on your site if you use the [[Resequencing_IDs]] feature in TNG 7.0.0 and above.<br />If using multiple languages, please add the [[Message 404 - showsource Mod#Custom Text Additions|custom text]] for your other languages
 
}}
 
}}
 
+
<!-- French language file name = source_not_found_v9.0.0.0_fr.zip -->
{|align=right
+
{| style="margin-right:0.5 em;" align="right"
|__TOC__
+
| __TOC__
 
|}
 
|}
  
Line 27: Line 29:
 
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.
 
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 [http://www.tngforum.us/index.php?showtopic=2223&pid=17438&st=0&#entry17438 TNG 7.0 mod]
+
See the TNG Forum entry for [https://tng.community/index.php?/forums/index.php?showtopic=2223&pid=17438&st=0&#entry17438 TNG 7.0 mod]
  
  
Line 47: Line 49:
 
! Date
 
! Date
 
! Contents
 
! Contents
 +
|-
 +
| v10.1.0.1
 +
|width="22%" | 12 January 2015
 +
| updated for TNG V10.1
 
|-
 
|-
 
| v9.0.0.0
 
| v9.0.0.0
Line 66: Line 72:
 
|  
 
|  
 
| 19 July 2008
 
| 19 July 2008
| Mod originally provided on TNG Forum for [http://www.tngforum.us/index.php?showtopic=2223&pid=17438&st=0&#entry17438 TNG 7.0]
+
| Mod originally provided on TNG Forum for [https://tng.community/index.php?/forums/index.php?showtopic=2223&pid=17438&st=0&#entry17438 TNG 7.0]
 
|}
 
|}
  
Line 86: Line 92:
  
 
== Custom Text ==
 
== Custom Text ==
 +
  
 
=== English/cust_text.php ===  
 
=== English/cust_text.php ===  
  
The following is added to the English/cust_text.php in TNG V7 and to the languages/English/cust_text.php and languages/English-UFT8/cust_text.php in TNG V8
+
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
  
  
Line 138: Line 145:
 
* [[Message 404 - getperson Mod]]
 
* [[Message 404 - getperson Mod]]
  
== TNG User sites using this mod ==
+
== Sites using this mod ==
  
 
If you download and install this mod, please add your TNG site to the table below:
 
If you download and install this mod, please add your TNG site to the table below:
Line 147: Line 154:
 
! User
 
! User
 
! Note
 
! Note
! Mod-Version/TNG-Version
+
! Mod-Version
 +
! TNG-Version
 
! User-language
 
! User-language
 
|-
 
|-
| [http://www.royandboucher.com/genealogy/ Our Acadian, French Canadian, and Maine Ancestors]
+
| [https://www.royandboucher.com/genealogy/ Our Acadian, French Canadian, and Maine Ancestors]
 
| [[User:Ken Roy|Ken Roy]]
 
| [[User:Ken Roy|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.  
 
| I use this TNG mod to help keep on my site if the source ID from a search engine is no longer found.  
| V8.1.1/TNG 8.1.3<br />V9.0.0.0/TNG 9.0.0 beta
+
| 10.1.0.1
 +
| 12.0.0
 
| EN, FR
 
| EN, FR
 
|-
 
|-
 +
| [http://www.kempfamilyhistory.com  Kemp(e) Family History]
 +
| [[User:Kempons|Andrew Kemp]]
 +
|
 +
| see [[User:Kempons]]
 +
| see [[User:Kempons]]
 +
| EN
 +
|-
 +
| [https://www.ourlife.us OurLife Family History - McMullen Clan]
 +
| [[User:Seanst|Sean Thompson]]
 +
| Not a public site.
 +
| 10.1.0.1
 +
| 11.1.0
 +
| English
 +
|-
 +
| [http://genealogy.oceanwharf.com Hooley Family Links]
 +
| [[User:Lastejas|Rick Hooley]]
 +
| Public/Private
 +
| [[User: lastejas|See Here]]
 +
| [[User: lastejas|See Here]]
 +
| EN
 +
|-
 +
| [http://slekt.nordseth.me SiEiNo's slekt på Internett]
 +
| [[User:SieinoTng|Eilif A Nordseth]]
 +
| Not a public site
 +
| 10.1.0.1
 +
| 11.1.1
 +
| English, Norwegian
 +
|-
 +
| [http://bumbery.com/ Bumbery-Wangler]
 +
| [[User:Bob|Bob Bumbery]]
 +
| Public site
 +
| 10.1.0.1
 +
| 11.1.2
 +
| English
 +
|-
 +
| [https://www.rgstrong-genes.com R G Strong Family Genealogy]
 +
| [[User:Rgstrong|Russ Strong]]
 +
| Public site
 +
| 10.1.0.1
 +
| 12.0.2
 +
| EN, FR, DE, NL
 +
|-
 +
| ...
 
| ...
 
| ...
 
| ...
 
| ...
Line 163: Line 215:
 
|}
 
|}
  
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v11]]
 +
[[Category:Mods for TNG v10]]
 +
[[Category:Mods for TNG v9]]
 +
[[Category:Mods for TNG v8]]
 
[[Category:Mods for TNG v7]]
 
[[Category:Mods for TNG v7]]
[[Category:Mods for TNG v8]]
+
[[Category:showsource.php mods]]
[[Category:Mods for TNG v9]]
+
[[Category:cust_text.php English mods]]
 +
[[Category:cust_text.php French mods]]

Revision as of 17:48, 29 October 2018

Restricted 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 Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


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
Download link For
TNG 12.0
TNG 11.0
TNG 10.1.0
source_not_found_v10.1.0.1.zip
For
TNG 10.0
TNG 9.0
source_not_found_v9.0.0.0.zip
French language files
For
TNG 8.0
source_not_found_v8.1.0.zip
For
TNG 7.0
source_not_found_v1.1.zip
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
9.0.0.0 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+
Files modified
showsource.php
Related Mods
Notes
This mod might be helpful to keep visitors on your site if you use the Resequencing_IDs feature in TNG 7.0.0 and above.
If using multiple languages, please add the custom text for your other languages



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


Developer

Ken Roy based on Rush Krieger's Message 404 - getperson Mod for the individual page.

Requirements

  • 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.

Revision History

Version Date Contents
v10.1.0.1 12 January 2015 updated for TNG V10.1
v9.0.0.0 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

Automated Install

  1. Download the appropriate zip file from the summary in the upper right hand corner
  2. Unzip the downloaded config file into your admin/mod_folder in TNG V7 and mods folder in TNG V8 and above
  3. 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.

Custom Text

English/cust_text.php

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.";

French/cust_text.php

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 Mod

Without this mod, the normal 404 message displayed by TNG is shown in the image on the right.

This page does not exist.jpg

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.

Message 404 source.jpg

Related Links

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
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 Public/Private See Here See Here EN
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
R G Strong Family Genealogy Russ Strong Public site 10.1.0.1 12.0.2 EN, FR, DE, NL
... ... ... ... ... ...