Add Private Note Display - TNG

From Genwiki

Revision as of 00:35, 14 December 2006 by Admin (Talk | contribs)

Jump to: navigation, search

If you are not comfortable with html and php editing, this page may not be for you


Overview

This TNG modification deals with notes. It is a modification to the person pages so that notes that are marked "Private" will display for admin users.

Revision History

  • Initial Release - Dec 13, 2006 - initial release (A request from the tngusers2 mail list.

Requirements

  1. A working TNG installation - see The Next Generation of Genealogy Sitebuilding
  2. A backup of your TNG personlib.php files


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.
  2. The TNG "Private" flag for notes will be overwritten during a GEDCOM import. This mod is most useful for those who use TNG as their only genealogy database program and do not use a desktop application with a GEDCOM import to TNG.


TNG Modifications V6.0.3

  1. backup your existing TNG searchform.php file
  2. download this zip (TNG_gendexform_1.2.zip)
  3. unzip it, examine the contents
  4. find and open your original searchform.php file
    • edit the last few lines of the file
      • change the last lines from this
 </form>
 <br /><br />
 <?php
 tng_footer( "" );
 ?>
  • to this
 </form>
 <?php @include($cms[tngpath] . "gendexform.php"); ?>
 <br /><br />
 <?php
 tng_footer( "" );
 ?>
  • you can copy the single line above from this page and paste it into your file
  1. close your searchform.php file and copy it to your base TNG directory
  2. copy the gendexform.php to your base TNG directory
    • ensure the gendexform.php is readable by all
  3. check it out


In the event of a problem with your TNG site

  1. copy your backup personlib.php to your base TNG directory
    • all should be well now


Support

  1. You're sort of on your own... If you have a specific question, or feel some additional info in the above would help others, feel free to contact me directly. Mail me here
    • Please post suggestions, or your own flavour of this mod to the forum or list
Personal tools