Display dates with prefereuro

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Display dates with prefereuro 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


Display dates with preferEuro
Summary Display dates according to your preferences
Validation
Mod Updated 02 Jan 2023
Download link For
TNG 14.0

v14.0.0.3a


For
TNG 13.1.2

v13.1.2.3


For
TNG 12.3.0
TNG 13.0
TNG 13.0.1
v12.3.0.2a
Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod v12.3.0.2a from v12+ to v13.1.1
v13.1.2.3 for TNG 13.1.1
v14.0.0.3a from TNG 14.0+
Min TNG V v12.3.0.2a TNG 12+ => TNG 13.1.1
v13.1.2.3 TNG 13.1.1 => TNG 13.1.2
v14.0.0.3a => TNG 14.0+
Max TNG V n.c.
Files modified
admin_families.php
admin_media.php
admin_people.php
admin_repositories.php
admin_sources.php
admin_trees.php
admin_users.php
admin_utilities.php
globallib.php
Related Mods
Notes

Purpose of the Mod

You have probably already wondered what this "Numeric Date Preference" option is used for in
"Administration>>Setup>>General settings>>Miscellaneous".
Indeed, you can change the option, but the date display does not change in TNG.
This is normal because this option is used for encoding numeric dates and determines whether the first digits you enter in a date are relative to a day or a month.
This Mod, once installed, will change the display of dates according to your choice!
All dates presented in TNG (except those in admin_dna_tests) will be displayed according to your choice
as 05 dec 2020 (European format) or Dec 05, 2020 (US format).
Days can be in one or two digits in accordance with your choice in parameters, months in one or two digits or three letters.

Development

Written by : Michel Kirsch from Charleroi - Hainaut - Belgium

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.

Revision History

Mod Version TNG Version Date Contents
14.0.0.3a 14.0 02 Jan 2023 To avoid PHP warnings if there is no backupdate (Admin>>Utilities).
14.0.0.3 14.0 01 Oct 2022 TNG 14.0 ready.
13.1.2.3 13.1 05 Apr 2022 TNG 13.1.2 ready.
12.3.0.2a 12.3 11 Jan 2022 Gives the choice to display days and months in one or two digits (if less than 10 and not alphanumeric for months)
12.3.0.2 12.3 19 Feb 2021 Use this version only if you want to use the "Numeric dates" Mod in its 3a version ("hungarian" date format)
12.3.0.1 12.3 03 Nov 2020 First online version.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

admin_families.php
admin_media.php
admin_people.php
admin_repositories.php
admin_sources.php
admin_trees.php
admin_users.php
admin_utilities.php
globallib.php

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  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.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Known Problems

None at this day...

Visualization

display_dates_with_prefereuro

getperson.php without and with the Mod installed, following your choice for the Numeric Dates Preference.

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
Racines luxo-hennuyeres Michel Kirsch Mod's Developper 14.0.0.3a 14.0.3 FR/EN/NL/GE/SP
The Severijns / Timmer Familytree Rob Severijns Public / Private 14.0.0.3a 14.0.4 NL, EN
Os Belard Luís Belard da Fonseca Public/Private 13.1.2.3 13.1.2 PT
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS