Google Maps - Change Pin Legend Mod

From TNG_Wiki
Revision as of 13:44, 21 February 2010 by TheKiwi (talk | contribs) (New page: {{TNGmod | 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 | download_link = [http://l...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Change Pin Legend Mod
Summary Changes the layout of the pins in the Pin Legend below the Google maps on getperson.php
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link Downloads - Roger's Ramblings
Download stats {{{download_stats}}}
Author(s) Roger Moffat
Homepage Google_Maps_-_Change_Pin_Legend_Mod
Mod Support TNG Forums
Contact Developer {{{mod_contact}}}
Latest Mod 1.0
Min TNG V 7.0.0
Max TNG V 7.1.2
Files modified
getperson.php
googlemaps/text_marker.php - New
LiberationSans-Regular.ttf - New
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.2.
  • A backup of the TNG modules involved - see below.
  • An installed current version of the Mod Manager.

Automated Installation

  1. Download the file from Downloads | Roger's Ramblings
  2. Extract the downloaded config file into your admin/mod_folder. You should end up with 1 files (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 - Change Pin Legend Mod you probably don't want to use this mod - it uses less placelevels than the Google Maps - Change Pin Legend Mod and so if you have made any changes to your place levels, some of them will be unused if this 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 modules Involved

This mod modifies getperson.php, and adds a new file googlemaps/text_marker.php, and installs a TrueType font - LiberationSans-Regular into the googlemaps folder that is used to put the text on the pins.

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:

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