Default Photo Path Mod

From TNG_Wiki
Revision as of 08:50, 4 July 2014 by HiTowerUK (talk | contribs) (TNG user sites using this mod)

Jump to: navigation, search
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.

TNG 10.0
TNG 9.0
TNG 8.0
TNG 7.0

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 {{{mod_last_update}}}
Download link for
TNG 10.0
TNG 9.2.1
TNG 9.0
TNG 8.0
TNG 7.0
Dutch language file
French language file
Spanish language file
Download stats View download statistics
for Default Photo Path mod
for Language files
Author(s) Ken Roy
Homepage Default Photo Path Mod (This page)
Mod Support TNG Forums
Contact Developer Ken Roy
Latest Mod 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 10+
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
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 from the forum .

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. 10.0.0 EN, FR
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 V9.2.2 EN
Farnham & Paradise Ohana Barbara Paradise login: tngguest, pwd: tngguest TNG V9.2.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