Difference between revisions of "Google Maps - Change Pin Legend Mod"

From TNG_Wiki
Jump to navigation Jump to search
m (updated for TNG V8.1 and new Contact Developer field)
Line 2: Line 2:
 
| mod_name        = Change Pin Legend Mod
 
| mod_name        = Change Pin Legend Mod
 
| mod_summary    = Changes the layout of the pins in the Pin Legend below the Google maps on getperson.php
 
| mod_summary    = Changes the layout of the pins in the Pin Legend below the Google maps on getperson.php
 +
| mod_validation  = This mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| download_link  = [http://lisaandroger.com/downloads/?did=13 TNG Google maps Pin Legend TNG 8] for TNG 8<br />[http://lisaandroger.com/downloads/?did=8 TNG Google maps Pin Legend TNG 7] for TNG 7
 
| download_link  = [http://lisaandroger.com/downloads/?did=13 TNG Google maps Pin Legend TNG 8] for TNG 8<br />[http://lisaandroger.com/downloads/?did=8 TNG Google maps Pin Legend TNG 7] for TNG 7
 
| mod_author      = Roger Moffat  
 
| mod_author      = Roger Moffat  

Revision as of 16:53, 31 January 2011

Change Pin Legend Mod
Summary Changes the layout of the pins in the Pin Legend below the Google maps on getperson.php
Validation This mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link TNG Google maps Pin Legend TNG 8 for TNG 8
TNG Google maps Pin Legend TNG 7 for TNG 7
Download stats {{{download_stats}}}
Author(s) Roger Moffat
Homepage Google Maps - Change Pin Legend Mod
Mod Support TNG Forums
Contact Developer
Latest Mod 8.1.0 for TNG 8
1.1 for TNG 7
Min TNG V 7.0.0
Max TNG V 8.x.x
Files modified
Related Mods
Notes
You can NOT have both this Mod and the Google Maps - More Place Levels Mod installed at the same time


Purpose of the mod

This mod changes the layout of the pins under the Google map on getperson.php from [pin] [= text] [pin] [= text] [pin] [= text] etc to a row of pins with the text superimposed on the bottom of the pin.

Developer

This mod was developed by Roger Moffat

Requirements

  • A working TNG installation. Automated installation has been tested on TNG Version 7.1.x and TNG 8.0.0.
  • A backup of the TNG modules involved - see below.
  • An installed current version of the Mod Manager (note this is built into TNG 8).

Automated Installation

TNG 7

  1. Download the file from TNG Google maps Pin Legend TNG 7
  2. Extract the downloaded config file into your admin/mod_folder folder. You should end up with 1 file (google_maps_change_pin_legend_layout.cfg) and a folder (LiberationSans-Regular) that contains a font needed for this mod.
  3. If you have already installed the Google Maps - More Place Levels Mod you probably don't want to use the Google Maps - Change Pin Legend Mod which uses less place levels - if you have made any changes to your place levels, some of them will be unused if the Google Maps - Change Pin Legend Mod mod is installed.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the google_maps_change_pin_legend_layout.cfg config file.

TNG 8

  1. Download the file from TNG Google maps Pin Legend TNG 8
  2. Extract the downloaded config file into your mods. You should end up with 1 files - gmaps_change_pin_legend_V8.y.z.cfg and a folder containg a TrueType font needed for this mod.
  3. If you have already installed the Google Maps - More Place Levels Mod you probably don't want to use the Google Maps - Change Pin Legend Mod which uses less place levels - if you have made any changes to your place levels, some of them will be unused if the Google Maps - Change Pin Legend Mod mod is installed.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the gmaps_change_pin_legend_V8.y.z.cfg config file.

Even More Pins

If you want to change the pin colours, a complete set of pins, and a handy contact sheet that gives the number and colour matches for all 216 pins can be downloaded here TNG Map Pins - Complete Set

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Or copy the backup versions getperson.php back to your site.

Visualization of this mod

Turns this (TNG 7):

GoogleMapPinsOld.png

or this (TNG8):

GoogleMapPinsTNG8.png

into this

GoogleMapPins6New.png

the pins in less horizontal space.

Side effects

  • Happiness that your Maps are much more attractive :-)
  • 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).

TNG User sites using this mod

This mod can be seen in effect here

TNG modules Involved

In TNG 8 this mod

  • modifies existing TNG file getperson.php
  • adds a script google_text_marker.php that superimposes a text string on the bottom of the image of a pin
  • installs a TrueType font - LiberationSans-Regular - that is used to put the text on the pins.

In TNG 7 this mod

  • modifies existing TNG file getperson.php
  • adds script googlemaps/text_marker.php that superimposes a text string on the bottom of the image of a pin
  • installs a TrueType font - LiberationSans-Regular - that is used to put the text on the pins.