TNG GoogleMap

From Genwiki

Revision as of 20:13, 11 July 2006 by Admin (Talk | contribs)

Jump to: navigation, search

This is not completed yet... check back on Wed Jul 12th...

If you are not comfortable with html and php editing, this page may not be for you


Overview

This TNG modification provides a simple connection to the Google Map facility from within the TNG software for each of the "Place" notations on the "getperson" page.

Resulting TNG features

  1. Within the person pages, an icon ( My tng map small.gif ) to the right of places (and left of the existing magnifier Tng search small.gif) will be displayed to link to the Google Map site


Requirements

  1. A working TNG installation - see The Next Generation of Genealogy Sitebuilding
  2. A backup of your TNG files


TNG Modifications

The following zip file contains the neccessary information to allow the addition of this feature.

  • The zip file TNG_google.place_mod.zip contains 3 files:
    • my_tng_map_small.gif - a green magnifier glass for the goole map icon
    • get_google.php - the google map link function
    • personlib.mods.txt - a description of the 4 mods to be performed in personlib.php


  • IF you are running v 5.1.4 then


  1. backup your existing TNG v5.1.4 personlib.php file
  2. download this zip (TNG_google.place_mod.zip)
  3. unzip it, examine the contents
  4. modify your personlib.php file with the 4 mods listed in the personlib.mods.txt
    • you can cut and paste from this text file
  5. examine the get_google.php function
    • you may use it as is, but you may wish to modify some of the substitution strategy
    • read the section below regarding the get_google function modification
  6. copy the gif, get_google.php, and your modified personlib.php to your base TNG directory
  7. check it out
  • IF you are NOT running v5.1.4 or you HAVE made changes to personlib.php then, you are on your own, however, the modifications are reasonably straight forward. If you are not completely comfortable doing this sort of update, then try upgrading to TNG v5.1.4 first. If you are still intent on trying it, the procedure above will likely be very close.


  • In the event of a problem with your TNG site
  1. copy your backup personlib.php to your base TNG directory
    • all should be well now
  2. you may also delete the get_google.php and my_tng_small_map.gif files


Support

  1. You're sort of on your own... If you have a specific question, or feel some additional info in the above would help others, feel free to contact me directly. Mail me here
    • Please post suggestions, or your own flavour of this mod to the forum or list
Personal tools