Lat-Long NSEW

From TNG_Wiki
Jump to navigation Jump to search
NeedSupport The mod Lat-Long NSEW needs a new support person since the original mod developer or subsequent developers are no longer available to support the mod NeedSupport


Restricted Downloads of Lat-Long NSEW are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox Caution


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG All


Ambox notice.png

This Mod is in need of someone to take over responsibility
Thank you to all who have helped me along the way and to those who have the pleasure of using this Mod.
RickM

TNG 15.0


Lat-Long NSEW
Summary Shows N S E W after decimal co-ordinates.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 25 Feb 2025
Download link For
TNG 15.0


For
TNG 14.0


For
TNG 13.1.0


For
TNG 13.0


For
TNG 12.0

Download stats See download stats for all versions
Author(s) Rick Malkin
Homepage Lat-Long_NSEW (This page)
Mod Support TNG Users List
Contact Developer TNG Users List
Latest Mod 12.0.0.2 / 13.0.0.9
13.1.0.1a / 14.0.0.3h
15.0.0.2
Min TNG V 12.0
Max TNG V 15.0.x
Files modified
Related Mods
Notes

Purpose of the mod

This Mod shows Latitude / Longitude N S E W. You need to be using degrees eg: -41.327312, 174.807598 (Wellington (NZ) International Airport Co-ordinates) when entering geolocation info for places, cemeteries, plots etc. Mod will show 41.327312° S, 174.807598° W. It does not alter anything in the Admin Editing Screens.
Mod DOES NOT determine if any data entries for Latitude/Longitude are correctly entered, it ONLY works with degrees as explained above.

Developer

This mod is developed by Rick Malkin, with much support from Michel Kirsch for v14.x. If you have problems or ideas for further development contact me on the TNG Modifications Forum (You will need to Login to do so), or the TNG Users2 Email List (You may need to register for this List).

I would appreciate if you choose to use the Mod please add your details below, so I do know how many folks are using it. Cheers

Credits

My Thanks to Erik & Brett for their help with both code and ensuring the initial mod met the standard. Appreciate your help and input guys.

My MOST humble THANKS to Michel Kirsch for his expertise and coding changes to resolve clashes with other Mods along with updating for TNG v15.0. Merci beaucoup To Rob Severijns also, for pointing out the clash.
Thanks to Ron K for advising about php 'Warning: Deprecated' error and again Thanks to Michel Kirsch for providing the code to rectify. Thanks to Darrin for his patience and Brent for looking things over.

Requirements

  • A working TNG installation v12.0 or higher.
  • A backup of all affected files (see below)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site. Other supported language folders/files are optional.

Conflicts

TNG v12.3

If you use OpenStreetMap it must be installed before installing the Lat-Long NSEW Mod. You must uninstall in the reverse order.

TNG v13.0 TNG v13.1

As of 4th November 2021 there have been no conflicts advised/found with v13.x Mods

Mod v14.0.0.3f

Clashed with [User:MichelKirsch|Michel Kirsch's] Hide Google Earth Links Mod Is Resolved

Revision History

Mod Version TNG Versions Date of Revision Note
15.0.0.2 15.0. 25 Feb 2025 Version Revision for TNG v15.0, resolved the 0N 0E showing when NO Latitude or Longitude was entered (no longer does), cosmetic updates, php warnings.. All major works done by Michel Kirch
14.0.0.3h 14.0.x 25 Feb 2025 Updated to resolve the 0N 0E showing when NO Latitude or Longitude was entered (no longer does), cosmetic updates
14.0.0.3f 14.0.x 05 May 2023 Updated to resolve PHP 'deprecated warning', with much thanks to Ron K for spotting and reporting and Michel for the Fix..
Added Degrees °; symbol and some missing language translation lines.
14.0.0.3d / 14.0.0.3e 14.0.x 05 May 2023 Not Published
14.0.0.3c 14.0.x 22 Jan 2023 Updated to resolve conflict between Michel Kirschs' Hide Google Earth links Mod along with major coding changes for better management, with much thanks to Michel Kirsch for his magic abilities..
Added admin_merge.php changes.
Some layout changes to improve aesthetics.
14.0.0.3a / 14.0.0.3b 14.0.x 22 Jan 2023 Not Published
14.0.0.1 14.0.x 02 Jan 2023 Updated for TNG v14.0
13.1.0.1a 13.1.x 04 Nov 2021 Updated for TNG v13.1 Various bug and mistyping fixes
(Note new file for TNG v13.1.x)
13.0.0.9 13.0.x 03 Nov 2021 Updated Various bug and mistyping fixes.
(Note file is no longer for TNG v13.1.x but for TNG versions 13.0 - 13.04)
13.0.0.6 13.0.x 26 Oct 2020 Various bug and mistyping fixes
13.0.0.2 13.0 01 Oct 2020 Minor bug fixes to Admin Places page
13.0.0.1 13.0 24 Sep 2020 Added admin_cemeteries & admin_places to shows NSEW. Made some minor code changes for consistency
13.0.0.0 13.0 23 Sep 2020 Updated for compatibility with Ver 13
12.0.0.2 12.0+ 04 Oct 2020 Resolved a couple of bugs and added Admin Place & Admin Cemeteries
12.0.0.1 12.0+ 20 Aug 2020 Initial version for TNG12

Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page.
  2. For v 12.x TNG Users: If you are intending to use the OpenStreetMap Mod you must install it first.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

TNG Files Modified

Before installing it would be wise to make backups of the following files
  • admin_cemeteries.php
  • admin_places.php
  • admin_mergeplaces.php
  • browsemedia.php
  • genlib.php
  • headstones.php
  • placesearch.php
  • showmap.php
  • showmedialib.php
  • languages/Danish/cust.txt
  • languages/Danish-UTF8/cust.txt
  • languages/Dutch/cust.txt
  • languages/Dutch-UTF8/cust.txt
  • languages/English/cust.txt
  • languages/English-UTF8/cust.txt
  • languages/French/cust.txt
  • languages/French-UTF8/cust.txt
  • languages/German/cust.txt
  • languages/German-UTF8/cust.txt
  • languages/Italian/cust.txt
  • languages/Italian-UTF8/cust.txt
  • languages/Swedish/cust.txt
  • languages/Swedish-UTF8/cust.txt

Language(s)

Currently available in Danish (thanks Hanne), Dutch (Thanks Rob) English, French, German & Italian (Thanks Martin), & Swedish (Thanks Erik again!)

Custom Text

This MOD contains custom text in cust_text.php in the English / English-UTF8 folders.

$text['N'] = "N";
$text['W'] = "W";
$text['S'] = "S";
$text['E'] = "E";
$text['placelevel'] = "PlaceLevel";
$text['lat-long'] = "Lat / Long";
$text['lat'] = "Lat";
$text['long'] = "Long";
$text['north'] ="North";
$text['south'] = "South";
$text['east'] = "East";
$text['west'] ="West";

For other languages you can modify the config file to add the custom text or manually add to cust_text.php in the respective language folder.
If you would like other languages included in the Mod please let me know via the TNG Forum and Private Message me.

Before & After Install ScreenShots Mod ver 13

The following screen shots show some of the changes made by the mod

Map Page Before Installation Map Page After Installation
Individual Page before Individual Page after

Before & After Install ScreenShots Mod ver 14

The following screen shots show some of the changes made by the mod

Map Page Before Installation
Individual Page before
Map Page After Installation
Individual Page after

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 Available Languages
Malkins in Nu Tirani - New Zealand Rick Malkin Public and Private 15.0.0.1g
TNG 15.0
EN
Les Lapierre d'Amérique Normand Lapierre Public and Private 15.0.0.2
TNG 15.0.1
FR, EN
The Severijns / Timmer Familytree Rob Severijns Public / Private See here See here NL, EN
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See here See here EN,DE,CS

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod, you should

  1. For v 12.x TNG Users: Make sure you uninstall BEFORE uninstalling the OpenStreetMap Mod
  2. Click the Uninstall button to uninstall the mod and then
  3. Click the Delete button to delete the config file from the mods folder.