Difference between revisions of "Family Chart Mod"

From TNG_Wiki
Jump to navigation Jump to search
Line 100: Line 100:
 
|-
 
|-
 
| [http://genealogs.nl Genealogische Verkenningen]
 
| [http://genealogs.nl Genealogische Verkenningen]
| [[User:Cor Kuipers|Cor Kuipers]]
+
| [[User:reamur|Cor Kuipers]]
 
| Template 14
 
| Template 14
 
| 10.0.3
 
| 10.0.3
| NL, EN, DE
+
| EN, FR, DE
 
|-
 
|-
 
| [http://www.teige.de My family] (no public site)
 
| [http://www.teige.de My family] (no public site)

Revision as of 06:57, 7 January 2015

Family Chart Mod
Summary This provides a new family chart, consisting of a family and those of the two parents, which can be used to navigate a family tree.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link family_chart_mod_10.0.3.2a.cfg
Download stats
Author(s) Chris Moss
Homepage Family Chart Mod
Mod Support contact author
Contact Developer contact author
Latest Mod 0
Min TNG V 10.0.3
Max TNG V 10.0.3
Files modified
getperson.php, genlib.php, languages/English-UTF8/cust_text.php, languages/English/cust_text.php
Related Mods
Notes


A typical chart with thumbnails of some people.
Click on the picture to see it full size.

The Family Chart Mod provides a representation of a family together with those of the parents which can be used to navigate more easily around a tree. The chart includes siblings, parents, uncles and aunts and grandparents, with their dates and thumbnails. One click on a link takes you to children, cousins, in-laws and great and great-great grandparents, together with great-uncles etc., from which you can proceed further. By clicking on the image you are taken to the person's individual sheet.

As distributed, the chart stays comfortably within the 768 pixel width limit of many tablets and mobiles and so is usable on these. Ask me if you want it to work on earlier versions of TNG.

The mod adds a new item "Family" to the main menu bar so that you can easily switch from other views. A consequence of this is that many of the entries such as Ancestors and Descendants actually apply to one or the other parents rather than the family as a unit. Subsidiary links to the chart are under the appropriate family in the Individual display (getperson) with links called "Family Chart". If you are on the Family Group sheet there is also a top menu item called Family Chart. In this case the ancestors and descendants chart more nearly reflect the family.

When a parent has several families, these are indicated next to the box with a popup which shows one or more extra families. If date information is not shown for living people, a small 'alive' symbol Alive.png is shown instead. This can easily be turned off in the customconfig.php file. If this is because the user is not logged in, then a tooltip suggestion to log in is given.

Installation

  1. Download the file from the download links in the mod summary area in the upper right.
  1. Extract the downloaded zip file to your 'mods folder.
  1. Follow the installation procedure for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the appropriate Family_Chart_Mod.cfg file.

Post Installation

If you want to change colors to match your site, you need to update your customconfig.php file. See Customization below. It is not necessary to move the famconfig.php file if you are using the Config Path as it won't be necessary to modify the file.

Visualization

On the right is an example of the Family Chart.

Customization

Most of the settings for the page are in a file famconfig.php which is normally in the main tng folder. If you want to change the colours or sizes of boxes, the relevant lines need to be changed. It is best to copy the line and paste it into your customconfig.php file. Do not change the famconfig.php file itself. In this way, when you reinstall the mod, your changes will not be lost.

For example, if you don't use any pictures on your site or don't want thumbnails in the Family Chart page, place the following line in customconfig.php

$familychart['inclphotos'] = 0;

If you want the background colour of the family boxes to show as a dull red rather than dull blue:

$familychart['fbackcolor'] = '#CAA';   #family background

You can use any of the standard html codes for colours.

A fuller example shows the colors from TNG style classes in Template 4 with the mytngstyle.css values that will override these.

TNG Family Chart
class Template 4 Color famconfig Variable Original Color Changed Color
fieldnameback #DEEAF2 $familychart['fboxcolor'] #EEF #DEEAF2
innercontainer #CCCC99 $familychart['fbackcolor'] #AAC #CCCC99
databack #ECF9FF $familychart['boxcolor'] #DDE #ECF9FF

for which the following was added to the customconfig.php file

// Added for Family Chart customization
$familychart['fboxcolor'] = '#DEEAF2'; #colour of main family boxes
$familychart['fbackcolor'] = '#CCCC99'; #family background
$familychart['boxcolor'] = '#ECF9FF'; #colour of other family boxes

TNG User sites using this mod

If you download and install this mod, please add your TNG sites to the table below

URL User Note Mod-Version/TNG-Version User-language
Moss Family Tree Chris Moss Template 5 10.0.3.2/10.0.3 EN, FR, DE
Genealogische Verkenningen Cor Kuipers Template 14 10.0.3 EN, FR, DE
My family (no public site) Oname.gif Template 3 see at Oname.gif users site D,(NL),(GB)
Our Roy and Boucher Family Ken Roy Template 4 10.0.3.2/10.0.3
10.1.0.3/10.1.0 beta
EN, FR

Revision History

Version Date Contents
v10.0.3.1 2 Jan 2015 corrected display of living individuals, added some tooltips and incorporated person not found mod
v10.0.3.2a 5 Jan 2015 added Family tab to main display; removed conflicts with other mods; various other cleanups