Google Maps - Cemetery Message

From TNG_Wiki
Revision as of 16:47, 17 March 2010 by KenRoy (talk | contribs) (Text replace - 'Category:TNGmods' to 'Category:Modifications')
Jump to navigation Jump to search
Cemetery Message Mod
Summary Adds a message to the Google maps for Cemeteries on headstones.php and showmap.php pages
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link google_map_cemetery_msg_v1.0.zip
Download stats {{{download_stats}}}
Author(s) Ken Roy
Homepage Google Map - Cemetery Message Mod
Mod Support TNG Forums
Contact Developer {{{mod_contact}}}
Latest Mod 1.0
Min TNG V 7.1.3
Max TNG V 7.1.3
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 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 file from google_map_cemetery_msg_v1.0.zip
  2. After downloading the zip file, unzip the config file into your admin/mod_folder
  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.

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

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

$text[getdirections] = "Click to get directions";

$text[directionsto] = " to the ";

French Custom Text

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

// Cemetery Google Map Mod

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

$text[getdirections] = "Cliquez pour obtenir des directions";

$text[directionsto] = " au ";

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

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.

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

TNG User sites using this mod

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