Geocode CopyHelp Mod

From TNG_Wiki
Jump to navigation Jump to search
Geocode CopyHelp
Summary Creates a Geocode Copy/Paste Function in the Places Page
Validation {{{mod_validation}}}
Mod Updated {{{mod_last_update}}}
Download link geocode_copyhelp_v8.1.1.zip for TNG V8
geocode_copyhelp_v1.3.zip for TNG V7
Download stats {{{download_stats}}}
Author(s) Brian McFadyen
Homepage Geocode CopyHelp Mod (this page)
Mod Support TNG Community Forums
Contact Developer {{{mod_contact}}}
Latest Mod 8.1.1
Min TNG V 7.1.0
Max TNG V 8.0
Files modified
places.php (V7)
admin_places.php (V8)
copy-icon.gif
paste-icon.gif
Related Mods
None
Notes

Purpose of the mod

This mod provides an easy way to copy and paste geocode locations. A small copy or paste icon is added on the administrator's places page in a column next to the place entries. Entries which have existing co-ordinates for the geocode location will display a copy-icon Copy-icon.gif in the column. Once an entry is selected as the "Copy", then a paste-icon Paste-icon.gif will be displayed next to the eligible place entries. You must have Admin privileges to use this mod.

Geocoding is the process of coding a latitude and longitude for a location that allows the display of the location in the Google Maps section of the TNG page. In TNG, it also includes setting the Place Level and Zoom values. The copy and paste functions will be applied to the Longitude, Latitude, Place Level, and Zoom values.

You may paste as many consecutive locations as you wish. The selected place entry to be copied may be deselected by simply clicking the associated copy icon a second time. For ease of use, when a place has been selected to be copied, all other place entries with geocode information will be hidden.

Please note the side-effect below.


Developer

This mod was developed by Brian McFadyen

Requirements

  • A working TNG installation. The config file release was initially tested at TNG Version 7.1.3
  • A backup of your TNG places.php file.
  • An installed current version of the Mod Manager.

Revision History

Version Date Contents
V8.1.1 May 31, 2010 Correction for TNG V8, there was a bad target
V8.1.0 May 28, 2010 Updated for TNG V8
V1.3 Mar 28, 2010 Initial release of config file

Automated Installation

  1. Download the appropriate version geocode_copyhelp_.zip mod configuration file from the status box in the upper right of this page.
  2. Extract the geocode_copyhelp_.zip to your ./admin/mod_folder (V7) or ./mods (V8).
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the geocode_copyhelp_.cfg.

Manual Installation

Not available.

Side effects

Installing this mod will disable the multiple delete function which uses the check boxes. If you need to delete places, the mod will need to be temporarily un-installed.

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 greatly simplifies this process).


Visualization

The image on the right shows a visualization of the Geocode CopyHelp Mod on the Places page. The copy/paste icons are used to manage this mod.
Geocode copyhelp visualizaton.jpg

In the event of a problem with your TNG site

  1. Try using the Mod Manager to Remove the mod
  2. Copy your backup places.php to your base TNG directory
    • all should be well now