Difference between revisions of "Person Media Title"

From TNG_Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
| mod_validation  = V12.1.0.1 is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]  
 
| mod_validation  = V12.1.0.1 is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]  
 
| mod_last_update = 6 May 2020
 
| mod_last_update = 6 May 2020
| download_link  = [[Media:person_media_title_v12.3.0.4b.zip|person_media_title_v12.3.0.4b]]<br />[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=17&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} person_media_title_v12.3.0.4a]{{Tv1230}}
+
| download_link  = [http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=18&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} person_media_title_v12.3.0.4b]{{Tv1230}}
 
[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=11&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} person_media_title_v12.1.0.3]{{Tv1210}}  
 
[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=11&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} person_media_title_v12.1.0.3]{{Tv1210}}  
 
| download_stats  = [http://www.wiese-schneckloth.com/genealogy/ccount/index.php?action=stats&groupid=4 See download statistics]
 
| download_stats  = [http://www.wiese-schneckloth.com/genealogy/ccount/index.php?action=stats&groupid=4 See download statistics]
Line 12: Line 12:
 
| mod_support    = [http://tng.community/ TNG Community Forums]
 
| mod_support    = [http://tng.community/ TNG Community Forums]
 
| mod_contact    =
 
| mod_contact    =
| mod_version    = 12.3.0.4a
+
| mod_version    = 12.3.0.4b
 
| use_mod_manager = Yes
 
| use_mod_manager = Yes
 
| manual_install  = No
 
| manual_install  = No

Revision as of 22:06, 6 May 2020

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 6 May 2020
Download link person_media_title_v12.3.0.4b
TNG 12.3.0

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.3.0.4b
Min TNG V 12.1.0
Max TNG V 12.3
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.
Dutch text provided by Renze Petersohn.

Revision History

Version Date Contents
v12.3.0.4b May 6, 2020 Fix an issue with the title displaying on single media item family rows.
v12.3.0.4a May 5, 2020 Fix a conflict with the Public Access Control mod. Also add Dutch text thanks to Renze Petersohn.
v12.3.0.4 May 4, 2020 Update for TNG 12.3. Also fix undefined variable notices.
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.3.0.4a 12.3.0 English
Roots & Relatives Remembered Ron Krzmarzick Public & Private (Cool Mod) See Here See Here EN, DE, CS, ES
Skeel-Holbek Finn Holbek Public & Private 12.2.2 12.1.03 DA, EN, DE, (etc.)