Living Flag Backup / Restore

From TNG_Wiki
Jump to: navigation, search
Restricted Downloads of Living Flag Backup / Restore 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


Living Flag Backup / Restore
Summary Provides a backup and restore of the Living flags that are set in the tng_peoples table.
Validation Admin application not validated.
Mod Updated 15 Mar 2016
Download link for
TNG 12.0
TNG 11.0
living_flag_backup_v11.0.0.0.zip
for
TNG 10.1.0
living_flag_backup_v10.1.0.1.zip
French Language Files
for
TNG 10.0
living_flag_backup_v10.0.0.0.zip
for
TNG 9.0
living_flag_backup_v9.0.0.1.zip
French Language Files
for
TNG 8.0
living_flag_backup_v8.1.1.zip
for
TNG 7.0

living_flag_backup_v2.1.zip
Download backupLiving.php V2.0
Download stats View download statistics
for Living Flag Backup/Restore
for Living Flag mods group
Author(s) Ben Wagner
Ken Roy developed config file only
Homepage Living Flag Backup / Restore
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 11.0.0.0 for TNG V11 and up
10.1.0.1 for TNG V10.1 and up
10.0.0.0 for TNG V10 and up
9.0.0.1 for TNG V9
8.1.0 for TNG V8
2.0 (2.1 config file) for TNG V7
Min TNG V 7.0.0
Max TNG V 12+
Files modified
Related Mods
Notes
V2.1 of config file moved the Backup Living button to the right side of the Admin menu so it is only available to System Administrators.


Introduction

This mod provides a backup and restore of the Living flags that are set in the tng_peoples table. It is designed to be used as a backup before doing an import gedcom and then used to restore the manually set living flags that were dropped during the import process.

V2.1 of the mod applies to TNG V7.

V8.1.1 of the mod applies to TNG V8 only. The config file for the TNG V8 version includes the following enhancements:

  • creating the admin_backupLiving.php thereby eliminating the need to copy this file from the TNG Forum before installing
  • changing the messages to use $text variables so the mod is now multilingual. The French and English custom text version can be downloaded as living_flag_backup_v8.1.1_fr-en.zip

In TNG V9, the French custom text files can now be downloaded as separate add-ons.

Developer

This mod was developed by Ben Wagner

Ben Wagner developed the Backup and Restore Living Flag Add-ons. For a description check the Backup / Restore Living flag script created by Ben Wagner that will backup and restore living flags Backup Living Script in the TNG Community Forums.

Config files were created by Ken Roy, who also updated them for TNG V8 and V9.

Requirements

  • A working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0. Manual installation previously anchored in the Admin Header Mod on TNG 6 and 7.
  • A backup of the TNG files
  • An installed current version of the Mod Manager.

Revision History

Version Date Contents
V11.0.0.0 15 March 2016 updated for TNG V11 Admin Menu changes
V10.1.0.1 8 January 2015 updated for TNG V10.1 Mod Manager changes
V10.0.0.0 2 January 2014 updated for TNG V10 admin changes
V9.0.0.1 6 January 2013 updated to remove the include("config.php") since it was causing a blank page if a function was defined in customconfig.php.
V9.0.0.0 2 February 2012 updated config file name and number to TNG V9 Mod Guidelines standard. Fixed issue with Config Path due to change in begin.php and updated to use template formatting for the created output html page. Also created a separate French language .cfg file.
V8.1.1 3 June 2010 updated config file to use the admin_main for the Return links in TNG V8
V8.1.0 24 May 2010 updated config file to include the changes required to admin_backupLiving.php for TNG V8 and enhanced to support $text variables to make the mod multi-lingual.
V2.1 30 October 2009 updated config file so the Backup Living button is on the right side of the Admin menu and only available to System Administrators and no longer available to Registered Users with add / edit / delete authority
V2.0 15 May 2009 original config file for installing Backup / Restore Living Flag mod
V2.0 16 January 2009 Version 2.0 of the Backup / Restore Living Flag mod
V1.0 21 December 2007 Version 1 of the Backup / Restore
V0.9R1 21 April 2006 original Backup / Restore Living Flag mod

Automated Installation

For TNG V8 and above

TNG version: 8.0
  1. Download the appropriate zip file from the Mod Summary in the upper right hand corner
  2. After downloading the zip file, unzip it into 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 living_flag_backup.cfg.


For TNG V7

TNG version: 7.0
  1. Download backupLiving.php for version 2.0.
  2. Put the downloaded backupLiving.php in your admin/mod_folder directory.
  3. Download the Media:living_flag_backup_v2.1.zip
  4. After downloading the zip file, unzip it into your admin/mod_folder
  5. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the living_flag_backup_v2.1.cfg.

Note: that the automated config file is specific for version 2 of Ben Wagner's mod and that V2.0 of the Admin Header Mod no longer includes a link for the Living Flag Backup and Restore, since the Living_Flag_Backup_V2.1.cfg creates a link in the left nav area with a button in the Admin frame. Note that the Living_Flag_Backup_V2.1.cfg creates the Backup Living button in the right side of the Admin menu so it is not available to registered users with add / edit / delete authority.

Upgrade to new version

  1. Remove the existing living_flag_backup.cfg
  2. Install the new version of the mod using the Automated Install procedure

Custom Text Additions

Note that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.


English

The following custom text will be added to your English/cust_text.php and English-UTF8/cust_text.php files by this mod. If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course.


// Backup / Restore Living Flags Mod
$admtext['backupliving'] = "Backup Living";
$admtext['backuplivingitems'] = "Backup/Restore Living Flags";
$admtext['bkuprestoraction'] = "To back up or restore the living table, click on the appropriate action icon.";
$admtext['livinginbackup'] = "Living in Backup File";
$admtext['livingindatabase'] = "Living in DataBase";
$admtext['livingconfirm'] = "Are you sure you wish to WRITE the current list of living to disk?";
$admtext['livingreturn'] = "Return to Main Menu";
$admtext['livingrestore'] = "Restore checked to living";
$admtext['livingbackupinfo'] = "Information in Backup File";
$admtext['livingdatabaseinfo'] = "Information in Database";
$admtext['livingchanged'] = "Changed";
$admtext['livingnochange'] = "Most Liklely No Change of Information";
$admtext['livingnochangeneeded'] = "Already Marked Living, No Need to Change";
$admtext['livingcomparing'] = "Examining and comparing backup to current database. Please double check before updating.";
$admtext['livingcorrupt'] = "or file is corrupt.";
$admtext['livingnotfound'] = "Not found in database";

French

For example, you would add to the French/cust_text.php


// Backup / Restore Living Flags Mod
$admtext['backupliving'] = "Sauvegarder en vie";
$admtext['backuplivingitems'] = "Sauvegarder/restaurer les étiquettes des vivants";
$admtext['bkuprestoraction'] = "Pour sauvegarder ou restaurer les étiquettes des vivants, cliquez sur l'icône d'action appropriée.";
$admtext['livinginbackup'] = "En vie dans le dossier";
$admtext['livingindatabase'] = "En vie dans la base de données";
$admtext['livingconfirm'] = "Êtes-vous sûr de vouloir écrire la liste courante des vivants au disque ?";
$admtext['livingreturn'] = "Revenez au menu principal";
$admtext['livingrestore'] = "Restaurer les étiquettes des vivants";
$admtext['livingbackupinfo'] = "L'information dans le dossier de sauvegarde";
$admtext['livingdatabaseinfo'] = "L'information dans la base de données";
$admtext['livingchanged'] = "Changé";
$admtext['livingnochange'] = "Il y a probable aucun changement d'information";
$admtext['livingnochangeneeded'] = "Déjà marquée en vie, aucun besoin de changer";
$admtext['livingcomparing'] = "Examinant et comparant le dossier de sauvegarde courant à la base de donnée . Vérifiez une deuxième fois svp avant la mise à jour.";
$admtext['livingcorrupt'] = "ou le dossier est corrompu.";
$admtext['livingnotfound'] = "Non trouvé dans la base de données";


Note that for TNG V8 and above, the $text variables are within single-quotes, and the English/cust_text.php changes were provided for both the languages/English/cust_text.php and languages/English-UTF8/cust_text.php files.

New Death Column on Restore

Version 2 of the Backup / Restore Living Flag Add-on script now contains a Death Column on the Restore screen that makes it easier to uncheck the box to not restore the Living flag for persons who are now deceased.

Restore Changed Detected section

The following image shows an example where the living flag is set for a person where the Backup / Restore script has detected a change. In this case, the change was the addition of a death date, so you should uncheck the Living Flag box before doing the restore.

Uncheck Living Flag for person with death date

Manually Checked Living Flags section

The following image shows an example of unchecking the living flag for two people whose records contain a living flag, but who have a death date. Uncheck manually set flags for persons with death date

Visual of mod

Living Flag Backup

The above image shows the Backup / Restore Living Flag mod installed with a left nav link and button in the TNG Admin screen that is only available to the System Administrator.

In the event of a problem with your TNG site

  1. Try using the Mod Manager Remove capability
  2. Or copy your backup admin/rightbanner.php files to your TNG admin directory
    • all should be well now


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 family history of Ben Wagner and Jo Watlington ... Ben is the developer of the Backup / Restore Living Flag Add-ons ... ... ...
Our Roy and Boucher Family Ken Roy I use this TNG mod to maintain over 1600 manually set Living Flags. 11.0.0.0 12.0.0 EN, FR
Kuit's Family Pages ... I am using this TNG add-on, as my feed program does not cater for this, and I do not have all birth-/deceased dates. I can easily check the correct settings now. ... ...
AppeltHaus Genealogy Lawrence Appelt Not a Public Site. 10.0.0.0 10.0.0 EN
R G Strong Family Genealogy Russell G. Strong Public V11.0.0.0 V11.0.0 EN, DE, NL, FR
Our Family Genealogy Pages Roger Navarre Nice addition to my site V9.0.0.1 V9.2.0 EN
Hooley Family Links Rick Hooley Public Site 10.1.0.1 10.1.1 EN
The Williams Family Tree Phil Williams Public Site 10.0.0.0 10.0.3 English
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.0.1 10.1.1 EN, DE
Kemp(e) Family History Andrew Kemp Public site see User:Kempons see User:Kempons EN
Wortelboer Genealogy Bernard Wortelboer Public site 11.0.0.0 11.0.0 NL,EN
Roebuck and Families Ancestry Website Donald Roebuck Public site except for Living 11.0.0.0 11.0.2 EN
Zalewski Family Genealogy Brian Zalewski 11.0.0.0 11.1.0 EN
Avery Genealogy Jim Kratoville 11.0.0.0 11.0.2 EN
OurLife Family History - McMullen Clan Sean Thompson Not a public site. 11.0.0.0 11.1.0 English
Balbeag Family History David Hill Not a public site 11.0.0.0 11.0.2 EN
... ... ... ... ... ...

Related Links

  • To help track descendants who might be living but do not show birth information, you can also modify the descendtext.php script to show the Living flag when you are logged in as Administrator Display Living Flag mod on the TNG Community Forum
  • See also Living Flag Mod
  • See also Admin Header Mod (TNG V7 only)

TNG Modules Involved

In TNG V8 and above, this mod modifies the following files:

  • admin_leftbanner.php
  • admin_main.php
  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php

and adds

  • admin_backupLiving.php

In TNG V7, this mod modifies the following files:

  • admin/leftbanner.php
  • admin/main.php

and copies

  • admin/backupLiving.php which must be downloaded from the TNG Forum