Google Maps - Cemetery Message
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. if the TNG page is compliant. | ||||
Mod Updated | {{{mod_last_update}}} | ||||
Download link | For
gmaps_cemetery_msg_v9.0.1.1.zip
French language files For
for
| ||||
Download stats | View download statistics | ||||
Author(s) | Ken Roy | ||||
Homepage | Google Map - Cemetery Message Mod | ||||
Mod Support | TNG Forums | ||||
Contact Developer | Ken Roy | ||||
Latest Mod | 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 | 9.0.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 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
- Download the appropriate zip file from the summary in the upper right hand corner
- 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
- 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:
into this
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).
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.0.0 | 9.0.3 | EN, FR |
AppeltHaus Genealogy | Lawrence Appelt | Not a Public Site. | 9.0.0.1 | 9.2.0 Beta | EN |