Default Photo Path Mod

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Default Photo Path 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

Ambox notice.png This mod should only be used to move default photos created using treeID.personID.jpg from your photos directory to either a subdirectory or a new directory.

Before installing this mod, take a look at Media_-_Default_Images on the ways to create default photos.


Default Photo Path
Summary Adds a new path for the default photo of a person or family .
Validation Mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 3 Jul 2021
Download link for
TNG 13.1.0
TNG 13.0.4
TNG 13.0
TNG 12.0
TNG 11.0
TNG 10.0
TNG 9.2.1
[Show older versions]

[Hide old versions]

Download stats View download statistics
Author(s) Ken Roy
Homepage Default Photo Path Mod (This page)
Mod Support TNG Coummnity Forums
Contact Developer TNG Community Forums
Latest Mod for TNG 13.1+ for TNG 13.0.4+ for TNG 13+ for TNG V9.2.1 and up for TNG V9
8.1.0 for TNG V8
1.2 for TNG V7
Min TNG V 7.0.0
Max TNG V 13+
Files modified
Related Mods
Note that if you don't set the new Default Photo Path TNG will continue to get your default photo from the photos directory


This modification adds a new Default Photo Path in the TNG config.php file for the default photo of

  • a person you created with image file name treeID.personID.jpg
  • a family you created with image file name treeID.familyID.jpg
  • a source you created with image file name treeID.sourceID.jpg.

The new default photo path can be a new folder or a subfolder to the photos folder. Be sure you name your pictures like this: treeID.personID.jpg (example: tree1.I23.jpg where the I in the name must be a capital I).

If you do not specify the new Default Photo Path, TNG will continue to behave as before and get the default images from the photos directory.


This mod was developed by Ken Roy.


This mod provides the following advantages:

  • allows moving the default photos to a user specified default photo folder for photos that you create with image file names of the form
    • treeID.personID.jpg for persons
    • treeID.familyID.jpg for families
    • treeID.sourceID.jpg for sources
  • allows you to specify the default photo path as either:
    • a new directory, such as default, or
    • a subdirectory such as photos/default
  • allows the relief required when approaching the limit on the number of files in one directory that FTP can see or manage
  • allows you to keep only photos that are part of photos media collection in the photos folder.

Note that if you don't set the new Default Photo Path TNG will continue to get your default photo from the photos directory.

Revision History

Version Date Contents
v13.1.0.6 22 Oct 2022 Updated for TNG 13.1
v13.0.4.5a 3 Jul 2021 Updated to eliminate PHP 8 undefined variable if user does not update General Settings and to add comments where mod changes TNG code
v13.0.4.5 31 May 2021 Updated for TNG v13.0.4 beta which replaced the Make Folder with Rename in Settings
v13.0.0.4 20 August 2020 Updated for TNG v13
v9.2.1.3 8 January 2015 No code changes. Updated to add Wiki icon line in Mod List for TNG 10.1 generated by %wikipage:Default_Photo_Path_Mod%
v9.2.1.2 14 May 2013 Update for TNG 9.2.1 to fix Bad Target in pedbox.
v9.0.0.1 23 March 2012 Minor bugfix: the Make Folder button's success/failed message will now appear on the Default Photo Path line instead of on the Photo Folder line.
v9.0.0.0 23 March 2012 Language Mods added for Dutch, French and Spanish. Only tested for TNG v9 (or higher), but they might work for v8.1.0 and maybe even for v1.2!
v9.0.0.0 2 February 2012 updated for TNG V9
v8.1.0 24 May 2010 updated for TNG V8
v1.2 19 Jan 2010 minor bug fix so that its Make Folder button in Setup Paths and Folders reports messages on the Default Photo Path line and not the Photo Folder line
v1.1 17 Jun 2009 updates for pedjson.php so default photos show on Pedigree charts
v1.0 15 Jun 2009 initial release


  • a working TNG installation (the automated installation release was initially tested on TNG Version 7.1.0 and has been retested for Version 7.1.2)
  • an installed current version of the Mod Manager
  • a backup of the TNG Modules Involved

Automated Installation

  1. Download the appropriate distribution for your TNG version from the download links in the status area in the upper right.
  2. Extract the to your admin/mod_folder (V7) or mods (v8 and above).
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the default_photo_path.cfg.

Other Languages

Those who use other languages in addition to English can find appropriate mods to add Dutch, French or Spanish custom text additions in the summary in the upper right corner of this page. Follow the same procedure as explained above to install them.

If you want to add another language please send me the translation (either the texts or as a full language mod) and your name (so I can give you credit) by sending me a personal message using the Contact Developer link in the TNG Mod Summary in the upper right hand corner.

TNG user 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 use this TNG mod to move all my Default Photos out of the photos folder. 13.1.0 EN, FR
Roger's Online Genealogy Roger Moffat I use this TNG mod to move all my Default Photos out of the photos folder. 13.0.4 EN
Mitchell Families Online Roger Mitchell Makes default images much easier to manage. 10.0.2 EN
The Clist Connections Lochneil 8.1.0 8.1.3 EN
Grogan mob Margaret Turner Public site TNG V9.2.1 EN
Turner mob Margaret Turner Public site TNG V9.2.1 EN
British 1820 Settlers to South Africa Paul Tanner-Tremaine Public site TNG V10.1.1 EN
Farnham & Paradise Ohana Barbara Paradise login: tngguest, pwd: tngguest TNG V9.2.2 EN
Roni & Jerry's Genealogy and Family History Jerry Liebowitz Public site TNG v10.0.2 EN
Wortelboer Genealogy Bernard Wortelboer Public site 11.0.0 NL/EN
R G Strong Family Genealogy Russell Strong Public Site 13.1.1 EN, FR, DE, NL
Roebuck and Families Ancestry Website Donald Roebuck Public site 11.0.2 EN
Avery Genealogy Jim Kratoville 11.0.2 EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Jones Localhost Michael T. Jones Private 13.1.2 EN

Related Links

Display Only Non-Event Default Photos

Media - Default Images

Default Photo Path Mod

TNG Modules Involved

TNG version: 8.0

In TNG V8 and above, the following modules are updated:

  • globallib.php
  • pedbox.php
  • admin_genconfig.php
  • admin_updateconfig.php
  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php

TNG version: 7.0

In TNG V7, the following modules are updated:

  • globallib.php
  • pedjson.php
  • admin/editconfig.php
  • admin/updateconfig.php
  • English/cust_text.php