Lat-Long NSEW

From TNG_Wiki
Jump to navigation Jump to search
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 14.0
TNG 13.0
TNG 12.0


Ambox notice.png Note re Versions 13.1.0.1a / 13.0.0.9

The original file lat-long_nsew_v13.0.0.9.zip uploaded on 3rd Nov 2021 had changes for TNG v13.1, but was not compatible with TNG v13.0.x . That has been resolved and new files uploaded for both.
Apologies for the error and inconvenience.
No further updates to v13.x mod unless requested!
If you are currently using Hide_google_earth_links v13.1.0.2 update to the latest version 13.1.0.3 now available on the Wiki page to avoid any clashes.
RickM

TNG 13.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 22 Jan 2023
Download link 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 Community Forums: TNG Specific - Code Discussion - Addons
Contact Developer Rick Malkin
Latest Mod 12.0.0.2 / 13.0.0.9
13.1.0.1a / 14.0.0.3c
Min TNG V 12.0
Max TNG V 14.0
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. If you have problems or ideas for further development contact me on the TNG 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 mod meets 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 this v14.0 Mod and Hide Google Earth Links, also a more efficient code structure. Merci beaucoup

Future possible Updates

I would like to look at including an option to use North, South, East, West, instead of N, S, E, W. Would appreciate feedback via the TNG Forum if you are interested.

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.3c

As of 24th January 2023 there have been no conflicts advised/found with v14.x Mods

Revision History

Mod Version TNG Versions Date Note
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.
Added admin_merge.php changes.
Some layout changes to improve aesthetics.
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
  • 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['N'] = "North";
$text['W'] = "West";
$text['S'] = "South";
$text['E'] = "East";

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.

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.

Before & After Install ScreenShots

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

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-language
A Line of Malkins Rick Malkin Public and Private 13.1.0.1a 13.1.1 EN
Treichel-Familie.de Andreas Treichel Public & Private 14​.0​.0​.1 14.0 DE, UK, FR, ES, PL
Les Lapierre d'Amérique Normand Lapierre Public and Private 14.0.0.3c 14.0 FR, EN
Mosley-A New look at our Family History Martin Mosley Public and Private 13.0.0.9a 13.0.4 EN, FR GE, IT
Genealogy of a Dutch East-Indies Family Rob Severijns Private 14.0.0.3c 14.0 NL, EN