Create Site Map Mod

From TNG_Wiki
Jump to: navigation, search

In TNGv12 and beyond, this mod uses the new guidelines for TNG v12+ cust_text.php files
If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]


Create Site Map Mod
Summary Creates a sitemap.xml.gz file to assist Google with indexing a TNG site
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link Create Sitemap TNG 12.0
for
TNG 12.0

Create Sitemap TNG 10.1.x, TNG 11.x.x
for
TNG 10.1.0
TNG 11.0

Roger Moffat's version for TNG 8 TNG 9 and 10
for any version of TNG 8, TNG 9 and TNG 10.0
TNG 9.1
TNG 9.0
TNG 8.1
TNG 8.0


TNG 9.2
TNG 10.0
Download stats {{{download_stats}}}
Author(s) Steve Hoover - initial version
Rush - modified to new Google standards
Roger Moffat - Mod Manager versions for TNG 8, TNG 9, TNG 10.0, TNG 10.1, and TNG 12
Homepage Create Site Map Mod (This page)
Mod Support TNG Community Forums
Contact Developer {{{mod_contact}}}
Latest Mod 9.0.0.1 for up to TNG 10.0
10.1.0.5 for TNG 10.1, TNG 11
12.0.0.0 for TNG 12
Min TNG V 8.0.0
Max TNG V 12.0.x
Files modified
admin_secondary.php
admin_secondmenu.php
Related Mods
Notes


Purpose of the mod

This mod is provided to make creating a Google sitemap a very simple process by clicking a button in the Secondary Processes tab of TNG Admin ------> Import/Export

Developer

This was originally developed by Steve Hoover as a stand alone file to be installed and run manually. Rush updated it for TNG 7 and Google's new standards for sitemap.xml files. Roger Moffat has tweaked it for TNG 8, TNG 9, TNG 10, and TNG 11, and made it a Mod Manager install.

Requirements

  • A working TNG installation. Automated installation has been tested on TNG Version 8.1.3, TNG 9.0.0, TNG 10.0, TNG 10.1. and TNG 11
  • A backup of the TNG modules involved - see below.

Automated Installation

  1. Download the config file from the Mod Summary in the upper right hand corner of this page
  2. Extract the downloaded config file into your mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the config file.

After Installation

The Secondary Processes tab in TNG Admin ------> Import/Export shows a new button

TNG 8 & TNG 9


Create sitemap button.png

TNG 10 & TNG 11


CreateSiteMapButtonTNG10.png


After you click this button, the script will run and then the following page shows what the output is

CreateSiteMapOutput.png



TNG 10.1 Parameters

CreateSiteMapOptions.png

Copy the link for the tngsitemapindex.xml file (the large bold link) and then put that into your Google Webmaster Tools sitemap settings if you have this set up, or place it in your robots.txt file like this


Sitemap: http://lisaandroger.com/tngsitemapindex.xml


and Google will find it there.

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Or copy the backup versions of the TNG modules involved.

Side effects

  • Happiness that creating a sitemap that Google will use to draw new cousins to your site is so much easier :-)

Revision History

Version Release Date Comments
12.0.0.0 14 Nov 2018 Updated Mod to TNG 12 specs for targeting cust_text.php files. No functional changes.
10.1.0.5 14 Nov 2018 Added better handling of Media links, including handling folios - thanks to Rick Bisbee for this bit of code. Better counting of individuals, families and media that are indexed, or skipped due to Living or Private.
10.1.0.4 28 June 2018 Unreleased - allowed for suppression of Living and Private individuals and families.
10.1.0.3 24 August 2016 Updated to work with newer sitemap practices, including indexing images, and to allow options to include or exclude people, families and media.
10.1.0.2 6 August 2015 Updated to change the calculation of the path to write the file to and to properly handle the genealogy URL in WordPress environments.
10.1.0.1 15 June 2015 Updated to support http/https protocols.
10.1.0.0 8 Jan 2015 Updated to work with TNG 10.1 tng_query structures.

TNG User 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
This is an Admin function, so can't be seen in action. Roger Moffat The mod developer. V12.0.0.0/12.0.2 EN
Whittlesey-Whittelsey Family History Willis S Whittlesey III Public site V9.0.0.1/V9.2.0 EN
g.nomi William Vincent Integrated with WordPress v9.0.0.0/v9.2.2 EN
Chamberlain & Eidenbenz Genealogy Graham Chamberlain v10.1.0.3/v12.0.1 GB, DE, FR, ES, NL
Kemp(e) Family History Andrew Kemp see User:Kempons EN
Colleen & Jeff's Roots Colleen Greene v10.0/v.10.0.0 English
Hooley Family Links Rick Hooley Public/Private See Here EN
Wortelboer Genealogy Bernard Wortelboer public site v10.1.0.0/11.0.0 NL/EN
The Dutton's of Vermont Genealogy & History Darrin Dutton Public Site v10.1.0.3/v11.1.1 EN
Familie van Seeventer Sandor van Seeventer Public site v10.1.0.3/12.0.1 beta 2 DE/EN/NL
Brady Family Tree in Western Australia Darryl Brady Public site v10.1.0.0/10.1.1 EN, DE
Quigley Doyle Family Tree Don Quigley Public Site 10.1.0.1/11.0.0 EN
The Extended Craxford Family Website Alan Craxford Public site v10.1.0.3/10.1.3 EN
Family Tree Mystery - Bond-Slocum/Anderson-Gummow Tim Slocum Public site v10.1.0.3/11.0.1 EN
Gambrill Family Tree Bobby Gambrill Public site v10.1.0.3 / 11.0.2 EN
Rintoul/Bowman Family Andrew Rintoul Public/Private 10.1.0.3 / 12.0 EN, DE, ES, FR
Brahde Family Tree Per Brahde Public 10.1.0.3 / 11.1.1 EN, DK
Stamboom Jongman Roel Jongman Public/Private site 10.1.0.3/10.1.3 NL, DE, EN
Bisbee Family Connection Rick Bisbee Public site 10.1.0.3/TNGv12 PHP7.2 EN
Cole / Tanner Family Tree David Cole Public/Private see here English
Lindell-Herndon Genealogy Bill Herndon Public site 10.1.0.3 / 12.0.2 DA, DE, EN, ES, FR, SV

TNG modules Involved

  • admin_secondary.php
  • admin_secondmenu.php
  • adds a line to languages/English/cust_text.php and languages/English-UTF8/cust_text.php