Google Maps - Cemetery Message

Aus TNG_Wiki
Zur Navigation springen Zur Suche springen
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Restricted Downloads of Google Maps - Cemetery Message 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


Ambox notice.png The latest version of this mod uses the 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]

TNG 14.0
TNG 13.0
TNG 12.0


Cemetery Message Mod
Summary Adds a message to the Google maps for Cemeteries on headstones.php and showmap.php pages
Validation Mod is XHTML compliant.Valid-xhtml10.png
if the TNG page is compliant.
Mod Updated 5 Dec 2021
Download link

TNG 11.0
TNG 10.0
TNG 9.0.1
gmaps_cemetery_msg_v9.0.1.2.zip
[Show older versions]

[Hide old versions]

Download stats View download statistics
Author(s) Ken Roy
Homepage Google Map - Cemetery Message Mod
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.0.0.3 for TNG V13+
12.0.0.2 for TNG V12+
9.0.1.2 for TNG V9 and above
9.0.0.0 for TNG V9
8.1.0 for TNG V8
1.0 for TNG 7.1.3
Min TNG V 7.1.3
Max TNG V 14+
Files modified
headstones.php
showmap.php
English/cust_text.php
Related Mods
Notes
If using multiple languages, please add the custom text for your other languages



Purpose of the mod

This mod adds a message to the Google Maps in the headstones.php and showmap.php files for TNG 7.1.3 that alerts the user that clicking on the pin will provide additional information and also adds the required $text variables for the external link to the Google Maps server in the balloon so the user can get Directions to the Cemetery.

This mod applies to TNG 7.1.3 and above only

Developer

This mod was developed by Ken Roy with help from Roger Moffat

Requirements

  • A working TNG installation. Automated installation has been tested on TNG Version 7.1.3.
  • A backup of the TNG modules involved - headstones.php, showmap.php, and English/cust_text.php
  • An installed current version of the Mod Manager.

Automated Installation

  1. Download the appropriate zip file from the summary in the upper right hand corner
  2. After downloading the zip file, unzip the config file into your admin/mod_folder for TNG V7.1.3 and mods folder for 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 google_map_cemetery_msg_v1.0.cfg for TNG V7.1.3 and gmaps_cemetery_msg_v8.1.0.cfg for TNG V8

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.

The following custom text will be added to your English/cust_text.php file by this mod. If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course.

// Cemetery Google Map Mod</nowiki></code>
$text['cemeteriesmsg'] = "Click on the <strong>pin</strong> in the map for additional information on the Cemetery.  Click on the <strong>link</strong> within the balloon or on the <strong>pin</strong> before the Cemetery name below to get directions to the cemetery from Google Maps.";
$text['showmapmsg'] = "Click on the <strong>pin</strong> in the map for additional information on the Cemetery.  Click on the <strong>link</strong> within the balloon or on the <strong>pin</strong> before the Latitude and Longitude below to get directions to the cemetery from Google Maps.";


French Custom Text

For example, you would add to the French/cust_text.php

// Cemetery Google Map Mod</nowiki></code>
$text['cemeteriesmsg'] = "Cliquez sur la <strong>goupille</strong> dans la carte pour des informations supplémentaires sur le cimetière.  Cliquez sur le <strong>lien</strong> dans le ballon ou sur la goupille devant le nom du cimetière ci-dessous pour obtenir des directions au cimetière de Google Maps.";
$text['showmapmsg'] = "Cliquez sur la <strong>goupille</strong> dans la carte pour des informations supplémentaires sur le cimetière.  Cliquez sur le <strong>lien</strong> dans le ballon ou sur la goupille devant la latitude et la longitude ci-dessous pour obtenir des directions au cimetière de Google Maps.";

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Or copy the backup versions headstones.php, showmap.php, and English/cust_text.php back to your site.

Visualization of this mod

Turns this:

Google-Maps Cemeteries-no-msg.jpg

into this

V8 Google-Maps Cemeteries-with-msg.jpg

by adding a message above the map and the required text for providing a link to the Google Maps server to obtain directions to the cemetery.

This mod can be seen in effect here Cemeteries in Northern Maine

Side effects

  • Happiness that your Cemetery Maps are much more informative :-)
  • As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager to remove the mod before the upgrade, and re-installing the mod after the upgrade greatly simplifies this process. You can also use the Mod Manager Cleanup on the regressed mod).

Revision History

Version Date Contents
v13.0.0.3 5 Dec 2021 Updated for TNG v13+
v12.0.0.2 25 Sep 2020 No code changes. Updated to use new custom text Mod Guidelines for TNG v12+
v9.0.1.2 14 January 2015 No code changes. Updated to add Wiki icon and link in Mod List for TNG V10.1
v9.0.1.1 12 February 2012 updated for TNG V9.0.1
v9.0.1.0 28 January 2012 updated for TNG V9
v8.1.0 2 January 2011 updated for TNG V8.1

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 Roy and Boucher Family Ken Roy Mod Developer 13.0.0.3
TNG 14.0.4
EN, FR
AppeltHaus Genealogy Lawrence Appelt Not a Public Site. V9.0.1.2 TNG 10.1.0 EN
Walls Wrightsman Family Carl B Zachary V9.0.1.1 TNG 9.2.0 English
Total Family History Scott Bennett Private Site (For right now) V9.0.1.1 TNG 10.0.1 EN
Robin's Genealogy Database Robin Richmond Public site 9.0.1.2 10.0.3 EN
OurLife Family History - McMullen Clan Sean Thompson Not a public site 9.0.1.2 11.1.0 English
Genealogy of the Weir and Drain Families Beverley Stimpson Public Site 9.0.1.2 11.1.2 EN
R G Strong Family Genealogy Russell Strong Public Site 13.0.0.3 14.0.4 EN, FR, DE, NL
The Duttons of New England Darrin Dutton Public / Private 12.0.0.2 13.0.2 EN