Difference between revisions of "Unused Media"
(48 intermediate revisions by 16 users not shown) | |||
Line 3: | Line 3: | ||
| mod_summary = Adds a tab (Unused Media) to the Admin > Media page | | mod_summary = Adds a tab (Unused Media) to the Admin > Media page | ||
| mod_validation = Admin application, validation not attempted | | mod_validation = Admin application, validation not attempted | ||
− | | download_link = for {{Tv1010}}<br />[[Media:Unused_media_v10.1.0. | + | | mod_last_update = 3 Sep 2018 |
+ | | download_link = for {{Tv120}}<br />[[Media:Unused_media_v12.0.0.2.zip | Unused_media_v12.0.0.2.zip]]<hr />for {{Tv1010}}<br />[[Media:Unused_media_v10.1.0.3.zip | Unused_media_v10.1.0.3.zip]]<hr />for {{Tv100}}<br />[[Media:Unused_media_v10.0.0.2.zip | Unused_media_v10.0.0.2.zip]]<hr />for {{Tv920}}<br />[[Media:Unused_media_v9.2.0.1.zip | Unused_media_v9.2.0.1.zip]]<hr />for {{Tv90}}<br />[[Media:Unused_media_v9.0.0.1.zip | Unused_media_v9.0.0.1.zip]]<hr />for {{Tv80}}<br />[[Media:Unused_media_v8.1.3.zip | Unused_media_v8.1.3.zip]]<hr />for {{Tv70}}<br />[[Media:Unused_media_v3.0.zip | Unused_media_v3.0.zip]] | ||
| mod_author = Warren S Gilbert | | mod_author = Warren S Gilbert | ||
| mod_url = [[Maintenance - Unused Media]] | | mod_url = [[Maintenance - Unused Media]] | ||
− | | mod_support = [ | + | | mod_support = [https://www.gilbert-family-history.net/mod_support.php Support for Warren Gilbert's mods] |
− | | mod_version = 10.0.0.2 for TNG 10.0<br />9.2.0.1 for TNG V9.2<br />9.0.0.1 for TNG V9.0<br />8.1.3 for TNG V8<br />3.0 for TNG V7 | + | | mod_version = 12.0.0.2 for TNG 12.0 and above<br />10.1.0.3 for TNG 10.1 and above<br />10.0.0.2 for TNG 10.0<br />9.2.0.1 for TNG V9.2<br />9.0.0.1 for TNG V9.0<br />8.1.3 for TNG V8<br />3.0 for TNG V7 |
| mod_contact = | | mod_contact = | ||
| min_TNG_ver = 7.0.0 | | min_TNG_ver = 7.0.0 | ||
− | | max_TNG_ver = | + | | max_TNG_ver = 12.0.1 |
| TNG_file_list = See [[Maintenance_-_Unused_Media#TNG_Modules_Involved | TNG Modules Involved]] | | TNG_file_list = See [[Maintenance_-_Unused_Media#TNG_Modules_Involved | TNG Modules Involved]] | ||
| related_mods = | | related_mods = | ||
Line 28: | Line 29: | ||
== Requirements == | == Requirements == | ||
− | * A working TNG installation. Automated installation has been tested on TNG versions 7.1.3 to | + | * A working TNG installation. Automated installation has been tested on TNG versions 7.1.3 to 12.0.1. |
* A backup of the [[Maintenance_-_Unused_Media#TNG_Modules_Involved | TNG modules involved]] | * A backup of the [[Maintenance_-_Unused_Media#TNG_Modules_Involved | TNG modules involved]] | ||
Line 37: | Line 38: | ||
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config Files]] to install the '''unused_media.cfg'''. | # Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config Files]] to install the '''unused_media.cfg'''. | ||
− | '''Note''' that the mod adds | + | '''Note''' that the mod adds lines to customconfig.php. |
If you do not already have a customconfig.php file, create a file named customconfig.php containing only the php opening and closing tags: - | If you do not already have a customconfig.php file, create a file named customconfig.php containing only the php opening and closing tags: - | ||
<pre><?php | <pre><?php | ||
Line 52: | Line 53: | ||
! Date | ! Date | ||
! Contents | ! Contents | ||
+ | |- | ||
+ | | v12.0.0.2 | ||
+ | | 7 Sep 2018 | ||
+ | | | ||
+ | * Fix bug causing non-creation of a required file | ||
+ | |- | ||
+ | | v12.0.0.1 | ||
+ | | 3 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 | ||
+ | |- | ||
+ | | v12.0.0.0 | ||
+ | | 2 May 2018 | ||
+ | | | ||
+ | * Updated for changes in TNG v12 | ||
+ | |- | ||
+ | | v10.1.0.3 | ||
+ | | 11 June 2016 | ||
+ | | | ||
+ | * Changed to use preg_replace instead of ereg_replace (function deprecated/removed). | ||
+ | * Added option to check for "dotfiles" (.DS_Store etc.).<br /> | ||
+ | * Bug fix. | ||
|- | |- | ||
| v10.1.0.1 | | v10.1.0.1 | ||
| 28 January 2015 | | 28 January 2015 | ||
− | | | + | | |
+ | * Updated to replace mysql calls with tng (mysqli) calls. | ||
|- | |- | ||
| v10.0.0.2 | | v10.0.0.2 | ||
| 10 May 2014 | | 10 May 2014 | ||
− | | | + | | |
+ | * Fix to work when a folder holds more than one media type. | ||
|- | |- | ||
| v10.0.0.1 | | v10.0.0.1 | ||
| 24 Feb 2014 | | 24 Feb 2014 | ||
− | | | + | | |
+ | * Fix a bug when media is in a subfolder. | ||
|} | |} | ||
Line 70: | Line 100: | ||
== More Information == | == More Information == | ||
− | With this mod installed, files can be deleted from the server either individually or by deleting selected files. | + | * 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 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. | + | * 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. |
− | 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. | + | * 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. | ||
== In the event of a problem == | == In the event of a problem == | ||
Line 81: | Line 112: | ||
== Visualization of this mod == | == Visualization of this mod == | ||
− | [[Image:UnusedMedia. | + | [[Image:UnusedMedia.png]] |
== Side effects == | == Side effects == | ||
Line 88: | Line 119: | ||
== TNG Modules Involved == | == TNG Modules Involved == | ||
− | === TNG V10, V9 | + | === TNG V12, V11, V10, V9, V8 === |
− | |||
− | |||
− | |||
− | |||
* modifies the following TNG modules 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 | * modifies the following TNG modules 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 | ||
* adds custom text to languages/English/cust_text.php and languages/English-UTF8/cust_text.php | * adds custom text to languages/English/cust_text.php and languages/English-UTF8/cust_text.php | ||
Line 112: | Line 139: | ||
! Mod-Version/TNG-Version | ! Mod-Version/TNG-Version | ||
! User-language | ! User-language | ||
+ | |- | ||
+ | | [https://www.treichel-familie.de Treichel-Familie.de] | ||
+ | | [[User:EAndy| A. Treichel]] | ||
+ | | Public & Private | ||
+ | | 12.0.0.0/12.0.1 | ||
+ | | DE, UK, FR, ES, PL | ||
|- | |- | ||
| [https://www.teige.de My family] | | [https://www.teige.de My family] | ||
Line 124: | Line 157: | ||
| 9.0.0.1/9.0.3 | | 9.0.0.1/9.0.3 | ||
| NL, EN | | NL, EN | ||
+ | |- | ||
+ | | [http://www.katiandgraham.com/genealogy/index.php Chamberlain & Eidenbenz Genealogy] | ||
+ | | [[User:Hiraeth|Graham Chamberlain]] | ||
+ | | Public Site | ||
+ | | 12.0.0.0/12.0.0 | ||
+ | | EN, FR, DE, SP, NL | ||
|- | |- | ||
| The Zausmer Forest | | The Zausmer Forest | ||
Line 173: | Line 212: | ||
| EN | | EN | ||
|- | |- | ||
− | | [ | + | | [https://www.gilbert-family-history.net Gilbert Family History] |
| [[User:Warren Gilbert|Warren S Gilbert]] | | [[User:Warren Gilbert|Warren S Gilbert]] | ||
| Public Site | | Public Site | ||
− | | | + | | v12.0.0.2/ TNG 12.0.1 |
| EN | | EN | ||
|- | |- | ||
Line 189: | Line 228: | ||
| [[User:Clausm|Claus Martinussen]] | | [[User:Clausm|Claus Martinussen]] | ||
| Public Site | | Public Site | ||
− | | | + | | 12.0.0.0/12.0.3 |
| DA, EN | | DA, EN | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| [http://www.wortelboer.tk Wortelboer Genealogy] | | [http://www.wortelboer.tk Wortelboer Genealogy] | ||
Line 204: | Line 237: | ||
| NL, EN | | NL, EN | ||
|- | |- | ||
− | | [ | + | | [https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia] |
| [[User:bradyfamilytree|Darryl Brady]] | | [[User:bradyfamilytree|Darryl Brady]] | ||
| Public site | | Public site | ||
Line 210: | Line 243: | ||
| EN, DE | | EN, DE | ||
|- | |- | ||
− | | [ | + | | [https://donquigley.net Quigley Doyle Family Tree] |
| [[User:dwqwiz|Don Quigley]] | | [[User:dwqwiz|Don Quigley]] | ||
| Public Site | | Public Site | ||
| 10.1.0.1/11.0.0 | | 10.1.0.1/11.0.0 | ||
+ | | EN | ||
+ | |- | ||
+ | | [https://www.kmtrees.com/ Roots & Relatives Remembered] | ||
+ | | [[User:Tngrlkrz|Ron Krzmarzick]] | ||
+ | | Public & Private | ||
+ | | 12.0.0.0/ [https://kmtrees.com/modlist_wiki?whichoptions=basic&cachemethod=3&sortby=filename See Here] | ||
+ | | EN,DE,CS,ES | ||
+ | |- | ||
+ | | [https://ourfamilyhistory.club OurFamilyHistory] | ||
+ | | [[User:Paul Barrett|Paul Barrett]] | ||
+ | | Public except for living | ||
+ | | 10.1.0.3/11.1 | ||
+ | | EN | ||
+ | |- | ||
+ | | [https://www.rgstrong-genes.com R G Strong Family Genealogy] | ||
+ | | [[User:Rgstrong|Russell Strong]] | ||
+ | | Public Site | ||
+ | | 10.1.0.3/11.0.1 | ||
+ | | EN, FR, DE, NL | ||
+ | |- | ||
+ | | [http://racine-ad.fr/TNG/index.php Racine d'Alsace] | ||
+ | | J-Louis Valory | ||
+ | | Public/Private - Template 1 | ||
+ | | 12.0.0.0/12.0 | ||
+ | | French | ||
+ | |- | ||
+ | | [https://roeljongman.nl Stamboom Jongman] | ||
+ | | [[User:Roelj|Roel Jongman]] | ||
+ | | Public/Private site | ||
+ | | 10.1.3 | ||
+ | | NL, DE, EN | ||
+ | |- | ||
+ | | [https://www.thebrownfamilytree.com/ The Brown Family Tree] | ||
+ | | [[User:Slowjim|James Brown]] | ||
+ | | Public/Private site | ||
+ | | 10.1.0.3/11.1.1 | ||
+ | | EN | ||
+ | |- | ||
+ | | [http://bumbery.com/ Bumbery-Wangler] | ||
+ | | [[User:Bob|Bob Bumbery]] | ||
+ | | Public site | ||
+ | | 10.1.0.3/11.1.2 | ||
+ | | English | ||
+ | |- | ||
+ | | [http://colegenealogy.dynu.net/ Cole / Tanner Family Tree] | ||
+ | | [[User:dlcole|David Cole]] | ||
+ | | Public/Private | ||
+ | | [[User:Dlcole|see here]] | ||
+ | | English | ||
+ | |- | ||
+ | | [https://www.kks-fam.net/ KK's Family History] | ||
+ | | [[User:KinKhronicler|Kathy Kult]] | ||
+ | | Public/Private site | ||
+ | | 12.0.0/12.0.1 | ||
+ | | EN | ||
+ | |- | ||
+ | | [http://genealogy.oceanwharf.com Hooley Family Links] | ||
+ | | [[User: lastejas|Rick Hooley]] | ||
+ | | Public/Private | ||
+ | | [[User: lastejas|See Here]] | ||
+ | | EN | ||
+ | |- | ||
+ | | [https://ourfamilyhistories.org Our Family Histories] | ||
+ | | [[User: Bsl20b50|Bryan S. Larson]] | ||
+ | | Public site | ||
+ | | [[User: Bsl20b50|See Here]] | ||
| EN | | EN | ||
|- | |- | ||
Line 222: | Line 321: | ||
[[Category:Mods for TNG v9]] | [[Category:Mods for TNG v9]] | ||
[[Category:Mods for TNG v10]] | [[Category:Mods for TNG v10]] | ||
+ | [[Category:Mods for TNG v11]] | ||
+ | [[Category:Mods for TNG v12]] | ||
[[Category:Admin media.php mods]] | [[Category:Admin media.php mods]] | ||
[[Category:Admin editmedia.php mods]] | [[Category:Admin editmedia.php mods]] |
Revision as of 18:26, 23 February 2019
Maintenance - Unused Media | ||||||||
---|---|---|---|---|---|---|---|---|
Summary | Adds a tab (Unused Media) to the Admin > Media page | |||||||
Validation | Admin application, validation not attempted | |||||||
Mod Updated | 3 Sep 2018 | |||||||
Download link | for
Unused_media_v12.0.0.2.zip for
Unused_media_v10.1.0.3.zip for
Unused_media_v10.0.0.2.zip for
Unused_media_v9.2.0.1.zip for
Unused_media_v9.0.0.1.zip for
Unused_media_v8.1.3.zip for
Unused_media_v3.0.zip | |||||||
Download stats | {{{download_stats}}} | |||||||
Author(s) | Warren S Gilbert | |||||||
Homepage | Maintenance - Unused Media | |||||||
Mod Support | Support for Warren Gilbert's mods | |||||||
Contact Developer | ||||||||
Latest Mod | 12.0.0.2 for TNG 12.0 and above 10.1.0.3 for TNG 10.1 and above 10.0.0.2 for TNG 10.0 9.2.0.1 for TNG V9.2 9.0.0.1 for TNG V9.0 8.1.3 for TNG V8 3.0 for TNG V7 | |||||||
Min TNG V | 7.0.0 | |||||||
Max TNG V | 12.0.1 | |||||||
Files modified | ||||||||
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. Automated installation has been tested on TNG versions 7.1.3 to 12.0.1.
- 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 unused_media.zip to your admin/mod_folder (V7) or mods (v8 or later).
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the unused_media.cfg.
Note that the mod adds lines to customconfig.php. If you do not already have a customconfig.php file, create a file named customconfig.php containing only the php opening and closing tags: -
<?php ?>
and copy it to your site in the same folder as the config.php file (usually the TNG root).
Note that the config file only includes the English language changes. If you support multiple languages, you will need to modify the config file to add the custom text for your other languages.
Revision History
Version | Date | Contents |
---|---|---|
v12.0.0.2 | 7 Sep 2018 |
|
v12.0.0.1 | 3 Sep 2018 |
|
v12.0.0.0 | 2 May 2018 |
|
v10.1.0.3 | 11 June 2016 |
|
v10.1.0.1 | 28 January 2015 |
|
v10.0.0.2 | 10 May 2014 |
|
v10.0.0.1 | 24 Feb 2014 |
|
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.
In the event of a problem
- Try using the Mod Manager Remove capability
- Or copy the backup versions of the TNG modules involved.
Visualization of this mod
Side effects
As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager to remove the mod before the upgrade and re-installing the mod after the upgrade greatly simplifies this process).
TNG Modules Involved
TNG V12, V11, V10, V9, V8
- modifies the following TNG modules 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
- adds custom text to languages/English/cust_text.php and languages/English-UTF8/cust_text.php
TNG V7
In TNG V7, this mod:
- modifies the following TNG modules customconfig.php, admin/media.php, admin/editmedia.php, admin/newmedia.php, admin/ordermediaform.php, admin/photoimport.php, admin/thumbnails.php, and English/media_help.php
- adds custom text to English/cust_text.php
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 |
---|---|---|---|---|
Treichel-Familie.de | A. Treichel | Public & Private | 12.0.0.0/12.0.1 | DE, UK, FR, ES, PL |
My family | (no public site) | see at 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 |
The Zausmer Forest | Joyaa Antares | (no public site) | 10.1.0.1/10.1.3 | EN |
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 | V9.0.0.0/V9.0.3 | EN |
AppeltHaus Genealogy | Lawrence Appelt | Not a Public Site. | V10.1.0.1/TNG 10.1.0 | EN |
Whittlesey-Whittelsey Family History | Willis S Whittlesey III | Public Site | V9.2.0/ TNG 9.2.0 | EN |
Grogan mob | Margaret Turner | Public Site | V9.2.0.1/ TNG 9.2.0 | EN |
Turner mob | Margaret Turner | Public Site | V9.2.0.1/ TNG 9.2.0 | EN |
Legacy Gazette: My Roots - My Legacy | Melissa Watson Padilla | Public Site | v9.2.0.1/ TNG 9.2.1 | EN |
Gilbert Family History | Warren S Gilbert | Public Site | v12.0.0.2/ TNG 12.0.1 | EN |
British 1820 Settlers to South Africa | Paul Tanner-Tremaine | Public Site | v10.1.0.1/ TNG 10.1.1 | EN |
DJCM.DK | Claus Martinussen | Public Site | 12.0.0.0/12.0.3 | DA, EN |
Wortelboer Genealogy | Bernard Wortelboer | Public site | 10.1.0.1 / 11.0.0 | NL, EN |
Brady Family Tree in Western Australia | Darryl Brady | Public site | 10.1.0.1/10.1.1 | EN, DE |
Quigley Doyle Family Tree | Don Quigley | Public Site | 10.1.0.1/11.0.0 | EN |
Roots & Relatives Remembered | Ron Krzmarzick | Public & Private | 12.0.0.0/ See Here | EN,DE,CS,ES |
OurFamilyHistory | Paul Barrett | Public except for living | 10.1.0.3/11.1 | EN |
R G Strong Family Genealogy | Russell Strong | Public Site | 10.1.0.3/11.0.1 | EN, FR, DE, NL |
Racine d'Alsace | J-Louis Valory | Public/Private - Template 1 | 12.0.0.0/12.0 | French |
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 | English |
Cole / Tanner Family Tree | David Cole | Public/Private | see here | English |
KK's Family History | Kathy Kult | Public/Private site | 12.0.0/12.0.1 | EN |
Hooley Family Links | Rick Hooley | Public/Private | See Here | EN |
Our Family Histories | Bryan S. Larson | Public site | See Here | EN |
- Mods for TNG v7
- Mods for TNG v8
- Mods for TNG v9
- Mods for TNG v10
- Mods for TNG v11
- Mods for TNG v12
- Admin media.php mods
- Admin editmedia.php mods
- Admin mediaupload.php mods
- Admin newmedia.php mods
- Admin ordermediaform.php mods
- Admin photoimport.php mods
- Admin thumbnails.php mods
- Cust text.php English mods
- Customconfig.php mods