Difference between revisions of "Admin Media Thumbnails"

From TNG_Wiki
Jump to: navigation, search
(Sites using this mod)
(add my site)
Line 121: Line 121:
| [[User: lastejas|See Here]]
| [[User: lastejas|See Here]]
| EN
| EN
| [https://www.malvache.net Généalogie Malvache]
| [[User: Cmalvache|Cédric Malvache]]
| Public/Private
| FR

Revision as of 08:21, 15 February 2019

Under construction

Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 13.0
TNG 12.0

Admin Thumbnails
Summary Allows users to control which mediatypes and tree to process, and can create thumbnails for larger image files.
Mod Updated 5 May 2018
Download link v12.0.0.4a.zip TNG 12
For older versions, see the Revision History below.
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod v12.0.0.4
Min TNG V 10.1
Max TNG V at least 12.0
Files modified
admin_generatethumbs.php, admin_thumbnails.php, English cust_text.php
Related Mods

Purpose of the Mod

To make the the generation of thumbnails quicker and more flexible. Changes include:

  • A mod parameter lets you increase the file size limit (which is normally 1MB), since most servers seem able to process files of 2MB or more.
  • Process only the Mediatypes and tree that have been selected (I generally don't bother with censuses and documents)
  • Generate a list of new thumbnail paths and offer to display it.
  • Displays files that couldn't be processed (and offers to hide that list).

On a technical note: This mod turn admin_generatethumbs.php into an Include file that is included directly in admin_thumbnails.php, which, in the native code, runs admin_generatethumbs.php through AJAX. Unfortunately, using AJAX causes some errors to be hidden and makes it impractical to interrupt a long-running operation.


Skip files larger than this size, in KB (defaults to 2000)
PHP crashes badly if it runs out of memory when trying to create a thumbnail, and the pristine code sets 1000Kb; that is, 1MB, as a reasonably conservative limit. I have found that I can get by with 2.5MB (2500KB) on my servers.

Compatibility With Other Mods

This mod is compatible with Unused Media, the only other published mod that affects either program.


Like virtually all of my mods, this mod uses, but does not in any way depend on, Show Mod Names.


[Show Installation Details]


  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup files listed in the panel on the right.


  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.


  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.
[Hide Details]


You cannot select a tree or a Mediatype; the native program always creates thumbnails for all media jpg files in the Media table. Admin thumbnails-before1.png
Additional options on the form
Admin thumbnails-after1.png
Additional options on the form
Admin thumbnails-after1.png
Additional information about what was processed
Admin thumbnails2-after.png

Revision History

Mod Version TNG Version Date Note 12.0+ 16 Oct 2018 No functional changes; fixed a couple of bugs.

changed the .cfg file to be compatible with PHP code that was changed in TNGv12. 10.1.0 - 11.0 14 May 2016 Updated cust_text.php target location search strings to look for the one-line comment that says "Put your own custom messages here, like this: "Cleaned up the code and added some information to the display such as the file size of files that couldn't be processed 10.1.0 - 11.0 14 May 2016 Added Show Mod Names and the parameter that allows larger files to be processed.

Cleaned up the code and added some information to the display such as the file size of files that couldn't be processed 10.1.0 - 10.1.1 19 Apr 2015 Initial release

Sites using this mod

If you download and install this mod, please add your site to the table below.

URL User Note Mod-Version/TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Admin page; not accessible EN
Wortelboer Genealogy Bernard Wortelboer Admin page; not accessible NL,EN
Eskeland and Haugland Family User:helland71 Admin page; not accessible NO, EN
Hooley Family Links Rick Hooley Public/Private See Here EN
Généalogie Malvache Cédric Malvache Public/Private FR