Difference between revisions of "Media ShowTable"

From TNG_Wiki
Jump to navigation Jump to search
(updated for alternate language file name)
Line 16: Line 16:
 
| notes          = This mod should be installed before the [[Body Text for Translation]] if you use both mods<br />Please update your additional language cust_text.php files with translations based upon the [[ShowTable_Mod#Custom_Text_Additions|Custom Text Additions]] for this mod.
 
| notes          = This mod should be installed before the [[Body Text for Translation]] if you use both mods<br />Please update your additional language cust_text.php files with translations based upon the [[ShowTable_Mod#Custom_Text_Additions|Custom Text Additions]] for this mod.
 
}}
 
}}
 +
<!-- Dutch language file name = media-2_show_table_v9.0.0.0_dutch.zip -->
 +
<!-- French language file name = Media-2_show_table_v9.0.0.0_fr.zip -->
 +
<!-- Spanish language file name = media-2_show_table_v9.0.0.0_spanish.zip -->
  
<!-- French language file name = Media-2_show_table_v9.0.0.0_fr.zip -->
 
  
 
{|align=right
 
{|align=right

Revision as of 11:08, 17 September 2012

ShowTable Mod
Summary Display the Media Description and Notes in the table below the image.
Validation This mod is XHTML compliant.Valid-xhtml10.png in TNG 8.1.2
Mod Updated {{{mod_last_update}}}
Download link media-2_show_table_v9.0.0.0.zip
Dutch language file
French language file
Spanish language file
for
TNG 9.0

media-2_show_table_v8.1.1a.zip
for
TNG 8.0

media-2_show_table_v1.0.zip
for
TNG 7.0
Download stats View V9 download statistics
View Media mods statistics
Author(s) Ken Roy
Homepage ShowTable Mod (This page)
Mod Support TNG Forums
Contact Developer Ken Roy
Latest Mod 9.0.0.0 for TNG V9
8.1.1 for TNG V8
1.0 for TNG V7
Min TNG V 7.0.0
Max TNG V 9.0.3
Files modified
showmedia.php
showmedialib.php
showmediaxml.php for TNG V7 only
showtable_desc-notes.php
Related Mods
Notes
This mod should be installed before the Body Text for Translation if you use both mods
Please update your additional language cust_text.php files with translations based upon the Custom Text Additions for this mod.



Introduction

This mod was designed to move the display the Media Description (title) and Notes (Media Information Description field) to the table below the image.

This mod applies to TNG 7.0 and above. The mod will work with TNG version 6, but the line numbers will be different.

V8.1.1 of the mod was updated to honor line feeds in the Media Notes row.

V9.0.0.0 of the mod adds an IPTC Encoding row to show the character set encoding of the IPTC tags within the image. The Media Title row was dropped since TNG V9 moves the image title below the image.

Developer

Ken Roy developed this mod.

Advantages

This mod

  • moves the Notes and Description normally displayed before the image to the table below the image
  • provides a standard way of displaying information about the image
  • repeats the media header as Media Title in the table

Requirements

  • A backup of the TNG showmedia.php, showmedialib.php, and showmediaxml.php files
  • An installed current version of the Mod Manager

Revision History

Note that there are two different flavors of this mod:

  • one to be installed when not using Bret Rumsey's Image Viewer Mod
  • other to be install when using Bret Rumsey's Image Viewer

The version numbers are kept the same, but the config file name is different.

Version Date Contents
V9.0.0.0 9 March 2012 Language Mods added for Dutch and Spanish. Only for TNG v9 (or higher)!
v9.0.0.0 2 February 2012 Updated for TNG V9. Added an IPTC Encoding row to show the character set encoding of the IPTC tags within the image. The Media Title row was dropped since TNG V9 moves the image title below the image. Also added a French language file that can be downloaded as a mod add-on.
v8.1.1a 7 February 2011 Removed French custom text inadvertently included in the v8.1.1 mod upgrade
v8.1.1 3 October 2010 Updated to honor line feeds within the Media Description shown as Media Notes. Thanks to Roger Mitchell for reporting
v8.1.0 24 May 2010 Updated for TNG V8
v1.0 26 May 2009 Initial config file release

Automated Install

  1. Download the appropriate distribution for your TNG version from the download links in the status area in the upper right.
  2. Extract the media-2_show_table.zip to your admin/mod_folder (V7) or mods (v8 and above).
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the media-2_show_table.cfg.

Note that the media-2_show_table_v1.0.cfg file is part of a series of media display mods where the n in media-n designates the install order of the mods. In TNG V7, if you use Bret Rumsey's Image Viewer it must be installed before this mod.

Custom Text Additions

Note that config file only includes the English language changes, so if you support multiple languages you will need to modify the config file to add the custom text for those other languages.

The following custom text will be added to your English/cust_text.php file by this mod. If you are using other languages, you must add these lines to each of your language cust_text.php files with appropriate translations of course.

TNG V7 and V8

TNG version: 8.1.3
TNG version: 7.0
//Show Table - Ken Roy's mod
$text['mediatitle'] = "Media Title";
$text['medianotes'] = "Media Notes";

For example, you would add to the French/cust_text.php

//Show Table - Ken Roy's mod
$text['mediatitle'] = "Titre de médias";
$text['medianotes'] = "Notes de médias";

TNG V9

TNG version: 9.0
//Show Table - Ken Roy's mod
$text['medianotes'] = "Media Notes";
$text['iptclang'] = "Encoding";

For example, you would add to the French/cust_text.php

//Show Table - Ken Roy's mod
$text['medianotes'] = "Notes de médias";
$text['iptclang'] = "Codage";

Or you can use the language mods in the summary in the upper right corner of this page to add Dutch, French or Spanish custom text additions. Procedure: download, unzip to TNG mods folder, install using Mod Manager. Note that these language mods work for TNG v9 (or higher) only!

If you want to add another language please send me the translation (either the texts or as a full language mod) and your name (so I can give you credit) by sending me a personal message from the TNG forum.

Visualization of Mod

Without this mod, the Media Description shows before the image as shown in the image on the right.

Media Description without ShowTable mod.jpg

With the ShowTable Mod, the Media Description is shown in the table below the image as shown in the image on the right. Notice that the Media Title is also repeated in the table.

Media Description with ShowTable mod.jpg


Sites using this mod

  • Please add TNG site that you have found that utilize this modification
URL User Note Mod-Version TNG-Version User-language
Our Roy and Boucher Family Ken Roy I use this TNG mod for all media collections. 9.0.0.0 9.0.3 EN, FR
... ... ... ... ... ...

Related Mods

The following Media mods may be related. The number indicates the install order if you install more than one of these mods: