Difference between revisions of "Google Maps - Cemetery Message"

From TNG_Wiki
Jump to navigation Jump to search
(fix template number)
(updated sites using table)
Line 10: Line 10:
 
| mod_version    = 9.0.0.0 for TNG V9<br />8.1.0 for TNG V8<br />1.0 for TNG 7.1.3
 
| mod_version    = 9.0.0.0 for TNG V9<br />8.1.0 for TNG V8<br />1.0 for TNG 7.1.3
 
| min_TNG_ver    = 7.1.3
 
| min_TNG_ver    = 7.1.3
| max_TNG_ver    = 9.0.0
+
| max_TNG_ver    = 9.0.3
 
| TNG_file_list  = headstones.php<br />showmap.php<br />English/cust_text.php
 
| TNG_file_list  = headstones.php<br />showmap.php<br />English/cust_text.php
 
| related_mods    =  
 
| related_mods    =  
Line 77: Line 77:
  
 
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.
 
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  [http://www.royandboucher.com/genealogy/headstones.php?country=U.S.A.&state=Maine&county=Aroostook&tree=  Cemeteries in Northern Maine]
  
 
== Side effects ==
 
== Side effects ==
Line 83: Line 85:
 
* 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).
 
* 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 ==
+
== Sites using this mod ==
 +
 
 +
If you download and install this mod, please add your TNG site to the table below:
 +
 
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
|-
 +
! URL
 +
! User
 +
! Note
 +
! Mod-Version
 +
! TNG-Version
 +
! User-language
 +
|-
 +
| [http://www.royandboucher.com/genealogy/headstones.php?country=U.S.A.&state=Maine&county=Aroostook&tree= Our Roy and Boucher Family]
 +
| [[User:Ken Roy|Ken Roy]]
 +
| Mod Developer
 +
| 9.0.0.0
 +
| 9.0.3
 +
| EN, FR
 +
|-
 +
| ...
 +
| ...
 +
| ...
 +
| ...
 +
| ...
 +
| ...
 +
|}
  
This mod can be seen in effect here [http://www.royandboucher.com/genealogy/headstones.php?country=U.S.A.&state=Maine&county=Aroostook&tree= Cemeteries in Northern Maine]
 
  
 
[[Category:Mods for TNG v7]]
 
[[Category:Mods for TNG v7]]

Revision as of 09:21, 2 August 2012

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 {{{mod_last_update}}}
Download link For
TNG 9.0.1

gmaps_cemetery_msg_v9.0.1.1.zip
For

TNG 9.0
gmaps_cemetery_msg_v9.0.0.0.zip
French language files
For
TNG 8.0
gmaps_cemetery_msg_v8.1.0.zip
for
TNG 7.1.3
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 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 TNG V8 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).

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