Default Photo Path Mod
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 | ||
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 |
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. | |||||||||
Mod Updated | 5 Dec 2024 | |||||||||
Download link | for
for
for
for
for
for
[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 | 14.0.5.9 for TNG 14.0.5+ 14.0.0.7 for TNG 14+ 13.1.0.6 for TNG 13.1+ 13.0.4.5a for TNG 13.0.4+ 13.0.0.4 for TNG 13+ 9.2.1.3 for TNG V9.2.1 and up 9.0.0.1. for TNG V9 8.1.0 for TNG V8 1.2 for TNG V7 | |||||||||
Min TNG V | 7.0.0 | |||||||||
Max TNG V | 14+ | |||||||||
Files modified | ||||||||||
Related Mods | None | |||||||||
Notes | Note that if you don't set the new Default Photo Path TNG will continue to get your default photo from the photos directory |
Introduction
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.
Developer
This mod was developed by Ken Roy.
Advantages
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 | |
---|---|---|---|
14.0.5.9 | 5 Dec 2024 | Update for TNG 14.0.5 requested by Roger Moffat to support use in a WordPress environment | |
14.0.5.8 | 2 Jun 2024 | Update for TNG 14.0.5 provided by Roger Moffat during TNG 14.0.5 beta 1 testing
| |
14.0.0.7 | 10 Sep 2022 | Updated for TNG 14 | |
13.1.0.6 | 22 Oct 2022 | Updated for TNG 13.1 | |
13.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 | |
13.0.4.5 | 31 May 2021 | Updated for TNG v13.0.4 beta which replaced the Make Folder with Rename in Settings | |
13.0.0.4 | 20 Aug 2020 | Updated for TNG v13 | |
9.2.1.3 | 8 Jan 2015 | No code changes. Updated to add Wiki icon line in Mod List for TNG 10.1 generated by Default Photo Path Mod | |
9.2.1.2 | 14 May 2013 | Update for TNG 9.2.1 to fix Bad Target in pedbox. | |
9.0.0.1 | 23 Mar 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. | |
9.0.0.0 | 23 Mar 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! | |
9.0.0.0 | 2 Feb 2012 | updated for TNG V9 | |
8.1.0 | 24 May 2010 | updated for TNG V8 | |
1.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 | |
1.1 | 17 Jun 2009 | updates for pedjson.php so default photos show on Pedigree charts | |
1.0 | 15 Jun 2009 | initial release |
Requirements
- 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
- Download the appropriate distribution for your TNG version from the download links in the status area in the upper right.
- Extract the default_photo_path.zip to your admin/mod_folder (V7) or mods (v8 and above).
- 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. | 14.0.5.9 |
|
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.5 | 13.0.4 | EN | |
Mitchell Families Online | Roger Mitchell | Makes default images much easier to manage. | 9.2.1.2 | 10.0.2 | EN | |
The Clist Connections | Lochneil | 8.1.0 | 8.1.3 | EN | ||
Grogan mob | Margaret Turner | Public site | 9.2.1.2 | TNG V9.2.1 | EN | |
Turner mob | Margaret Turner | Public site | 9.2.1.2 | TNG V9.2.1 | EN | |
British 1820 Settlers to South Africa | Paul Tanner-Tremaine | Public site | 9.2.1.2 | TNG V10.1.1 | EN | |
Farnham & Paradise Ohana | Barbara Paradise | login: tngguest, pwd: tngguest | 9.2.1.2 | TNG V9.2.2 | EN | |
Roni & Jerry's Genealogy and Family History | Jerry Liebowitz | Public site | 9.2.1.2 | TNG v10.0.2 | EN | |
Wortelboer Genealogy | Bernard Wortelboer | Public site | 14.0.0.7 | 14.0.0 | NL/EN | |
R G Strong Family Genealogy | Russell Strong | Public Site | 14.0.0.7 | 14.0.4 | EN, FR, DE, NL | |
Roebuck and Families Ancestry Website | Donald Roebuck | Public site | 9.2.1.3 | 11.0.2 | EN | |
Avery Genealogy | Jim Kratoville | 9.2.1.3 | 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.0.6 | 13.1.2 | ||
KK's Family History | Kathy Kult | Public (Living are Private) | 14.0.5.8 |
|
EN | |
Racine d'Alsace | J-Louis Valory | Public (registration) | 14.0.5.8 | 14.0.5 | FR |
Related Links
Display Only Non-Event Default Photos
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
- Mods for TNG v14
- Mods for TNG v13
- Mods for TNG v12
- Mods for TNG v11
- Mods for TNG v10
- Mods for TNG v9
- Mods for TNG v8
- Mods for TNG v7
- Globallib.php mods
- Pedbox.php mods
- Admin genconfig.php mods
- Admin updateconfig.php mods
- Cust text.php Dutch mods
- Cust text.php English mods
- Cust text.php French mods
- Cust text.php Spanish mods
- Media