Person Media Title

From TNG_Wiki
Jump to: navigation, search
Restricted Downloads of Person Media Title 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 Restricted

In TNGv12 and beyond, this mod uses the new 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]


Person Media Title
Summary Add option to show title to media shown on one row. Also add option to allow media other than photos to show on one row when not attached to an event.
Validation V12.1.0.1 is XHTML compliant.Valid-xhtml10.png
Mod Updated 20 May 2019
Download link person_media_title_v12.1.0.3
TNG 12.1.0
Download stats See download statistics
Author(s) Brent Hemphill
Homepage Person Media Title (This page)
Mod Support TNG Community Forums
Contact Developer
Latest Mod 12.1.0.3
Min TNG V 12.1.0
Max TNG V 12.1.0
Files modified
admin_genconfig.php
admin_updateconfig.php
genlib.php
getperson.php
personlib.php
js/net.js
languages/English/cust_text.php
languages/English/config_help.php
languages/English-UTF8/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
languages/German/cust_text.php
languages/German-UTF8/cust_text.php
Related Mods
none
Notes



Purpose of the mod

This TNG modification adds some additional options to Admin >> Setup >> General Settings >> Media to allow:

  1. Media titles to be shown on thumbnails on the getperson page
  2. Documents to be shown on one row when not attached to an event
  3. Headstones to be shown on one row when not attached to an event
  4. Histories to be shown on one row when not attached to an event
  5. Recordings to be shown on one row when not attached to an event
  6. Videos to be shown on one row when not attached to an event
  7. Citations to be shown or not be shown with thumbnails of media attached to the citation

Also there is a fix to calculate on mobile devices when the preview will flow off the screen to the right and instead display the preview to the left. This is most useful on tablets on the mobile version, since the narrower the screen is the less likely it is that the preview will fit to the left or right of the thumbnail.

It also fixes a jQuery change that on screen resize, the left or right preview pop-up was not recalculating the screen width. It only does the first 30 table table rows with media, since that function has to be declared before the number of media table rows is known. This number could quickly be increased by replicating some lines of code and incrementing the counters. This change also applies to the left or right preview determination for mobile devices when the orientation is changed.

It also fixes an issue with a collapsed event where the media row does not end up getting included in the collapsed event when a single row option is chosen.

Developer

The Person Media Title mod was developed by Brent Hemphill.
German text provided by Jürgen Bourdeaux.
French text provided by Ken Roy and Katryne Chauvigné-Bourlaud.

Revision History

Version Date Contents
v12.1.0.3 May 20, 2019 Fix a conflict with the Public Access Control mod and functionality restore for that mod. Also add German text thanks to Jürgen Bourdeaux and French text thanks to Ken Roy and Katryne Chauvigné-Bourlaud.
v12.1.0.2 May 7, 2019 Fix an issue with displaying the wrong thumbnail when not set to thumbnail rows. Put generic thumbnails on the same row as the other thumbnails when one row is selected for the media type. Also added an option to not have citation thumbnails. Fix an issue with collapsed event media.
v12.1.0.1 May 5, 2019 Fix an issue with the title displaying on single media item rows. Also displaying the title on citations.
v12.1.0.0 May 4, 2019 initial release

Mod Conflicts

This mod must be installed after and uninstalled before Mobile Site Enhancements, since it installs in the middle of a replace operation in that mod and will cause a Bad Target at line 407.

The conflict was resolved in v12.1.0.5 of the Mobile Site Enhancements mod

This mod must be installed after and uninstalled before Public Access Control, since it will cause a Bad Target at line 2284 in that mod otherwise.

The conflict was resolved in v12.1.0.2 of the Public Access Control mod and the functionality of Public Access Control was resolved in Person Media Title v12.1.0.3.

This mod must be installed after Private Media Mod, since it will cause a Bad Target at line 586 in that mod otherwise.

Requirements

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

Installation

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

Custom Text

This MOD contains custom text in cust_text.php in the English / English-UTF8 folders. It also adds to the config_help.php file in the English folder.

cust_text.php

The following custom text entries need to be created in your language, if you do not use English for TNG Admin

// Added by Person Media Title
$admtext['showmediatitle'] = "Show media titles on thumbnails";
$admtext['reqmediathumbsset'] = "\"Show photos on one row\" must be set to Yes to enable this option";
$admtext['documentthumbs'] = "Show documents on one row";
$admtext['headstonethumbs'] = "Show headstones on one row";
$admtext['historythumbs'] = "Show histories on one row";
$admtext['recordingthumbs'] = "Show recordings on one row";
$admtext['videothumbs'] = "Show videos on one row";

In the event of a problem

  • Try using the Mod Manager Remove capability
  • Contact us through the TNG forum.
  • Copy the backup of the affected files back to your TNG directory

Visualization

The following screen captures show some of the changes made by the mod

Settings Page Before Installation
Person media title settings before.png

Settings Page After Installation with "Show photos on one row" set to No
Person media title settings after 1.png

Settings Page After Installation with "Show photos on one row" set to Yes
Person media title settings after 2.png


getperson Event Before Installation
Getperson event before.png

getperson Event After Installation
Getperson event after.png


getperson Collapsed Event Before Installation
Collapsed event before.png

getperson Collapsed Event After Installation
Collapsed event after.png


getperson non-Event Before Installation
Getperson non-event before.png

getperson non-Event After Installation
Getperson non-event after.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
van Heerden Genealogy Emile van Heerden Public & Private 12.1.0.0 12.1.0 English
Brent Hemphill Private Site/localhost 12.1.0.0 12.1.0 English
Roots & Relatives Remembered Ron Krzmarzick Public & Private (Cool Mod) 12.1.0.2 See Here EN, DE, CS, ES