Unused Media

From TNG_Wiki
Jump to navigation Jump to search
Unused Media
Summary Adds a tab (Unused Media) to the Admin > Media page
Validation Admin application, validation not attempted
Mod Updated 05 Mar 2025
Download link For
TNG 15.0
Unused_media_v15.0.0.1.zip
For
TNG 14.0
TNG 13.0

Unused_media_v14.0.0.10.zip
For
TNG 12.0

Unused_media_v12.0.0.2.zip
For
TNG 10.1.0

Unused_media_v10.1.0.3.zip
‎For
TNG 10.0

Unused_media_v10.0.0.2.zip
‎For
TNG 9.2.0

Unused_media_v9.2.0.1.zip
For
TNG 9.0

Unused_media_v9.0.0.1.zip
For
TNG 8.0

Unused_media_v8.1.3.zip
For
TNG 7.0

Unused_media_v3.0.zip
Download stats View download statistics TNG15
Author(s) Warren S Gilbert
Homepage Unused Media (This page)
Mod Support Support for Warren Gilbert's mods
Contact Developer Support for Warren Gilbert's mods
Latest Mod 15.0.0.1
Min TNG V 7.0.0
Max TNG V 15.0
Files modified
customconfig.php
admin_media.php
admin_editmedia.php
admin_newmedia.php
admin_ordermediaform.php
admin_photoimport.php
admin_thumbnails.php
languages/English/media_help.php
languages/English/cust_text.php and languages/English-UTF8/cust_text.php
languages/Dutch/cust_text.php
languages/Dutch-UTF8/cust_text.php
languages/Danish/cust_text.php
languages/Danish-UTF8/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
Related Mods
Notes

Purpose of the mod

This mod adds a tab (Unused Media) to the Admin > Media page. It lists files which are present in the media folders on the server, but not registered with TNG.

Developer

This mod was developed by Warren S Gilbert.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site

Revision History

Mod Version TNG Version Date Contents
15.0.0.1 15.0 09 Mar 2025 Updated by Brett. Removed PHP warning. Placed icon in mod folder.
15.0.0.0 15.0 06 Mar 2025 Updated for TNG15 by Brett.
14.0.0.10 14.0 02 Jan 2023
13.0.0.9 13.0 19 Apr 2022
  • Ensure folder list file is created when needed.
  • Other bug fixes
13.0.0.8 13.0 20 May 2021
13.0.0.7 13.0 08 May 2021
  • Added a Danish translation, courtesy of Brett
13.0.0.6 13.0 20 Oct 2020
  • Fix code causing php notices
13.0.0.4 13.0 15 Oct 2020
  • Remove deprecated php function (get_magic_quotes_gpc)
13.0.0.3 13.0 13 Oct 2020
  • Updated for TNG 13 new Admin layout
12.0.0.2 12.0 07 Sep 2018
  • Fix bug causing non-creation of a required file
12.0.0.1 12.0 03 Sep 2018
  • Allow the search to be delayed until values are entered (mod options)
  • Ignore files with specific extensions, files and folders with specific names (mod options)
  • Allow the search to be limited to a single folder (mod options)
  • Write/read mod specific files to extensions folder rather than TNG root. (see More Information, below)
  • Help for this area expanded/re-written for the mod
12.0.0.0 12.0 02 May 2018
  • Updated for changes in TNG v12
10.1.0.3 10.1 11 Jun 2016
  • Changed to use preg_replace instead of ereg_replace (function deprecated/removed).
  • Added option to check for "dotfiles" (.DS_Store etc.).
  • Bug fix.
10.1.0.1 10.1 28 Jan 2015
  • Updated to replace mysql calls with tng (mysqli) calls.
10.0.0.2 10.0 10 May 2014
  • Fix to work when a folder holds more than one media type.
10.0.0.1 10.0 24 Feb 2014
  • Fix a bug when media is in a subfolder.

Conflicts and Issues

No known conflicts.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and any tables if created, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

More Information

  • With this mod installed, files can be deleted from the server either individually or by deleting selected files.
  • Files can be excluded from the report and will then be recorded in file 'unusedmedia.txt' in the extensions folder for v12.0.0.1 or later, in the TNG root folder of your site if you are using TNG v8 or later, or the admin folder of your site if you are using TNG v7. If not already present, 'unusedmedia.txt' will be created the first time you choose to exclude a file. The file is optional, and the report will function whether or not it exists.
  • If you install v12.0.0.1 or later, and have used an earlier version of Unused Media, unusedmedia.txt and unusedmediatemp.txt will be in the TNG root. This version creates them in the extensions folder. unusedmedia.txt contains the names of media to be excluded. If you have excluded files from the report, and wish to continue excluding them, you should move this file to the extensions folder. Otherwise, both files can safely be deleted from the TNG root.
  • Excluded files are not normally listed, but there is an option for them to be shown, and they can then be included back in the normal report.

Visualization of this mod

UnusedMedia.png

Options

Once you have installed the mod, click [Options]

Unused-media-01.png

Click Edit options

Unused-media-02.png
  • Row 1 - List any files that you don't want the mod to list. In the example below, all files called "index.html" will be excluded. Separate each of the files you wish to exclude with a comma and then click Update. Note - This is intended to quickly eliminate a number of files that have the same name and do not need to be listed, such as index.html files, which some people place in image folders for added security. You do not need to use this field to list every single file you wish to exclude.
  • Row 2 - You can exclude complete folders from being searched. In the example below, all "thumbs" folders will not be checked. Separate each of the folders you wish to exclude here with a comma and then click Update. If you want the mod to check "thumbs" folders for any unused thumbnails, delete "thumbs" and click Update.
  • Row 3 - List any files types that you want the mod to exclude. In the example below, "txt" files and "php" files will not be listed. Separate each of the file types you wish to exclude here with a comma and then click Update.
  • Row 4 - No search will be carried out unless you enter some search information into the search options if this value is set to "true". By default, this is set to "false" (recommended).
  • Row 5 - If you set this value to "true", then the Unused Media tab will include a drop-down option to select the specific folder you wish to search. By default, this is set to "false" (recommended).
Unused-media-03.png

Searching

When you click on the Unused Media tab in the Media section, all unused media will be listed.

If you want to delete any of the images from your site, you can...

  1. Click on the delete icon, or
  2. Place a tick in the Select column and click Delete Selected
Unused-media-04.png

If you want to hide/exclude an image from being listed as unused...

  1. Place a tick in the Select column
  2. Click Exclude Selected
Unused-media-05.png

If you want to be reminded of which files you have excluded and are no longer being displayed...

  1. Tick Show excluded files
  2. Click Go
Unused-media-06.png

Understanding the icons

  1. This is an image that has already been excluded from being listed as unused. If you click on this icon, the image will be added back into the list (i.e., it will no longer be excluded)
  2. Click on this icon if you want to delete the image from your site
Unused-media-07.png

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
Samaha Family Tree Nicolas M Samaha Public & Private 15.0.0.1
TNG 15.0
EN, AR, FR, SP
Gilbert Family History Warren S Gilbert Public Site 14.0.0.10 14.0.0 EN
Treichel-Familie.de Andreas Treichel Public & Private 15​.0​.0​.1
TNG 15.0.1
DE, UK, FR, ES, PL
Brady Family Tree in Western Australia Darryl Brady Public site 14.0.0.10 15.0.0 EN, DE
Family tree of Marcin & Emilia Senderski Marcin Senderski Only home page is public 13.0.0.6 13.0.4 EN, PL
My family Oname.gif (no public site) see at Oname.gif site see at Oname.gif site D,(NL),(GB)
Van den Heuvel genealogy Marco van den Heuvel ... 9.0.0.1 9.0.3 NL, EN
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Public Site 12.0.0.0 12.0.0 EN, FR, DE, SP, NL
Zausmer Forest Joyaa Antares Private site 14.0.0.10 14.0.2 EN, FR
Nordic Ancestry Mogens C. Fenger ... 9.0.0.0 9.1.1 EN, DA
Arsenault and Simpson Family Genealogy Bob Arsenault not a public site 9.0.0.0 9.0.3 EN
AppeltHaus Genealogy Lawrence Appelt Not a Public Site. 10.1.0.1 10.1.0 EN
Whittlesey-Whittelsey Family History Willis S Whittlesey III Public Site 9.2.0 9.2.0 EN
Grogan mob Margaret Turner Public Site 9.2.0.1 9.2.0 EN
Turner mob Margaret Turner Public Site 9.2.0.1 9.2.0 EN
Legacy Gazette: My Roots - My Legacy Melissa Watson Padilla Public Site 9.2.0.1 9.2.1 EN
British 1820 Settlers to South Africa Paul Tanner-Tremaine Public Site 10.1.0.1 10.1.1 EN
DJCM.DK Claus Martinussen Not a Public Site 13.0.0.8 13.0.4 DA, EN
Wortelboer Genealogy Bernard Wortelboer Public site 14.0.0.10 14.0.0 NL, EN
Quigley Doyle Family Tree Don Quigley Public Site 10.1.0.1 11.0.0 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See here See here EN,DE,CS
OurFamilyHistory Paul Barrett Public except for living 10.1.0.3 11.1 EN
R G Strong Family Genealogy Russell Strong Public Site 14.0.0.10 14.0.4 EN, FR, DE, NL
Racine d'Alsace J-Louis Valory Public/Private - Template 1 12.0.0.0 12.0 FR
Stamboom Jongman Roel Jongman Public/Private site 10.1.3 NL, DE, EN
The Brown Family Tree James Brown Public/Private site 10.1.0.3 11.1.1 EN
Bumbery-Wangler Bob Bumbery Public site 10.1.0.3 11.1.2 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL
KK's Family History Kathy Kult Public/Private 14.0.0.10
TNG 15.0.1
EN
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Our Family Histories Bryan S. Larson Public site See Here See Here EN
The Duttons of New England Darrin Dutton Public / Private 14.0.0.10 14.0.1 EN
Vitter-Weaver Genealogy Jeffrey Vitter Public site 13.0.0.7 13.0.3 EN, FR, CH, DE, ES, IT, NO
Racines Luxo-hennuyères Michel Kirsch Public site (registration) 13.0.0.8 13.1.2 FR/EN/DE/NL
The Severijns / Timmer Familytree Rob Severijns Public / Private See here See here NL, EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 14.0.0.10
TNG 14.0.5
EN, NL, ES
Berkshire FHS Paul Barrett Private/Synology NAS 13.0.0.8 13.0.4 EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Your Roots are Showing Harold Craswell Public/Private See Here EN
ADLER-Wien Herbert Fischer Public site 13.0.0.9 14.0 DE
Osage County Cousins Larry G Banks Public/Private 14​.0​.0​.10
TNG 15.0
EN
Carr's Garage Regis Carr Public/Private 11.0.0. 13.1.2 EN, GR, NO
Stammbaum der Familie Datschetzky Christian Datschetzky Public 14.0.0.10 14.0.3 DE, EN
Roy and Caldwell families Philip Roy Private 14​.0​.0​.10
TNG 15.0
EN