Compact Person Media

From TNG_Wiki
Revision as of 19:12, 20 September 2012 by Roebie (talk | contribs)
Jump to navigation Jump to search
Compact Person Media
Summary This mod will show the media on the getPerson page in a more compact fashion.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link  
TNG 9.0
compact_person_media_v9.0.0.4.zip
Download stats See download statistics
Author(s) Bart 'Roebie' Degryse
Homepage Compact Person Media
Mod Support TNG forum
Contact Developer
Latest Mod 9.0.0.4 for TNG v9
Min TNG V 9.0.0
Max TNG V 9.0.3
Files modified
personlib.php
Related Mods
Notes


Purpose of the mod

This mod will change the way media are shown on the getPerson page. Media with a title or description will be shown first on a one per row basis. Then all media having neither a title nor a description will be shown on one line (or more lines if they don't fit on one line).


Developer

This mod was developed by Bart 'Roebie' Degryse.


Requirements

  • 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 (is already included in TNG v9)


Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page. NOTE that I host these zip files on my own server. That way I can count the number of downloads for each mod I made and estimate the relevance of such mod.
  2. Extract the config file from the downloaded zip file into the 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.


Feature List

  • Thumbnails of media without title and description are shown on one line on the getPerson page.
  • NEW Optionally the mod can hide titles and descriptions causing all media to be shown on one line.


Visualization of this mod

The following images show the visual effects of installing the mod. The examples have only been tested with template 3, but should work on any template.

The first example shows the effect on photo's associated with a persons burial event. Note that in this case there is no photo with a description.

Without the mod
With the mod installed
Without the mod With the mod installed

The second example shows the effect on photo's in the media section of a persons page. In this case there is a photo with a description. As you can see it has been placed above the photos without description.

Without the mod
With the mod installed
Without the mod With the mod installed


In the event of a problem

  • Try using the Mod Manager Remove capability.
  • Contact me through the TNG forum.
  • Contact me by email. My email address is in the description column of this mod on the Mod Manager page.
  • Copy the backup of the affected files back to your TNG directory.


Revision History

Version Release Date Contents
v9.0.0.4 21 September 2012 When the utmost right image in a row comes too close to the border of your browser the preview is not (completely) visible anymore. This version fixes this partially by showing the preview on the left side in those cases.

Warning: When the distance between the left border of the browser and the scrollbar (or border) on the right is less than 865 pixels, for at least one image there won't be enough place to show the preview on the left side either. In those cases the preview simply doesn't show. Once TNG uses jQuery I'll try to solve that too. Warning: In some browsers when you hold your mouse over the first pixel on the left of some images the preview starts flickering. I couldn't find a solution for that, but again I hope jQuery will (help me) solve this.

v9.0.0.3 18 September 2012
  • While fixing the IE problem the previous version also introduced a rendering problem in non-IE browsers. This update should be a definite fix for all.
  • New feature: Optionally the mod can now hide the titles and descriptions causing all media to be shown on one line.
v9.0.0.2 13 September 2012 This version bypasses a bug in IE9 which renders the left label column too wide in some cases.
v9.0.0.1 11 September 2012 This version fixes a little TNG bug causing this message:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 't' in /public_html/personlib.php on line 560
Since TNG9.0.4 will fix this bug there will be a new verion of this mod when TNG9.0.4 arrives.

v9.0.0.0 11 September 2012 Initial config file release


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
no public site Bart 'Roebie' Degryse Mod developer V9.0.0.0 TNG 9.0.3 NL/EN/ES/FR
http://www.genealogy.henny-savenije.pe.kr/tng/ Henny Savenije v9.0.0.3 TNG 9.0.3 NL/EN/ES/FR
Our Roy and Boucher Genealogy Ken Roy v9.0.0.3 TNG 9.0.3 NL/EN/ES/FR