Person Media Title

From TNG_Wiki
Jump to navigation Jump to 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
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox Caution


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 14.0
TNG 13.0
TNG 12.0


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 12 Feb 2022
Download link For
TNG 14.0
TNG 13.1.1
person_media_title_v13.1.1.1
For
TNG 13.0
person_media_title_v13.0.0.1
For
TNG 12.3.0
person_media_title_v12.3.0.4b
For
TNG 12.1.0
person_media_title_v12.1.0.3
Download stats See download statistics
Author(s) Brent Hemphill
Homepage Person Media Title (This page
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.1.1.1
Min TNG V 12.1.0
Max TNG V 13.1.1
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

This mod was developed by Brent Hemphill.

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
13.1.1.1 13.1 12 Feb 2022 Updated for TNG 13.1.1.
13.0.0.1 13.0 19 Sep 2020 Updated for TNG 13 by Ron Krzmarzick changes for genlib TNG13 RC1,and conflict with OpenStreetMaps v13.0.0.7.
12.3.0.4b 12.3 06 May 2020 Fix an issue with the title displaying on single media item family rows.
12.3.0.4a 12.3 05 May 2020 Fix a conflict with the Public Access Control mod. Also add Dutch text thanks to Renze Petersohn.
12.3.0.4 12.3 04 May 2020 Update for TNG 12.3. Also fix undefined variable notices.
12.1.0.3 12.1 20 May 2019 Fix a conflict with the Public Access Control mod and functionality restore for that mod. Also add German text thanks to Jürgen P. Bourdeaux and French text thanks to Ken Roy and Katryne Chauvigné-Bourlaud.
12.1.0.2 12.1 07 May 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.
12.1.0.1 12.1 05 May 2019 Fix an issue with the title displaying on single media item rows. Also displaying the title on citations.
12.1.0.0 12.1 04 May 2019 initial release

Conflicts and Issues

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.

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.

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

Languages

English French and German are included with the Mod. If you want to use it with a different language, add the correct text (between double quotes) in the code below and add to your cust_text.php file in the appropriate language folder.

// 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";

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
Brent Hemphill Private Site/localhost 12.3.0.4a 12.3.0 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private (Cool Mod) See here See here EN,DE,CS
Genealogy of the van Heerden Family Emile van Heerden Public & Private 12.1.0.0 12.1.0 EN
Skeel-Holbek Finn Holbek Public & Private 12.2.2 12.1.03 DA,EN,DE,SV,IT,FR,ES,NO
The Severijns / Timmer Familytree Rob Severijns Public / Private See here See here NL, EN
Our Immigrant Ancestors Jim Larson Private 13.1.1.1 14.0.5 EN,NO
Racine d'Alsace J-Louis Valory Public (registration) 13.1.1.1 13.1.1 FR
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.0.0.1 13.1.2 NL
Kielakowie.com Janusz Kielak Public site 13.0.0.1 14.0.1 PL, EN, DE
Familjen Johnson Leif Johnson Public See here See here SE,EN