Mobile Site Enhancements

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Mobile Site Enhancements 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


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

Ambox notice.png This mod only applies to TNG v10.1 and up. You will also want to install:

This mod conflicts with the Public Access Control mod which must be installed before the Mobile Site Enhancements

TNG 10.1.0

Mobile Site Enhancements
Summary provides enhancements to TNG when in mobile or tablet mode
Mod Updated 12 Apr 2024
Download link

[Show older versions]

TNG 10.1.0
for the Family tab, you need v10.0.3b of Family Chart Mod
[Hide old versions]

Download stats View download statistics
Author(s) Ken Roy
Homepage Mobile Site Enhancements (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod for TNG v14+ for TNG v13.1+ for TNG v13.0.3+ for TNG v13.0.2+ for TNG v13+ for TNG v12,1+ for TNG v12.0 0 12.0.3 for TNG v11.1.1 and up for TNG v11 and up for TNG V10.1.0 and up
Min TNG V 10.1.0
Max TNG V 14+
Files modified
admin_genconfig.php (
admin_updateconfig.php (
functions.php (
browsemedia.php (
headstones.php (
Related Mods
Responsive Tables (prior to TNG v11)
Life Dates Mobile
Mobile Media (prior to TNG v10.1.2)
Mobile Site No Previews (prior to TNG v10.1.2
Mobile Individual Page Map
Family Chart Mod mobile version (prior to TNG v11)
If you use the Family Chart Mod, you will need the mobile version of that mod to change the icon tab into a text tab in TNG V10


This mod provides enhancements to TNG when in mobile mode, such as

  • not adding the Site Name to the page title
to make it easier for Shortcut Saving
  • reducing the margins and padding
  • reducing the header bar height to half its size
  • moves the site title to the menu bar
  • adjusting the sprites and displacement made accordingly
  • reducing the Admin icons to half their size when in mobile mode
  • adjusting the getperson page left column to a smaller width
  • adjusting the left nav area for template 4 to a smaller width
  • display text for the tabs on the smart phones rather than icons

If you are using the Family Chart Mod, you also need to install the mobile enhancements for the Family Chart mod since it uses its own tab building function.

Note that the Mobile Site Enhancements - Family Chart will cause the Family Chart Mod to be marked partially installed because the icon tab on smart phones is changed to a text tab and has been withdrawn since it causes users to attempt a Clean up of the Family Chart Mod

Note that the some of the changes originally in this mod were moved to other mods during beta testing

With TNG V11, the following are now obsolete


Before installing the Mobile Site Enhancements mod, the following items take up value real estate on smart phones:

  • - menu bar
  • - site title
  • - default person image

The tab icons are also very cryptic as icons only

After installing the Mobile Site Enhancements mod, the following items free up value real estate on smart phones:

  • - menu bar
  • - site title
  • - default person image

allowing more lines of data to be displayed

The tab as text can now be understood.

TNG version: 11.0.0

The Mobile Section in TNG V11 is now modified to offer choices for

  • where Site Name is displayed
    • In menu bar
    • Below menu bar
  • how the tabs are displayed
    • As a TNG pull down
    • As text only tabs (without icons)


This mod was developed by Ken Roy.

Conflicts and Issues

TNG 11.0
If you install the Add DNA Test Results mod you must install the Mobile Site Enhancements first
After you install the Add DNA Test Results mod, the Mobile Site Enhancements will show a Bad Target at line 383 in Mod Manager
Both mods are actually install and show work correctly.
Caution: Do NOT attempt to Clean Up the Partial Install condition
In standard, the preview is obtained by tapping on the thumbnail. Tapping again removes the preview.
With your Mobile Site Enhancements installed, the preview appears, but it cannot be removed by tapping again.
Mod Conflict Note the install order requirements.

Mobile Site Enhancements conflicts with Canonical Tag Mod. If you also use the Canonical Tag Mod, it must be installed before Mobile Site Enhancements You may need to uninstall the Mobile Site Enhancements and install it after the Canonical Tag Mod mod
Mobile Site Enhancements also conflicts with the Public Access Control mod which also must be installed before installing the Mobile Site Enhancements, you may need to uninstall the Mobile Site Enhancements and install it after the Public Access Control mod

Mod Conflict

Revision History

Version Date Contents 12 Apr 2024 Updated showsource.php to use thumbnails class instead of $thumbmaxw and fix missing comment terminator for code move in Location 5 in genlib.php 22 Oct 2022 Updated for code change in TNG 14 2 Nov 2021 Updated for code change in TNG 13.1 19 Apr 2021 Updated to eliminate PHP 7 Notices and PHP 8 warnings. Code change provided by Brent Hemphill 22 Dec 2020 Updated mod for TNG 13.0.3 22 Dec 2020 Updated mod for TNG 13.0.2 23 Sep 2020 Updated mod for TNG 13 18 May 2019 Updated mod to no longer show the install dependency with the Public Access Control mod. 7 May 2019 Updated mod to eliminate conflict with Person Media Title mod. 24 Mar 2019 Updated mod to display conflict with Public Access Control mod. No code changes from v12.1.0.3 in TNG 12.1 14 Mar 2019 Updated mod for code change in TNG 12.1 1 May 2018 Updated mod for code change in TNG 12 1 May 2017 Updated mod for code change in TNG 11.1.1 Note that the conflict with the Add DNA Test Results mod which must be installed after this mod cannot be resolved. Installation note added in mod description section. Note if using PHP 7.1.1 an update to classes\modinstaller.class.php is required. 18 March 2016 Updated mod to resolve conflict with Erik Hoppe's Public Access Control mod which must be installed first 15 March 2016 Updated mod for TNG V11 to use the Mobile Section in Admin > Setup > General Settings to set options

Includes class=thumbnail changes that were previously in the Responsive Tables mod that were not incorporated in TNG v11 implementation of Responsive Tables 24 September 2015 Updated mod to use $sitename if the template does not have a maintitle, like Template 8. Provided by Bryan Larson 30 July 2015 Updated mod to prevent printing <title> twice. Provided by Roger Moffat 6 July 2015 Updated mod for TNG 10.1.2 14 June 2015 Updated mod to
  • add changes to genlib.php that will be in the next TNG upgrade after TNG 10.1.1
  • relocate the code that creates the mobile site title so that it comes before the call to the tng_mobileicons function to avoid a blank site name 28 April 2015 Updated mod to fix the thumbnails display on the Individual getperson.php page by
  • adding the genstyle.css for .thumbnails and .eventdatecol which are in the Responsive Tables mod to allow this mod to be installed without having to install the responsive tables
  • modified another location in personlib.php for media linked to events to use the new external css classes 22 April 2015 Initial production release of the mod using the medium size sprite (60% of the original TNG sprite) instead of 50%

See Mobile Site Enhancements beta for Revision History during beta testing.


  • a working TNG installation
  • an installed current version of the Mod Manager
  • a backup of the files shown in TNG file list
  • use of the Header Title 1 from the Template Settings is used for the mobile menu bar title
unless not using a template in which case the Site Name in General Settings is used
  • if using the Family Chart Mod, then you should
    • uninstall that mod
    • install the Family Chart Mobile Mod. If the mobile version is not posted contact the Family Chart Mod developer

Automated Installation

  1. Download the appropriate mod for your TNG version and desktop genealogy program from the download links in the status area in the upper right.
  2. Extract the appropriate zip file to your TNG mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the appropriate mod for your desktop genealogy program.


The following screen captures show some of the changes made by the mod

Individual Page Before Installation Individual Page After Installation
Individual Page before Individual Page after
Mod Manager Before Installation Mod Manager After Installation
Mod Manager Before Mod Manager After

Reported Issues

Issue Reported By Mod Version Problem Description Comments Resolved
Tabs are not readable Sandor van Seeventer Text in the tabs with an individual is not readable/scrambled (via tablet) Go to Admin > Setup > General Settings > Site Design and change the Tabs Style Sheet: to use tngtabs2.css Yes

See Mobile Site Enhancements beta for issues resolved during beta testing.

General Information

Mobile Mode Display

Tuning for Mobile Display

Formatting Tables for Mobile Display

Incorporated in to TNG 10.1

Mobile Media - adjusts the Image display when not using the Image Viewer and adjusts the Image Preview for smart phones and tablets was incorporated into TNG v10.1

Mobile Site No Previews - eliminates Person, and Family previews for smart phones was incorporated into TNG v10.1

Mobile Site No Slideshow - suppresses the Slide Show for smart phones and tablets was incorporated into TNG v10.1

Incorporated in to TNG 11

Responsive Tables - adjusts TNG table displays based on screen widths is incorporated into TNG v11

Mods that are applicable for TNG 11

Mobile Individual Page Map - adjusts the Google Event Map on smart phones and tablets

Mobile Site Enhancements - several adjustments for smart phones and tablets

Life Dates Mobile - adjusts the date displays for smart phones and tablets as an alternative to Life Dates Mod which always puts the birth and death dates on separate lines

Responsive Tables in TNG v11

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 to make the Individual page display better on a smart phone.
TNG 14.0.4
Fam. van Seeventer Sandor van Seeventer Public site 14.0 NL
Wortelboer Genealogy Bernard Wortelboer 14.0.0 NL, EN
Chamberlain & Eidenbenz Genealogy Graham Chamberlain 12.0.1 EN,NL,FR,DE,ES
Our Family Saga Del Groves 10.1.1 EN
Kemp(e) Family History Andrew Kemp see User:Kempons see User:Kempons EN
Andersson - Hoppe - Sahlin - Thorell Erik Hoppe Public / Private 11.1.2 SE, EN, DE
Luithlenfamilie Ingo Wagner Not a Public site 11.1.2 DE, EN, NO, FR
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
OurLife Family History - McMullen Clan Sean Thompson Not a public site. 11.1.0 English
Familles GINTER et WERSANT Jean-Pierre Ginter Not a public site. 11.1.1 English, French, German
Ancestry of the Brown Family Misty Bearman 11.1.0 English
DuPree Family Center Andrew DuPree 12.1 English
Wilton, Brimson, Munro and Forward Families Sharon Lewis 11.1.0 English
Drzewo Genealogiczne Rodziny Pepel Klemens Pepel Not a public site 11.1.1 English
Our Roots&Relatives Kåre Kjøllesdal Not a public site 13.1 NO, EN
Wakefield Ancestry William Wakefield Not a public site 11.1.1 English
Rintoul/Bowman Family Andrew Rintoul Public/Private 12.0 EN, DE, ES, FR
Our Immigrant Ancestors Jim Larson Private 14.0.4 EN, NO
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 13.1.2 NL, EN, ES
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
Racine d'Alsace J-Louis Valory Public/Private - T17 customized 12.0.2 FR
Barta-Joggele Online aus Mauren, Liechtenstein Gerald Meier Private 14.0.4 DE, EN, FR, ES, IT, PT, CZ
Leicestershire Antills & Connected Families John Antill Public 12.1 EN
Botebygden - Local Community Research Erik Hoppe Public 12.3 SE
Johnson / Bryans Family Tree Charlie Ferrero Public 13.1 EN
R G Strong Family Geneaolgy Russell Strong Public 14.0.4 EN, NL, DE, FR