Difference between revisions of "Private Flag Backup / Restore"

From TNG_Wiki
Jump to navigation Jump to search
(updated for TNG V9)
(updated for TNG V9)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{caution
 
|notes=If you used this script  previously to create a backup of manually set Private flags and in TNG  V9 you activate the option to set the Private flag on import if the  person's death date is less than N years, you will need to manually set the Private flags for the ones in your current  '''private_data.backup.php''' file, the first time you import data in TNG V9, rather than restoring the backup.
 
}}
 
 
{{TNGmod
 
{{TNGmod
 
| mod_name        = Backup / Restore Private Flag
 
| mod_name        = Backup / Restore Private Flag
Line 59: Line 56:
 
| V9.0.0.0
 
| V9.0.0.0
 
| width="10%" | 2 February 2012
 
| width="10%" | 2 February 2012
|  updated config file name and number to TNG V9 [[Mod Guidelines]]   standard.  Fixed Config Path and changed background to match the   template.
+
|  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.
 
|-
 
|-
 
| V8.1.1
 
| V8.1.1

Revision as of 17:39, 26 January 2012

Backup / Restore Private Flag
Summary Provides a backup and restore of the Private flags that are set in the tng_peoples table.
Validation Admin application not validated.
Mod Updated {{{mod_last_update}}}
Download link for
TNG 9.0
private_flag_backup_v9.0.0.0.zip
for
TNG 8.0
private_flag_backup_v8.1.1a.zip
Download stats {{{download_stats}}}
Author(s) Ken Roy based on Ben Wagner's Backup / Restore Living Flag
Homepage Backup / Restore Private Flag
Mod Support TNG Forums
Contact Developer
Latest Mod 9.0.0.0 for TNG V9
8.1.1 for TNG V8
Min TNG V 8.0.0
Max TNG V 9.0.0
Files modified
admin_leftbanner.php
admin_main.php
languages/English/cust_text.php
languages/English-UTF8/cust_text.php
admin_backupPrivate.php
Related Mods
Notes
The v8.1.1a zip file contains the missing icon and folder of the initial v8.1.1 zip


Introduction

TNG version: 8.0

This mod provides a backup and restore of the Private flags that can be set in the tng_peoples table starting with TNG V8.

It is designed to be used as a backup before doing an import gedcom and then used to restore the manually set private flags that were dropped during the import process.


Developer

This mod was developed by Ken Roy using a scan and replace on Ben Wagner's Backup / Restore Living Flag


Requirements

  • A working TNG installation.
  • A backup of your TNG admin_main.php and admin_leftbanner.php files.


Automated Installation

  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 private_flag_backup.cfg.


Revision History

Version Date Contents
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.
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 initial release of the admin_backupPrivate.php for TNG V8

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 Private Flags Mod
$admtext['backupprivate'] = "Backup Private";
$admtext['backupprivateitems'] = "Backup/Restore Private Flags";
$admtext['privatebkuprestoraction'] = "To back up or restore the Private table, click on the appropriate action icon.";
$admtext['privateinbackup'] = "Private in Backup File";
$admtext['privateindatabase'] = "Private in DataBase";
$admtext['privateconfirm'] = "Are you sure you wish to WRITE the current list of Private to disk?";
$admtext['privatereturn'] = "Return to Main Menu";
$admtext['privaterestore'] = "Restore checked to Private";
$admtext['privatebackupinfo'] = "Information in Backup File";
$admtext['privatedatabaseinfo'] = "Information in Database";
$admtext['privatechanged'] = "Changed";
$admtext['privatenochange'] = "Most Liklely No Change of Information";
$admtext['privatenochangeneeded'] = "Already Marked Private, No Need to Change";
$admtext['privatecomparing'] = "Examining and comparing backup to current database. Please double check before updating.";
$admtext['privatecorrupt'] = "or file is corrupt.";
$admtext['privatenotfound'] = "Not found in database";


French

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


// Backup / Restore Private Flags Mod
$admtext['backupprivate'] = "Sauvegarder privé";
$admtext['backupprivateitems'] = "Sauvegarder/restaurer les étiquettes privées";
$admtext['privatebkuprestoraction'] = "Pour sauvegarder ou restaurer les étiquettes privées, cliquez sur l'icône d'action appropriée.";
$admtext['privateinbackup'] = "Privé dans le dossier";
$admtext['privateindatabase'] = "Privé dans la base de données";
$admtext['privateconfirm'] = "Êtes-vous sûr de vouloir écrire la liste courante des privées au disque ?";
$admtext['privatereturn'] = "Revenez au menu principal";
$admtext['privaterestore'] = "Restaurer les étiquettes privées";
$admtext['privatebackupinfo'] = "L'information dans le dossier de sauvegarde";
$admtext['privatedatabaseinfo'] = "L'information dans la base de données";
$admtext['privatechanged'] = "Changé";
$admtext['privatenochange'] = "Il y a probable aucun changement d'information";
$admtext['privatenochangeneeded'] = "Déjà marquée privé, aucun besoin de changer";
$admtext['privatecomparing'] = "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['privatecorrupt'] = "ou le dossier est corrompu.";
$admtext['privatenotfound'] = "Pas trouvé dans la base de données";

Note that for TNG V8 and above and after, 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.

Visualization of mod

The image on the right shows the Backup / Restore Private Flag mod installed with a left nav link and button in the TNG V8 Admin screen. The Backup / Restore Private Flag capability will only be available to the Administrator.

Private Flag Backup

In the event of a problem with your TNG site

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


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
Our Roy and Boucher Family Ken Roy I developed this mod based on Ben Wagner's Backup / Restore Living Flag to serve the same purpose for manually set Private flags. V8.1.1a/TNG 8.1.3
V9.0.0.0/TNG V9
EN, FR
... ... ... ... ...


Related Links

To help keep track of descendants who might be flagged as Private, you can also modify the descendtext.php script to show the Private flag when you are logged in as Administrator

Other mods related to Private