Difference between revisions of "Private Flag Backup / Restore"

From TNG_Wiki
Jump to navigation Jump to search
(added currentloggeduser to download link URL)
 
(53 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{restricted}}{{V12_cust_text}}{{TNGmod
| mod_name        = Private Flag Backup / Restore
+
| mod_name        = {{PAGENAME}}
 
| mod_summary    = Provides a backup and restore of the Private flags that are set in the tng_peoples table.
 
| mod_summary    = Provides a backup and restore of the Private flags that are set in the tng_peoples table.
| mod_validation = Admin application not validated.
+
| mod_validation = Admin application not validated.
| download_link  = for {{Tv110}}[https://www.royandboucher.com/ccount/click.php?id=348&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} private_flag_backup_v11.0.0.0.zip]<hr />for {{Tv1010}} [https://www.royandboucher.com/ccount/click.php?id=207&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} private_flag_backup_v10.1.0.2.zip]<hr />for {{Tv100}}[https://www.royandboucher.com/ccount/click.php?id=150&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} private_flag_backup_v10.0.0.0.zip] <hr />for {{Tv90}}[https://www.royandboucher.com/ccount/click.php?id=98&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} private_flag_backup_v9.0.0.1.zip] <br />[https://www.royandboucher.com/ccount/click.php?id=9&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} French language files] <hr /> for {{Tv80}}[https://www.royandboucher.com/ccount/click.php?id=10&user={{CURRENTLOGGEDUSER}}&page={{PAGENAMEE}} private_flag_backup_v8.1.1a.zip]
+
| mod_last_update = 10 Feb 2023
| download_stats = View V9 download statistics<br />[https://www.royandboucher.com/ccount/index.php?action=stats&id=8-9-10-98-150-207 For Private Flag Backup/Restore]<br />[https://www.royandboucher.com/ccount/index.php?action=stats&groupid=2 for Private Flag mods group]  
+
| download_link  = For{{Tv140}}[https://www.royandboucher.com/ccount/click.php?id=700&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v14.0.0.10a.zip]<hr style="clear: both;"/>For{{Tv130}}[https://www.royandboucher.com/ccount/click.php?id=654&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Private_flag_backup_v13.0.0.9.zip]<br />MySQL 8 or sites requiring a port<hr style="clear: both;"/>For{{Tv130}}[https://www.royandboucher.com/ccount/click.php?id=648&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Private_flag_backup_v13.0.0.8.zip]<hr style="clear: both;"/>For{{Tv120}}[http://www.royandboucher.com/ccount/click.php?id=512&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v12.0.0.3.zip]<hr style="clear: both;"/>For{{Tv110}}[https://www.royandboucher.com/ccount/click.php?id=348&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v11.0.0.0.zip]<hr style="clear: both;"/>
| mod_author      = Ken Roy based on Ben Wagner's [[Living Flag Backup / Restore]]
+
<div class='mw-collapsible mw-collapsible-content' id='mw-customcollapsible-sb1'><span class='mw-customtoggle-sb1 mw-customtoggle-sbdiv' style='text-decoration:underline;float:right;'>&#91;Show Previous Versions&#93;</span></div><div class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-sbdiv'>For{{Tv1010}}[https://www.royandboucher.com/ccount/click.php?id=207&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v10.1.0.2.zip]<hr style="clear: both;"/>For{{Tv100}}[https://www.royandboucher.com/ccount/click.php?id=150&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v10.0.0.0.zip]<hr style="clear: both;"/>For{{Tv90}}[https://www.royandboucher.com/ccount/click.php?id=98&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v9.0.0.1.zip] <br />[https://www.royandboucher.com/ccount/click.php?id=9&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} French language files]<hr style="clear: both;"/>For{{Tv80}}[https://www.royandboucher.com/ccount/click.php?id=10&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} private_flag_backup_v8.1.1a.zip]<div class='mw-customtoggle-sb1 mw-customtoggle-sbdiv' style='text-decoration:underline;float:right;'>&#91;Hide Previous Versions&#93;</div></div>
| mod_url        = [[Private Flag Backup / Restore]]
+
| download_stats = View V9 download statistics<br />[https://www.royandboucher.com/ccount/index.php?action=stats&id=8-9-10-98-150-207-512-532-579-606-631-648-654-658-684-691-701 For Private Flag Backup/Restore]<br />[https://www.royandboucher.com/ccount/index.php?action=stats&groupid=2 for Private Flag mods group]  
| mod_support    = [http://tng.community TNG Community Forums]
+
| mod_author      = [[User:Ken Roy|Ken Roy]] based on Ben Wagner's [[Living Flag Backup / Restore]]
| mod_contact    = [https://www.royandboucher.com/tng/mod_support.php Ken Roy]
+
| mod_url        = '''{{PAGENAME}}''' (This page)
| mod_version    = 11.0.0.0 for TNG V11<br />10.1.0.2 for TNG V10.1<br />10.0.0.0 for TNG V10<br />9.0.0.1 for TNG V9<br />8.1.1 for TNG V8
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
 +
| mod_contact    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
 +
| mod_version    = 14.0.0.10 for TNG V14+<br />13.0.0.9 for TNG V13+<br />12.0.0.3 for TNG V12+<br />11.0.0.0 for TNG V11<br />10.1.0.2 for TNG V10.1<br />10.0.0.0 for TNG V10<br />9.0.0.1 for TNG V9<br />8.1.1 for TNG V8
 
| min_TNG_ver    = 8.0.0
 
| min_TNG_ver    = 8.0.0
| max_TNG_ver    = 11+
+
| max_TNG_ver    = 14+
| TNG_file_list  = admin_leftbanner.php<br />admin_main.php<br />languages/English/cust_text.php<br />languages/English-UTF8/cust_text.php<br />admin_backupPrivate.php
+
| TNG_file_list  = admin_leftbanner.php<br />admin_main.php<br />languages/English/cust_text.php<br />languages/English-UTF8/cust_text.php<br />languages/French/cust_text.php<br />languages/French-UTF8/cust_text.php<br />admin_backupPrivate.php
| related_mods    = [[Private Flag Mod]]
+
| related_mods    = [[Private Flag Display]]
| notes          = The v8.1.1a zip file contains the missing icon and folder of the initial v8.1.1 zip
+
| notes          = <!-- The v8.1.1a zip file contains the missing icon and folder of the initial v8.1.1 zip -->
}}
+
}}<!-- French language file name = Private_flag_backup_v9.0.0.0_fr.zip -->{| style="margin-right:0.5 em;" align="right"
<!-- French language file name = Private_flag_backup_v9.0.0.0_fr.zip -->
+
| __TOC__
 
 
{|align=right
 
|__TOC__
 
 
|}
 
|}
 
 
== Introduction ==
 
== Introduction ==
 
 
{{TNG 8.0|and after}}
 
{{TNG 8.0|and after}}
 
This mod provides a backup and restore of the Private flags that can be set in the tng_peoples table starting with TNG V8.   
 
This mod provides a backup and restore of the Private flags that can be set in the tng_peoples table starting with TNG V8.   
Line 32: Line 29:
  
 
== Developer ==
 
== Developer ==
 +
This mod was developed by [[User:Ken Roy|Ken Roy]] using a scan and replace on Ben Wagner's [[Backup / Restore Living Flag]]
 +
 +
==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]].
 +
* A TNG database that contains Private flags (do not attempt to use this mod if you do not have any Private flags set in your database)
 +
 +
==Revision History==
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
|-
 +
! Mod Version
 +
! TNG Version
 +
! Date
 +
! Contents
 +
 +
|- style="vertical-align:top;"
 +
| 14.0.0.10a
 +
| 14.0
 +
| style="white-space: nowrap;"|10 Feb 2023
 +
| updated to
 +
* fix the backups Store in Config Path
 +
* sync changes with [[Living Flag Backup / Restore]] to make it easier to maintain both mods
 +
* added table ID attribute to counter-act border="0" that eliminated cell borders
 +
* added tr class = "databack" to use template background instead of white background for tables
 +
 +
|- style="vertical-align:top;"
 +
| 14.0.0.10
 +
| 14.0
 +
| style="white-space: nowrap;"|28 Dec 2022
 +
| Published the v14.0.0.10_rc version to support backups Stored in Config Path
 +
 +
|- style="vertical-align:top;"
 +
| 14.0.0.10_rc
 +
| 14.0
 +
| style="white-space: nowrap;"|21 Dec 2022
 +
| Updated to support backups Stored in Config Path
 +
 +
|- style="vertical-align:top;"
 +
| 14.0.0.10_b113
 +
| 14.0
 +
| style="white-space: nowrap;"|18 Dec 2022
 +
| Updated for new Admin screen design based on changes provided by [[User:MichelKirsch|Michel Kirsch]] for the [[Living Flag Backup / Restore]] mod
 +
 +
|- style="vertical-align:top;"
 +
| 14.0.0.10_b102
 +
| 14.0
 +
| style="white-space: nowrap;"|16 Sep 2022
 +
| Updated for new TNG v14 Admin layout.  With help from [[User:Bhemph|Brent Hemphill]] and [[User:MichelKirsch|Michel Kirsch]] add the counts on the Home screen button
 +
 +
|- style="vertical-align:top;"
 +
| 13.0.0.9
 +
| 13.0
 +
| style="white-space: nowrap;"|15 May 2022
 +
| Updated to pass the database port and socket on the tngconnect to the database. Problem encountered when testing MySQL 8 on ICDSoft host which requires a port and socket information to access MySQL 8 when their primary MySQL server is still MySQL  5.7.36.  Tested on PHP 8.1.3 and MySQL 8.0.26
 +
 +
|- style="vertical-align:top;"
 +
| 13.0.0.8
 +
| 13.0
 +
| style="white-space: nowrap;"|15 Mar 2022
 +
| Our thanks to [[User:MichelKirsch|Michel Kirsch]] for providing the code changes to eliminate PHP 8.1.1 errors in the [[Living Flag Backup / Restore]] mod that I used to update this mod:
 +
* Trying to access array offset on value of type null
 +
* Deprecated: trim(): Passing null to parameter #1 ($string) of type string
 +
* updates not previously made when I updated the [[Living Flag Backup / Restore]] mod in v13.0.0.5 that now throw errors in PHP 8.1.1
 +
Tested on PHP 8.0.8 and PHP 8.1.1
  
This mod was developed by Ken Roy using a scan and replace on Ben Wagner's [[Backup / Restore Living Flag]]
+
|- style="vertical-align:top;"
 +
| 13.0.0.7
 +
| 13.0
 +
| style="white-space: nowrap;"|26 Oct 2021
 +
| Return Admin Login screen on direct URL calls if not logged in with appropriate rights
  
 +
|- style="vertical-align:top;"
 +
| 13.0.0.6
 +
| 13.0
 +
| style="white-space: nowrap;"|25 Jun 2021
 +
| to prevent direct URL call by users who do not have TNG Admin rights code changed provided by Brent Hemphill
  
==Requirements==
+
|- style="vertical-align:top;"
 +
| 13.0.0.5
 +
| 13.0
 +
| style="white-space: nowrap;"|16 Mar 2021
 +
| updated for TNG V13
 +
* to fix additional PHP 7.4 and PHP 8  notices with help from Brent Hemphill
 +
* to fix Return to Main Menu link in TNG 13
 +
* to change page heading to match other admin pages
  
* A working TNG installation.  
+
|- style="vertical-align:top;"
* A backup of your TNG admin_main.php and admin_leftbanner.php files.
+
| 13.0.0.4
 +
| 13.0
 +
| style="white-space: nowrap;"|13 Jul 2020
 +
| updated for TNG V13 new Admin Layout
  
 +
|- style="vertical-align:top;"
 +
| 12.0.0.3
 +
| 12.0
 +
| style="white-space: nowrap;"|02 Nov 2019
 +
| updated for TNG V12 to fix PHP 7.2 undefined constant errors<br />
 +
Our thanks to [[User:Bhemph|Brent Hemphill]] for providing the code changes.
  
==[[Mod Manager - Installing Config Files | Automated Installation]] ==
+
|- style="vertical-align:top;"
 +
| 12.0.0.2
 +
| 12.0
 +
| style="white-space: nowrap;"|01 May 2019
 +
| updated for TNG V12 to fix PHP 7.2 warnings and to use the new cust_text.php anchor string<br />
 +
Our thanks to Rick Hooley for reporting the problems with the v12.0.0.1 version of the mod that was removed and for beta testing this new version
  
# Download the appropriate zip file from the Mod Summary in the upper right hand corner
+
|- style="vertical-align:top;"
# After downloading the zip file, unzip it into your '''mods''' folder
+
| 11.0.0.0
# 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.
+
| 11.0
 +
| style="white-space: nowrap;"|15 Mar 2016
 +
| updated for TNG 11 Admin screen changes
  
== Upgrade to new version ==
+
|- style="vertical-align:top;"
 +
| 10.1.0.2
 +
| 10.1
 +
| style="white-space: nowrap;"|09 Jan 2015
 +
| updated for TNG 10.1 for MySQLi calls and for new Mod Manager syntax rules.
  
# Remove the existing '''private_flag_backup.cfg'''
+
|- style="vertical-align:top;"
# Install the new version of the mod using the [[Backup / Restore Private Flag#Automated Install|Automated Install]] procedure
+
| 10.0.0.0
 +
| 10.0
 +
| style="white-space: nowrap;"|02 Jan 2014
 +
| updated for TNG 10
  
==Revision History==
+
|- style="vertical-align:top;"
 +
| 9.0.0.1
 +
| 9.0
 +
| style="white-space: nowrap;"|06 Jan 2013
 +
| updated to remove the include("config.php") since it was causing a  [[Blank Pages|blank page]] if a function was defined in  customconfig.php.
  
{| border="1" cellspacing="5" cellpadding="2" width="75%" class="wikitable"
+
|- style="vertical-align:top;"
|-
+
| 9.0.0.0
! Version
+
| 9.0
! Date
+
| style="white-space: nowrap;"|02 Feb 2012
! Contents
 
|-
 
| V11.0.0.0
 
| width="15%" | 15 March 2016
 
|    updated for TNG 11 Admin screen changes
 
|-
 
| V10.1.0.2
 
| width="15%" | 9 January 2015
 
|    updated for TNG 10.1 for MySQLi calls and for new Mod Manager syntax rules.
 
|-
 
| V10.0.0.0
 
| width="10%" | 2 January 2014
 
|    updated for TNG 10
 
|-
 
|-
 
| V9.0.0.1
 
| width="15%" | 6 January 2013
 
|  updated to remove the include("config.php") since it was causing a  [[Blank Pages|blank page]] if a function was defined in  customconfig.php.
 
|-
 
| V9.0.0.0
 
| width="15%" | 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.  
 
|  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
+
|- style="vertical-align:top;"
| 3 June 2010
+
| 8.1.1
 +
| 8.1
 +
| style="white-space: nowrap;"|03 Jun 2010
 
| updated config file to use the admin_main for the Return links in TNG V8
 
| updated config file to use the admin_main for the Return links in TNG V8
|-
+
 
| V8.1.0
+
|- style="vertical-align:top;"
| 24 May 2010
+
| 8.1.0
| initial release of the admin_backupPrivate.php for TNG V8
+
| 8.1
 +
| style="white-space: nowrap;"|24 May 2010
 +
| initial release of the admin_backupPrivate.php for TNG V8
 
|}
 
|}
  
== Custom Text Additions ==
+
== Conflicts and Issues==  
 +
No known conflicts.
 +
 
 +
==Installation==
 +
# Uninstall and delete previous version of this mod (if installed)
 +
# Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
 +
# Extract the file from the downloaded zip file into the '''mods''' folder or FTP the extracted file to your mods folder.
 +
# 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 ==
 +
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 +
* Copy the backup of the affected files back to your TNG  directory
 +
* Contact us through the [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums].
 +
 
 +
== Uninstalling the mod ==
 +
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 +
# click the '''Uninstall''' button to uninstall the mod
 +
# 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.
  
 +
== 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.
 
'''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 ===
 
=== 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.
 
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.
  
 
+
<syntaxhighlight lang="php" >
<syntaxhighlight lang="php" enclose="div">
 
 
// Backup / Restore Private Flags Mod
 
// Backup / Restore Private Flags Mod
 
$admtext['backupprivate'] = "Backup Private";
 
$admtext['backupprivate'] = "Backup Private";
Line 115: Line 221:
 
$admtext['privatedatabaseinfo'] = "Information in Database";
 
$admtext['privatedatabaseinfo'] = "Information in Database";
 
$admtext['privatechanged'] = "Changed";
 
$admtext['privatechanged'] = "Changed";
$admtext['privatenochange'] = "Most Liklely No Change of Information";
+
$admtext['privatenochange'] = "Most Likely No Change of Information";
 
$admtext['privatenochangeneeded'] = "Already Marked Private, No Need to Change";
 
$admtext['privatenochangeneeded'] = "Already Marked Private, No Need to Change";
 
$admtext['privatecomparing'] = "Examining and comparing backup to current database. Please double check before updating.";
 
$admtext['privatecomparing'] = "Examining and comparing backup to current database. Please double check before updating.";
Line 121: Line 227:
 
$admtext['privatenotfound'] = "Not found in database";
 
$admtext['privatenotfound'] = "Not found in database";
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
=== French ===
 
=== French ===
 
 
For example, you would add to the French/cust_text.php
 
For example, you would add to the French/cust_text.php
  
 
+
<syntaxhighlight lang="php" >
<syntaxhighlight lang="php" enclose="div">
 
 
// Backup / Restore Private Flags Mod
 
// Backup / Restore Private Flags Mod
 
$admtext['backupprivate'] = "Sauvegarder priv&eacute;";
 
$admtext['backupprivate'] = "Sauvegarder priv&eacute;";
Line 150: Line 253:
 
'''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.
 
'''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 ==
+
== Visualization ==
 
{| border="0" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
{| border="0" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
|-
 
|-
Line 159: Line 262:
 
|}
 
|}
  
==In the event of a problem ==
+
== 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
  
# Try using the [[Mod Manager]] Remove capability
+
* See [[Private Flag Mod]]
# Or copy your backup admin_leftbanner.php and admin_main.php files to your TNG admin directory
+
 
#* all should be well now
+
Other mods related to Private
  
 +
* [[Private Checkboxes Mod]]
 +
* [[Private Is Private]]
 +
* [[Private Note Mod]]
  
== Sites using this mod ==
+
==Sites using this mod==
If you download and install this mod, please add your TNG site to the table below
+
If you download and install this mod, please add your TNG site to the table below:
  
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%"
 
|-
 
|-
 
! URL
 
! URL
Line 177: Line 284:
 
! TNG-Version
 
! TNG-Version
 
! User-language
 
! User-language
|-
+
 
 +
|- style="vertical-align:top;"
 
| [https://www.royandboucher.com/ Our Roy and Boucher Family]
 
| [https://www.royandboucher.com/ Our Roy and Boucher Family]
 
| [[User:Ken Roy|Ken Roy]]
 
| [[User:Ken Roy|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.
 
| I developed this mod based on Ben Wagner's Backup / Restore Living Flag to serve the same purpose for manually set Private flags.
| 11.0.0.0
+
| 14.0.0.10a
| 11.0.0
+
| {{Tv1404}}
| EN, FR
+
| EN,FR
|-
+
 
 +
|- style="vertical-align:top;"
 
| [https://www.rgstrong-genes.com R G Strong Family Genealogy]
 
| [https://www.rgstrong-genes.com R G Strong Family Genealogy]
 
| [[User:Rgstrong|Russell G. Strong]]
 
| [[User:Rgstrong|Russell G. Strong]]
|
+
| Public
| V9.0.0.0
+
| 14.0.0.10a
| V9.0.4
+
| 14.0.4
| EN, DE, FR, NL
+
| EN,DE,FR,NL
|-
+
 
 +
|- style="vertical-align:top;"
 
| [http://genealogy.oceanwharf.com Hooley Family Links]
 
| [http://genealogy.oceanwharf.com Hooley Family Links]
 
| [[User:lastejas|Rick Hooley]]
 
| [[User:lastejas|Rick Hooley]]
| Public Site
+
| Public/Private
| 10.1.0.2
+
| [[User: lastejas|See Here]]
| 10.1.1
+
| [[User: lastejas|See Here]]
 
| EN
 
| EN
|-
+
 
 +
|- style="vertical-align:top;"
 
| [http://www.luithlenfamilie.de Luithlenfamilie]
 
| [http://www.luithlenfamilie.de Luithlenfamilie]
 
| [[User:pingo|Ingo Wagner]]
 
| [[User:pingo|Ingo Wagner]]
 
| Not a Public site
 
| Not a Public site
 
| 11.0.0.0
 
| 11.0.0.0
| 11.0.2
+
| 11.1.2
| DE, EN, NO, FR
+
| DE,EN,NO,FR
|-
+
 
 +
|- style="vertical-align:top;"
 
| [http://www.wortelboer.tk/ Wortelboer Genealogy]
 
| [http://www.wortelboer.tk/ Wortelboer Genealogy]
 
| [[User:Bernard57|Bernard Wortelboer]]
 
| [[User:Bernard57|Bernard Wortelboer]]
Line 211: Line 323:
 
| 11.0.0.0
 
| 11.0.0.0
 
| 11.0.0
 
| 11.0.0
| NL, EN
+
| NL,EN
|-
+
 
 +
|- style="vertical-align:top;"
 +
| [https://www.ourlife.us OurLife Family History - McMullen Clan]
 +
| [[User:Seanst|Sean Thompson]]
 +
| Not a public site.
 +
| 11.0.0.0
 +
| 11.1.0
 +
| EN
  
|}
+
|- style="vertical-align:top;"
 +
| [https://web6.secure-secure.co.uk/balbeag.eu/ Balbeag Family History]
 +
| [[User:David balbeag|David Hill]]
 +
| Not a public site
 +
| 11.0.0.0
 +
| 11.0.2
 +
| EN
  
== Related Links ==
+
|- style="vertical-align:top;"
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
+
| [http://ourfamilytree.online Koufos Family History]
 +
| [[User:Rhodian|Stephen Koufos]]
 +
|
 +
| 11.0.0.0
 +
| 11.0.2
 +
| EN
  
* See [[Private Flag Mod]]
+
|- style="vertical-align:top;"
 +
| [http://slekt.nordseth.me SiEiNo's slekt på Internett]
 +
| [[User:Sieino|Eilif A Nordseth]]
 +
| Not a public site
 +
| 11.0.0.0
 +
| 11.1.1
 +
| EN
  
Other mods related to Private
+
|- style="vertical-align:top;"
 +
| [https://www.martius-familie.de/ Martius family]
 +
| [[User:Hemar|Hendrik Martius]]
 +
| Half public
 +
| 11.0.0.0
 +
| 12.0.1
 +
| DE,EN,FR,NL
  
* [[Private Checkboxes Mod]]
+
|- style="vertical-align:top;"
* [[Private Is Private]]
+
| [https://www.passeyfamilytree.org.uk/ Simon and Anita Passey's Family Tree]
* [[Private Note Mod]]
+
| [[User:Pasty|Simon Passey]]
 +
| Public/private tree. I use this mod to keep a backup of people that I have made private because they died in the last 85 years.
 +
| 13.0.0.4
 +
| 13.0.0
 +
| EN
  
 +
|- style="vertical-align:top;"
 +
|[https://cnl-gla.ca/nos-ancetres/lapierreamerique/ Les Lapierre d'Amérique]
 +
| [[User:NLapierre|Normand Lapierre]]
 +
| Public/Private site
 +
| 14.0.0.10
 +
| 14.0
 +
| FR,EN
 +
|}
  
 +
[[Category:Mods for TNG v14]]
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v12]]
 
[[Category:Mods for TNG v11]]
 
[[Category:Mods for TNG v11]]
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]
Line 233: Line 390:
 
[[Category:Mods for TNG v8]]
 
[[Category:Mods for TNG v8]]
  
 +
[[Category:admin_leftmenu.php mods]]
 +
[[Category:admin.php mods]]
 
[[Category:admin_leftbanner.php mods]]
 
[[Category:admin_leftbanner.php mods]]
 
[[Category:admin_main.php mods]]
 
[[Category:admin_main.php mods]]
 +
 
[[Category:cust_text.php English mods]]
 
[[Category:cust_text.php English mods]]
 
[[Category:cust_text.php French mods]]
 
[[Category:cust_text.php French mods]]

Latest revision as of 22:47, 4 March 2024

Restricted Downloads of Private 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
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


Private Flag Backup / Restore
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 10 Feb 2023
Download link For
TNG 14.0
private_flag_backup_v14.0.0.10a.zip
For
TNG 13.0
Private_flag_backup_v13.0.0.9.zip
MySQL 8 or sites requiring a port
For
TNG 13.0
Private_flag_backup_v13.0.0.8.zip
For
TNG 12.0
private_flag_backup_v12.0.0.3.zip
For
TNG 11.0
private_flag_backup_v11.0.0.0.zip
[Show Previous Versions]
Download stats View V9 download statistics
For Private Flag Backup/Restore
for Private Flag mods group
Author(s) Ken Roy based on Ben Wagner's Living Flag Backup / Restore
Homepage Private Flag Backup / Restore (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 14.0.0.10 for TNG V14+
13.0.0.9 for TNG V13+
12.0.0.3 for TNG V12+
11.0.0.0 for TNG V11
10.1.0.2 for TNG V10.1
10.0.0.0 for TNG V10
9.0.0.1 for TNG V9
8.1.1 for TNG V8
Min TNG V 8.0.0
Max TNG V 14+
Files modified
admin_leftbanner.php
admin_main.php
languages/English/cust_text.php
languages/English-UTF8/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
admin_backupPrivate.php
Related Mods
Notes

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.

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

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 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.
  • A TNG database that contains Private flags (do not attempt to use this mod if you do not have any Private flags set in your database)

Revision History

Mod Version TNG Version Date Contents
14.0.0.10a 14.0 10 Feb 2023 updated to
  • fix the backups Store in Config Path
  • sync changes with Living Flag Backup / Restore to make it easier to maintain both mods
  • added table ID attribute to counter-act border="0" that eliminated cell borders
  • added tr class = "databack" to use template background instead of white background for tables
14.0.0.10 14.0 28 Dec 2022 Published the v14.0.0.10_rc version to support backups Stored in Config Path
14.0.0.10_rc 14.0 21 Dec 2022 Updated to support backups Stored in Config Path
14.0.0.10_b113 14.0 18 Dec 2022 Updated for new Admin screen design based on changes provided by Michel Kirsch for the Living Flag Backup / Restore mod
14.0.0.10_b102 14.0 16 Sep 2022 Updated for new TNG v14 Admin layout. With help from Brent Hemphill and Michel Kirsch add the counts on the Home screen button
13.0.0.9 13.0 15 May 2022 Updated to pass the database port and socket on the tngconnect to the database. Problem encountered when testing MySQL 8 on ICDSoft host which requires a port and socket information to access MySQL 8 when their primary MySQL server is still MySQL 5.7.36. Tested on PHP 8.1.3 and MySQL 8.0.26
13.0.0.8 13.0 15 Mar 2022 Our thanks to Michel Kirsch for providing the code changes to eliminate PHP 8.1.1 errors in the Living Flag Backup / Restore mod that I used to update this mod:
  • Trying to access array offset on value of type null
  • Deprecated: trim(): Passing null to parameter #1 ($string) of type string
  • updates not previously made when I updated the Living Flag Backup / Restore mod in v13.0.0.5 that now throw errors in PHP 8.1.1

Tested on PHP 8.0.8 and PHP 8.1.1

13.0.0.7 13.0 26 Oct 2021 Return Admin Login screen on direct URL calls if not logged in with appropriate rights
13.0.0.6 13.0 25 Jun 2021 to prevent direct URL call by users who do not have TNG Admin rights code changed provided by Brent Hemphill
13.0.0.5 13.0 16 Mar 2021 updated for TNG V13
  • to fix additional PHP 7.4 and PHP 8 notices with help from Brent Hemphill
  • to fix Return to Main Menu link in TNG 13
  • to change page heading to match other admin pages
13.0.0.4 13.0 13 Jul 2020 updated for TNG V13 new Admin Layout
12.0.0.3 12.0 02 Nov 2019 updated for TNG V12 to fix PHP 7.2 undefined constant errors

Our thanks to Brent Hemphill for providing the code changes.

12.0.0.2 12.0 01 May 2019 updated for TNG V12 to fix PHP 7.2 warnings and to use the new cust_text.php anchor string

Our thanks to Rick Hooley for reporting the problems with the v12.0.0.1 version of the mod that was removed and for beta testing this new version

11.0.0.0 11.0 15 Mar 2016 updated for TNG 11 Admin screen changes
10.1.0.2 10.1 09 Jan 2015 updated for TNG 10.1 for MySQLi calls and for new Mod Manager syntax rules.
10.0.0.0 10.0 02 Jan 2014 updated for TNG 10
9.0.0.1 9.0 06 Jan 2013 updated to remove the include("config.php") since it was causing a blank page if a function was defined in customconfig.php.
9.0.0.0 9.0 02 Feb 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.
8.1.1 8.1 03 Jun 2010 updated config file to use the admin_main for the Return links in TNG V8
8.1.0 8.1 24 May 2010 initial release of the admin_backupPrivate.php for TNG V8

Conflicts and Issues

No known conflicts.

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.

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 Likely 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&eacute;";
$admtext['backupprivateitems'] = "Sauvegarder/restaurer les &eacute;tiquettes priv&eacute;es";
$admtext['privatebkuprestoraction'] = "Pour sauvegarder ou restaurer les &eacute;tiquettes priv&eacute;es, cliquez sur l'ic&ocirc;ne d'action appropri&eacute;e.";
$admtext['privateinbackup'] = "Priv&eacute; dans le dossier";
$admtext['privateindatabase'] = "Priv&eacute; dans la base de donn&eacute;es";
$admtext['privateconfirm'] = "&Ecirc;tes-vous s&ucirc;r de vouloir &eacute;crire la liste courante des priv&eacute;es au disque ?";
$admtext['privatereturn'] = "Revenez au menu principal";
$admtext['privaterestore'] = "Restaurer les &eacute;tiquettes priv&eacute;es";
$admtext['privatebackupinfo'] = "L'information dans le dossier de sauvegarde";
$admtext['privatedatabaseinfo'] = "L'information dans la base de donn&eacute;es";
$admtext['privatechanged'] = "Chang&eacute;";
$admtext['privatenochange'] = "Il y a probable aucun changement d'information";
$admtext['privatenochangeneeded'] = "D&eacute;j&agrave; marqu&eacute;e priv&eacute;, aucun besoin de changer";
$admtext['privatecomparing'] = "Examinant et comparant le dossier de sauvegarde courant &agrave; la base de donn&eacute;e . V&eacute;rifiez une deuxi&egrave;me fois svp avant la mise &agrave; 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

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

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

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. 14.0.0.10a
TNG 14.0.4
EN,FR
R G Strong Family Genealogy Russell G. Strong Public 14.0.0.10a 14.0.4 EN,DE,FR,NL
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Luithlenfamilie Ingo Wagner Not a Public site 11.0.0.0 11.1.2 DE,EN,NO,FR
Wortelboer Genealogy Bernard Wortelboer Public Site 11.0.0.0 11.0.0 NL,EN
OurLife Family History - McMullen Clan Sean Thompson Not a public site. 11.0.0.0 11.1.0 EN
Balbeag Family History David Hill Not a public site 11.0.0.0 11.0.2 EN
Koufos Family History Stephen Koufos 11.0.0.0 11.0.2 EN
SiEiNo's slekt på Internett Eilif A Nordseth Not a public site 11.0.0.0 11.1.1 EN
Martius family Hendrik Martius Half public 11.0.0.0 12.0.1 DE,EN,FR,NL
Simon and Anita Passey's Family Tree Simon Passey Public/private tree. I use this mod to keep a backup of people that I have made private because they died in the last 85 years. 13.0.0.4 13.0.0 EN
Les Lapierre d'Amérique Normand Lapierre Public/Private site 14.0.0.10 14.0 FR,EN