Family Preview Mod

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Family Preview 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
Caution If you are having trouble downloading with the Google Chrome browser, try using try right-click and select Open in new Window, then F5, or use another browser Caution

Family Preview Mod.
Summary This mod adds a person preview on mouseover of family member's name on an individual's page.
Validation This mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 3 Jan 2022
Download link for
TNG 13.0

eliminates PHP 8 warnings

Mouseover preview
TNG 13.0
TNG 12.0
TNG 11.0
TNG 10.1.0

TNG 10.0

TNG 9.0

Click Mag-Glass icon for popup
TNG 12.0
TNG 11.0
TNG 10.1.0

TNG 10.0

TNG 9.0

Download stats See download statistics
For v13.0.0.3/4
Author(s) Jeff Robison
Homepage Robison and Blythe Genealogy
Mod Support TNG Community Forums
Contact Developer My Mod Support
Latest Mod for TNG 13+
Min TNG V 9.1
Max TNG V 13+
Files modified
Related Mods

Purpose of the mod

  • Version v9.0.0.2 and v10.0.0.0 adds a person preview on mouseover of family member's name on an individual's page comparable to the preview in search.php but the preview position is fixed on the page.
  • Versions v9.0.0.2lb and v10.0.0.0alb adds a mag-glass icon after a person's name. A lite box popup is displayed when clicked. Navigation or more popups are available from the popup.
TNG version: 12.0.0
  • The Family Preview Mod Version is complementary to two other mods if installed (Note the feature is only available on TNG 12 and is disabled for mobile devices):
    • The Add Person Siblings Row mod
      - person preview popups of sibling and sibling spouses(partners) possible.
    • The Show All Family mod
      - person preview popups of children's spouses(partners), oldest ancestors spouses(partners), parents other spouses(partners), and spouses other spouses(partners)


This mod was developed by Jeff Robison.
* View all mods by Jeff Robison

Updated for TNG v13 by Ken Roy and Brent Hemphill to eliminate PHP 8 warnings


  • A working TNG installation. The automated installation release was tested at TNG Version 9.0.3.
  • An installed current version of the Mod Manager.

Automated Installation

  1. Remove/Delete all previous versions of this mod.
  2. Download the .zip file. Upload and Extract to the mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install.

In the event of a problem

Revision History

Version Date Description
V13.0.0.4 3 January 2022 Updated by Ken Roy
  • to resolve PHP 8 fatal error
code change was modified by Brent Hemphill on TNG Community Forum
V13.0.0.3 27 June 2021 Updated by Ken Roy
  • to resolve PHP 7 warning errors
  • to add comments where changes are made
  • to move familyprevlib101.php to a subfolder
which was modified by Brent Hemphill to eliminate PHP 8 warnings 24 January 2015 Updated for TNG v10.1. 03 March 2014 Revised mod version V10.0.0.0lb so 'Cremated' is displayed instead of 'Burial' where applicable. 03 March 2014 Revised mod version V9.0.0.2 so 'Cremated' is displayed instead of 'Burial' where applicable. 23 July 2013 This mod and the Custom Event Show/Hide mod do not like each other on a mobile browser so....
Some popular mobile device detection was added. Popups disabled if detected.
Devices: Phone|Mobile|iPhone|iPod|iPad|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|webOS|hpwOS|Fennec|Minimo|Opera Mobi|Opera Mini|Blazer|Dolfin|Dolphin|Skyfire|Zune. 20 May 2013 This mod adds a person preview on mouseover of a family member's name on an individual's page.
The popup content is limited by the browser window height only so for the most part all info may be viewed. 14 May 2013 Compatible with Living Color Mod. 10 May 2013 This version utilizes TNG's litbox.js popup functions and installs a modified copy of ajx_perspreview.php.
Click the blue mag-glass after a name.
The modified ajx_perspreview.php allows for navigation and/or more popups.
Popup width/height parameters are available for edit in Mod Manager after installation.
No known conflicts. 02 May 2013 This mod adds a person preview on mouseover of a family member's name on an individual's page.
Comparable to the preview in search.php but the preview position is fixed on the page. No scrolling!

Custom Text Additions

Note: The config file only includes the English language changes, so if you support multiple languages you can modify the config file to add the custom text for those other languages, or manually add the following custom text to each of your other languages with appropriate translations of course.

$text['preview'] = "Preview";
$text['clicktopreview'] = "Click to preview";

Custom CSS

The class governing the properties of the popup window is .LB_window. By default the background color is the same as .databack in genstyle.css and templatestyle.css

To change the background color add the following to your mytngstyle.css or to mygenstyle.css. Replace the hex color code ' #e0e0f7 ' with the color of your choice.
Note: Changing the background color affects all other litbox popups on your site resulting in a content with .databack color and the popup background will be the new color.

.LB_window {
    background: #e0e0f7;

To use a seamless background image for the background.
Replace filename with the actual file name.
Note: This example assumes the image is in the img directory. If not the background color will be #fff (white)

.LB_window {
  background: #fff url(../img/filename) repeat;

TNG User sites using this mod

Please add TNG site that you have found that utilize this modification

URL User Note Mod-Version TNG-Version User-language
Ahnenforschung Joachim Drexel Joachim Drexel Public 12.3.0 German
William Moffat on Roger's Online Genealogy Roger Moffat Public/Private 12.1.0 DE, EN
Families all over the World Hans Weebers Public/Private NL/DE/ENG/FR
Robison and Blythe Genealogy Jeff Robison Mod developer 13.0.2 EN
Nordic Ancestry Mogens C. Fenger Not a public site 9.1.0 DA, EN
Kemp(e) Family History Andrew Kemp see User:Kempons see User:Kempons EN
Grogan Mob Margaret Turner Public site 10.1.1 EN
Turner Mob Margaret Turner Public site 10.1.1 EN
Sorenson-Robey Family History Darlene Bittaker 9.1.1 EN
Genealogies of the peat colonies in the North of the Netherlands Henny Savenije 9.2.1 EN, Du, DE, Fr, Sp, etc
British 1820 Settlers to South Africa Paul Tanner-Tremaine Public site 12.3 EN
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Wortelboer Genealogy Bernard Wortelboer public site 11.0.0 NL, EN
Stamboom familie Boersma Jan Boersma public site 12.0.3 NL, EN
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.1 EN, DE
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 13.1.2 EN, NL, ES
Roy~Royes Family Links Bruce Roy Public site 10.1.2 EN
Quigley Doyle Family Tree Don Quigley Public Site 11.0.0 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Public 12.0.i EN, FR, DE, ES, NL
The Grahams of Helensburgh Jim Graham Public/Private 12.0 EN
Familienforschung Riehl & Kröber Otto Riehl (no public site) 11.1.2 DE, EN, ES, FR, PT
Luithlenfamilie Ingo Wagner Not a Public site 11.1.2 DE, EN, NO, FR
Rintoul/Bowman Family Andrew Rintoul Public/Private 12.0 EN, DE, ES, FR
Genealogy of the Weir and Drain Families Beverley Stimpson Public Site 11.1.2 EN
Bumbery-Wangler Bob Bumbery Public/Private Site 13.0.0 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
Martius family Hendrik Martius Half public 12.0.1 DE, EN, FR, NL
Eskeland and Haugland family User:helland71 Private 12.0.2 NO, EN
Genealogische Datenbank JPB Public site see here see here DE, EN, FR
Familienforschung SCABELL Helga Scabell Public/Private 12.1 DE, EN, PT
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 12.1 EN
Racines luxo-hennuyeres Michel Kirsch Public/Private 13.0.3 FR/EN/NL/GE/SP
Our Immigrant Ancestors Jim Larson Private 13.1.1 EN, NO
Familenforschung Kattau Uwe Kattau Public / Private 13.0.2 DE
Vitter-Weaver Genealogy Jeffrey Vitter Public site 13.0.3 EN, FR, CH, DE, ES, IT, NO
Our Roy and Boucher Family Ken Roy Updated with Brent Hemphill to eliminate PHP 8 warnings 13.1.1 EN, FR
Die Familie Assent-Metternich Rainer Assent Private 13.0.3 DE
Osage County Cousins Larry G Banks Public / Private 13.1 EN
Sejarah Thümann Jeffrey Thümann Public 13.0.3 NL, EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.1.2 NL
Your Roots are Showing Harold Craswell Public/Private See Here See Here EN