Difference between revisions of "Admin Thumbnails"

From TNG_Wiki
Jump to: navigation, search
Line 114: Line 114:
 
| [[User:Bernard57|Bernard Wortelboer]]
 
| [[User:Bernard57|Bernard Wortelboer]]
 
| Admin page; not accessible
 
| Admin page; not accessible
| 10.1.0.2/11.0.0
+
| 10.1.0.3/11.0.1
 
| NL,EN
 
| NL,EN
 
|-
 
|-

Revision as of 07:49, 15 May 2016

Admin Thumbnails
Summary Reworks the generation of thumbnails to offer more options, raise the size limit, and display more information.
Validation
Mod Updated {{{mod_last_update}}}
Download link For
TNG 11.0
TNG 10.1.1

admin_thumbnails_v10.1.0.3.zip
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 10.1.0.3
Min TNG V 10.1
Max TNG V 11.0
Files modified
admin_generatethumbs.php, admin_thumbnails.pohp, English, cust_text.php
Related Mods
Notes


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).
  • (VERY SIGNIFICANTLY) turn admin_generatethumbs into an include file that is included directly in admin_thumbnails.php, which used to invoke it through AJAX. Unfortunately, using AJAX causes some errors to be hidden and makes it impractical to interrupt a long-running operation.

Parameters

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.

Dependencies

This mod depends on Show Mod Names,v2+, as do virtually all of my mods

Requirements

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

Automated Installation

  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.

In the event of a problem

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

Visualization of this Mod

BEFORE: Admin thumbnails-before1.png
AFTER
Additional options on the form
Admin thumbnails-after1.png
AFTER
Additional information about what was processed
Admin thumbnails2-after.png

Mod Change History

Mod Version TNG Versions Date Note
10.1.0.3 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.2 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 10.1.0.3/11.0 EN
Hooley Family Links Rick Hooley Admin page; not accessible 10.1.0.2/10.1.1 EN
Wortelboer Genealogy Bernard Wortelboer Admin page; not accessible 10.1.0.3/11.0.1 NL,EN