Backup / Restore Living Flag

From TNG Wiki

Jump to: navigation, search
Backup / Restore Living Flag
Summary Provides a backup and restore of the Living flags that are set in the tng_peoples table.
Download link living_flag_backup_v8.1.1.zip for TNG V8
Download backupLiving.php V2.0 AND
living_flag_backup_v2.1.zip for TNG V7
Author(s) Ben Wagner
Ken Roy developed config file only
Homepage Backup / Restore Living Flag
Mod Support TNG Forums
Latest Mod 8.1.0 for TNG V8
2.0 (2.1 config file) for TNG V7
Min TNG V 7.0.0
Max TNG V 8.0.0
Files modified See TNG Modules Involved
Related Mods Living Flag Mod
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.

Contents

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 not multi-lingual. The French and English custom text version can be downloaded as living_flag_backup_v8.1.1_fr-en.zip

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 http://www.tngforum.us/index.php?showtopic=1087&hl=Backup+Living.

The V2.2 config file was created by Ken Roy.

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
V8.1.1 3 June 2010 updated config file to use the admin_main for the Return linls 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 Oct 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 Jan 2009 Version 2.0 of the Backup / Restore Living Flag mod
V1.0 21 Dec 2007 [http://www.tngforum.us/index.php?s=&showtopic=1087&view=findpost&p=14030 Version 1 of the Backup / Restore
V0.9R1 21 Apr 2006 original Backup / Restore Living Flag mod

Living Flag mod]

Automated Installation

For TNG V8

  1. Download the living_flag_backup_v8.1.1.zip for TNG V8 or
  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_v8.1.1.cfg.


For TNG V7

  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.

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


TNG User sites using this mod

  • Please add TNG site that you have found that utilize this modification

Site List

  • A family history of Ben Wagner and Jo Watlington Ben is the developer of the Backup / Restore Living Flag Add-ons
  • Our Acadian, French Canadian, and Maine Ancestors I use this TNG add-on, which is not affected by TNG upgrade or new releases, to maintain over 1600 manually set Living Flags. (Ken Roy) The addition of a Death Date column in the version 2 script makes it a lot easier to turn off Living Flags for persons who are now deceased. --Ken Roy 23:29, 17 January 2009 (UTC)
  • 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.

Related Links

TNG Modules Involved

In TNG V8, this mod modifies the following files:

  • admin_leftbanner.php for TNG V8
  • 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
Personal tools
Translators