🍪
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Google Maps - Cemetery Message

Revision as of 16:42, 31 October 2018 by KenRoy (talk | contribs) (add toggle to hide older mod versions)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 16:42, 31 October 2018 by KenRoy (talk | contribs) (add toggle to hide older mod versions)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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


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 14 Jan 2015
Download link
TNG 12.0
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 Ken Roy
Latest Mod 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 12+
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



Contents

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
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 9.0.1.2 12.0.0 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 Russ Strong Public Site 9.0.1.2 12.0.1 EN, FR, DE, NL