Private Note Mod

From TNG_Wiki
Jump to: navigation, search
Restricted Downloads of Private Note Mod 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


Private Note
Summary Allows users with Admin privilege to view the Notes marked Private.
Validation Latest mods are XHTML compliant.Valid-xhtml10.png
Mod Updated 7 Mar 2016
Download link for
TNG 12.0
TNG 11.0
private_notes_v11.0.0.0.zip
For
TNG 10.1.0
private_notes_v10.1.0.2.zip
if using Responsive Tables responsive_tables_private_notes_v10.1.0.3b.zip
Same language files as TNG 9.0
For
TNG 10.0
private_notes_v10.0.0.1.zip
Same language files as TNG 9.0
For
TNG 9.0.4
private_notes_v9.0.4.1.zip
Same language files as TNG 9.0
For
TNG 9.0
private_notes_v9.0.0.0.zip
French Language Files
German Language Files
For
TNG 8.1.2
Private Notes v8.1.3.zip
If unable to Edit notes, use
Private Notes v8.1.3a.zip
For
TNG 8.0
Private Notes v8.1.2.zip
If unable to Edit notes, use
Private Notes v8.1.2a.zip
For
TNG 7.0
Private Notes v1.3.zip
Download stats View download statistics
Author(s) Brian McFadyen
Ken Roy and Jeff Robison
Homepage Private Note Mod (This page)
Mod Support TNG Community Forums
Contact Developer
Latest Mod 11.0.0.0 for TNG V11+
10.1.0.3b for TNG V10.1 with Responsive Tables
10.1.0.2 for TNG V10.1
10.0.0.1 for TNG V10
9.0.0.0 for TNG V9
8.1.3 for TNG V8.1.2
8.1.2 for TNG V8.0.0 to V8.1.1
1.3 for TNG V7.1.3
Min TNG V 7.0.0
Max TNG V 12+
Files modified
personlib.php
browsenotes.php
reglib.php
admin_notelist.php for TNG V8
admin_editnote2.php
languages/English/misc_help.php
Related Mods
None
Notes
Note that version 1.2 of this mod extended the Private notes display to the Family Group and Browse Notes pages



Purpose of the Mod

TNG version: 8.1.3
TNG version: 7.0

This TNG modification deals with notes that have been marked Private and have a secret flag in the table.

It is a modification to the person pages so that notes that are marked Private will display for admin users in the same area that regular notes are displayed.

The description below is specific to TNG V7.0, although the mod has worked for versions since V6.1.1 at different line numbers.

V1.2 of the mod extends the Private note display to the Browse Notes and the Family Group sheet


TNG version: 8.0.1
V8.1.0 for TNG V8.0.1 extends the mod to add the Types of notes to the Browse Notes and the Admin Notelist:
  • S for secret (or Private) note
  • L for a note associated with a Living person or family
  • P for a note associated with a person marked Private

and attempts providing a fix to set the Private (secret) flag when edit notes from the new Admin Notelist

V8.1.1 for TNG V8.0.1 extends the mod to allow filtering on the types of notes.


TNG version: 9.0
Starting with TNG V9, the ability to view Private notes is controlled by the user privilege Allow to view information for private individuals.

The ability to check or uncheck the Private (secret) flag was fixed in TNG V9. So this mod essentially provides a visualization on the type of notes added in v8.1.0 of the mod.

This mod only provides the visual on the type of notes in Browse Notes and in the Admin Note List, which also provides a selection capability.


TNG version: 9.0.4
V9.0.4.1 no longer supports a selection criteria for notes associated with Living or Private individuals or families. TNG 9.0.4 added the capability to select Private Notes, those with the secret flag set and URL links for the Linked To column.

Note that if you use the Responsive Tables mods, you need to uninstall your current version of this mod and install the Responsive Tables-3 - Private Notes version

Developer

This mod was originally developed by Brian McFadyen for displaying Private Notes on Individual page

Mod was enhanced by Ken Roy to also display private notes in the Browse Notes display and Family Group sheet

TNG V8 mod was enhanced by Ken Roy and Jeff Robison to include the Types of Note columns to Browse Notes and Admin Note List, and later enhanced again by Jeff Robison to select notes by type (Living, Private, or Secret)

TNG V9 mod was reworked by Ken Roy with the acronym in the Types header provided by Oname.gif.

Revision History

Version Date Contents
v11.0.0.0 7 March 2016 Updated for TNG V11
v10.1.0.3b 22 April 2015 Version to use, if you are using the Responsive Tables mod
v10.1.0.2 21 Jaunary 2015 Updated for TNG 10.1 use of MySQLi. Note zip file uploaded on 4 September 2015
v10.0.0.1 21 April 2014 Updated so that mod can be installed on TNG V10 without having first installed PersonID Note Mod

Note that if you have version 10.0.0.0 install correctly, you do not need to download and install this version which only fixed the dependencies between the two mods.

v10.0.0.0 29 January 2014 Updated for TNG V10 for the restructure of browsenotes made in TNG v9.2.2
v9.0.4.1 1 October 2012 Updated for the restructure of admin_notelist.php in TNG V9.0.4. The selection criteria for notes associated with Living or Private individuals or families has been dropped since TNG no longer does a JOIN on these tables. TNG 9.0.4 added the selection criterion for Private (secret flag) notes, so you can still select notes marked Private (secret flag). TNG 9.0.4 also made the Linked To column URL links, so that part of the mod was also dropped.
v9.0.0.0 2 February 2012 Updated for TNG V9.0.0 and no longer provides the ability to view private (secret) notes, which is now controlled by the Allow to view information for private individuals privilege in TNG V9. This mod no longer includes a fix for checking or unchecking the Private (secret) flag, so there is now only one version of the mod.
v8.1.3a 28 April 2011 Created a version of the mod that removes the attempt to fix setting the Private (secret) flag for users where Edit does not work from admin_notelist.php
v8.1.3 28 April 2011 Updated for TNG 8.1.2 which now provides an XHTML compliant version of browsenotes.php
v8.1.2a 6 March 2011 Created a version of the mod that removes the attempt to fix setting the Private (secret) flag for users with multiple trees
v8.1.2 10 February 2011 Updated to be XHTML compliant once issues in browsenotes.php are fixed
v8.1.1 13 September 2010 Updated by Jeff Robison to add selection of notes by types (Living, Private, or Secret).
v8.1.0a 10 September 2010 Fix minor coding error that caused table formatting error in Internet Explorer (IE)
v8.1.0 6 September 2010 Updated for TNG V8 and enhanced by Ken Roy and Jeff Robison to include the Types of Note columns to Browse Notes and Admin Note List
v1.4 6 September 2010 updated to fix code in reglib.php that caused problems in the ahnentafel and register reports
v1.2 5 January 2010 updated to add display of Private Notes in the Browse Notes and Family Group sheet displays when logged in as Admin
v1.1 1 December 2009 config file updated to point to TNG Wiki article
v1.0 13 May 2009 initial config file release

Known Issues

TNG version: 8.1.3

The mod attempted to fix a deficiency in TNG code that when using Edit from the Admin >> Miscellanous >> Notes, the Private (secret) flag was not being displayed or allowed to be changed. Since users with multiple trees have complained that Edit did not work, that part of the mod was removed in Private Notes v8.1.2a.zip for TNG V8 when using multiple trees.

Be aware that in this case, you will not see the check box that allows marking the note as Private (secret).

See Discussion-page for issue in TNG V7.1.3 with Notes not necessarily related to this mod

Requirements

  • a working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0.
  • an installed current version of the Mod Manager
  • a backup of your TNG personlib.php file or access to your original TNG installation package.
  • An installed current version of the Mod Manager.

Automated Installation Requirements

  1. Uninstall any previous version of the mod
  2. Download the appropriate mod configuration file as shown in the summary in the upper right corner of the page
  3. Unzip the private_notes_for_admins zip file to your admin/mod_folder in TNG V7 and to your mods folder in TNG V8.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the private_notes_for_admins.cfg.

Side effects

  1. As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager greatly simplifies this process.

In the event of a problem

  • Try using the Mod Manager Remove capability
  • copy your backup personlib.php, browsenotes.php, and reglib.php files to your base TNG directory
    • all should be well now

Custom Text

The mod adds the following custom text to the English and English-UTF8/cust_text.php file which you will need to add to your other languages custom text files and provide the appropriate translations.

//  Added for Private Notes for Admin
$admtext['notetypes'] = "Types";
$admtext['notesecret'] = "Secret";
$admtext['noteforliving'] = "L";
$admtext['noteforprivate'] = "P";
$admtext['noteissecret'] = "S";


TNG version: 9.0
In TNG V9 and above, the note Types text, includes an <acronym title> thanks to Oname.gif
//  Added for Private Notes for Admin
$admtext['notetypes'] = "Types (<acronym title=\"Living\">L</acronym>,<acronym title=\"Private\">P</acronym>,<acronym title=\"Secret\">S</acronym>)";

In French for example, the custom text entries would be

//  Added for Private Notes for Admin
$admtext['notetypes'] = "Types";
$admtext['notesecret'] = "Secrète";
$admtext['noteforliving'] = "V";
$admtext['noteforprivate'] = "P";
$admtext['noteissecret'] = "S";


TNG version: 9.0
In TNG V9 and above, the note Types text, includes an <acronym title> thanks to Oname.gif


//  Added for Private Notes for Admin
$admtext['notetypes']  = "Types (<acronym title=\"en Vie\">V</acronym>,<acronym  title=\"Privée\">P</acronym>,<acronym  title=\"Secrète\">S</acronym>)";


TNG version: 9.0
In TNG V9 and above, the German custom text entries would be
//  Added for Private Notes for Admin
$admtext['notetypes'] = "Typen - <abbr title=\"Lebend\">L</abbr> <abbr title=\"Vertraulich\">V</abbr> <abbr title=\"Geheim\">G</abbr>)";
$admtext['notesecret'] = "Geheim";
$admtext['noteforliving'] = "L";
$admtext['noteforprivate'] = "V";
$admtext['noteissecret'] = "G";

In TNG V9 and above, the Dutch custom text entries would be

//  Added for Private Notes for Admin
$admtext['notetypes'] = "Typen - <abbr title=\"Levend\">L</abbr> <abbr title=\"Vertrouwelijk\">V</abbr> <abbr title=\"Geheim\">G</abbr>";
$admtext['notesecret'] = "Geheim";
$admtext['noteforliving'] = "L";
$admtext['noteforprivate'] = "V";
$admtext['noteissecret'] = "G";

Visualization of this mod

Without Mod

Person page

Without this mod, the Individual Person page does not display Private notes, as shown in the image on the right.

Private note without mod.jpg


Family page

Without the version 1.2 of this mod,, the Family Group sheet does not display Private Notes, as shown in the image on the right.

Private note family without mod.jpg

Browse Notes page

Without the version 1.2 of this mod, the Browse Notes list does not display Private Notes, as shown in the image on the right.

Private note browsenotes without mod.jpg

With Mod Installed

Person page

TNG version: 8.1.3


With the Private Note Mod installed, the Private note added to the Death event is also displayed as shown in the image on the right.

Note that the highlighted message in the image, is actually a test note that I created and is not generated by this mod.

Note that Private Notes are not displayed to users who do not have Admin privilege.

Private note with mod.jpg


TNG version: 9.0
Private Notes are displayed on the Person page, if the user has the Allow to view information for private individuals privilege


Family page

TNG version: 8.1.3


With the Private Note Mod version 1.2 installed, the Family Group sheet displays Private Notes, as shown in the image on the right.

Note that Private Notes are not displayed to users who do not have Admin privilege.

Private note family with mod.jpg


TNG version: 9.0
Private Notes are displayed on the Family page, if the user has the Allow to view information for private individuals privilege.


Browse Notes page

TNG version: 8.1.3


With the Private Note Mod version 1.2 installed, the Browse Notes list displays Private Notes, as shown in the image on the right.

Note that Private Notes are not displayed to users who do not have Admin privilege.

Private note browsenotes with mod.jpg


TNG version: 9.0
Private Notes are displayed on the Browse Notes page, if the user has the Allow to view information for private individuals privilege


TNG V8 additions

TNG version: 8.0.1

Browse Notes

With the TNG V8.1.0 of the Private Note Mod installed, the note Types column is displayed which shows whether the note is:

  • L for a note associated with a person or family who was marked as Living
  • P for a note associated with a person or family who was marked as Private
  • S for a note that is marked Private (or secret)

Note that the note Types columns are not displayed to users who do not have Admin privilege.

Private note types browsenotes.jpg

Admin Note List

With the TNG V8.1.0 of the Private Note Mod installed, the note Types column is displayed which shows whether the note is:

  • L for a note associated with a person or family who was marked as Living
  • P for a note associated with a person or family who was marked as Private
  • S for a note that is marked Private (or secret)
Private note types admin notelist.jpg

Admin Note Selection

With the TNG V8.1.1 of the Private Note Mod installed, you can select displaying notes by type:

  • Living for a note associated with a person or family who was marked as Living
  • Private for a note associated with a person or family who was marked as Private
  • Secret for a note that is marked Private (or secret)
Private note type selection.jpg

Related Links

The following mods are also related to the Private flag

Sites using this mod

Please add your TNG site to the list if you utilize this modification!

URL User Note Mod-Version TNG-Version User-language
My family Oname.gif (no public site) see Oname.gif see Oname.gif D,(NL),(GB)
Our Roy and Boucher Family Ken Roy I use the Responsive Tables version of the mod in TNG v10.1 11.0.0.0 12.0.0 EN, FR
Genealogy of the Roy and Royes families Bruce Roy 8.1.2a 8.1.1 EN
Leverette Family History Jeff Leverette 10.1.0.2 10.1.3 EN
OurLife Family History - McMullen Clan Sean Thompson Not a public site. 10.1.0.2 11.1.0 English
Genealogics Ian Fettes Used for private sources shown under notes. 11.0.0.0 11.1.0 English and others
Familienforschung Riehl & Kröber Otto Riehl (no public site) 11.0.0.0 11.1.2 DE, EN, ES, FR, PT
The Zausmer Forest Joyaa Antares (no public site) 11.0.0.0 11.1.2 EN, FR
Rintoul/Bowman Family Andrew Rintoul Public/Private 11.0.0.0 12.0 EN, DE, ES, FR