Remove Last Gedcom Import Messages

From TNG_Wiki
Jump to navigation Jump to search
Ambox notice.png This mod is redundant from TNG v10.1 where, by default, the 'Date of Last Import' will not be displayed on the whatsnew.php and statistics.php pages. The 'Date of Last Import' can be configured to display on these pages by setting a default tree in 'Admin >> Setup >> Configuration >> General Settings >> Site Design and Definition' and the 'Show last import' option in 'Admin >> Setup >> Configuration >> General Settings >> Miscellaneous' being set to 'Yes'.
TNG 10.1.0

Remove Last Gedcom Import messages
Summary Disables display of date of last gedcom import(except for Admin >> Trees)
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link
TNG 10.0
Download stats See download statistics
Author(s) Graham Chamberlain
Config file by Graham Chamberlain
Homepage Remove Last Gedcom Import Messages (This page)
Mod Support My Mod Support
Contact Developer Contact Developer
Latest Mod V10.0.0.0 for TNG V10+
Min TNG V not yet tested with versions lower than v10
Max TNG V 10.0.3
Files modified
genlib.php; statistics.php
Related Mods
This mod is redundant from TNG v10.1

Purpose of Mod

This mod is intended for those who do not wish to display the date of the last GEDCOM file import. This information is displayed on the What's New, Statistics and Admin > Trees pages.

NOTE: The mod does not delete the last import date from the Admin > Trees page

Mod Developer

The Mod Developer is Graham Chamberlain.

Automated Installation

  1. Download the appropriate file for your TNG version from the download links in the mod summary area in the upper right.
  2. Extract the downloaded zip file to your 'mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the appropriate file.

Alternative Method

IMPORTANT: Be sure to backup your tng_trees table before making any of the following changes.

The 'Last Gedcom Import ' messages can also be inhibited by editing the tng_trees table and deleting the date in the 'lastimportdate' field.

The change to the 'lastimportdate' field can be made with a query using the following SQL code:

Use this if you have more than one tree name:

                 UPDATE tng_trees SET lastimportdate = NULL WHERE 'gedcom' = 'your_tree_ID';

otherwise just use:

                 UPDATE tng_trees SET lastimportdate = NULL

It is recommended that you run this SQL in phpMyAdmin. It can also be run in TNG > Admin > Reports but warnings may be displayed depending on various settings on your server. However, the change will still be made in the table.

Revision History

Version Date Contents
v10.0.0.0 9 Oct 2014 Initial version

TNG User 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 barjo07 v10.0.0 Dutch/German/English