Image Map Message Mod

From TNG_Wiki
Jump to: navigation, search
Restricted Downloads of Image Map Message Mod 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


Image Map Message Mod
Summary Changes the message for image maps that are not for photos
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 18 Sep 2016
Download link For
TNG 11.0.2
media-5_image_map_msg_v11.0.2.3.zip
supports renaming extensions folder
For
TNG 11.0
TNG 10.1.0

media-5_image_map_msg_v10.1.0.2.zip
For
TNG 10.0
TNG 9.0

media-5_image_map_msg_v9.0.0.0.zip
French language file
media-5_image_map_msg_v8.1.2.zip for
TNG 8.1.2

media-5_image_map_msg_v8.1.1.zip for
TNG 8.0

media-5_image_map_message_v1.0.zip
for
TNG 7.0
Download stats View download statistics
for Image Map Msg mod
for Media mods group
Author(s) Ken Roy
Homepage Image Map Message Mod (This page)
Mod Support TNG Community Forums
Contact Developer Ken Roy
Latest Mod 11.0.2.2 for TNG V11.0.2 and above
10.1.0.2 for TNG V10.1 and above
9.0.0.0 for TNG V9 and above
8.1.2 for TNG V8.1.2
8.1.1 for TNG V8
1.0 for TNG V7
Min TNG V 7.0.0
Max TNG V 11+
Files modified
Related Mods
Notes



Purpose of the mod

This mod was designed to display a different message for image maps that are not photos.

This mod applies to TNG 7.0 and above.

Developer

Ken Roy developed this mod.

Advantages

This mod displays a different message if the image map is not for a photo, since clicking on the image may not display a person page.

Requirements

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-5_image_map_msg.zip to your admin/mod_folder (V7) or mods (v8).
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the media-5_image_map_msg.cfg.
  4. Edit the mediatypes selected to display alternate message if the media record contains an image map

Note that the media-5_image_map_message_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. If you use any of the other mods, they must be installed before this mod.

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.

You will need to make adjustments to the the $mediatypeID for the media collections where you are using image maps which are not photos where you create a link to the person.

Revision History

Version Date Contents
V11.0.2.2 18 September 2016 Updated to use $extspath variable for the extensions folder target to allow users to rename the extensions folder
V10.1.0.2 21 August 2016 Updated to use $extspath variable for the extensions folder include
V10.1.0.1 12 January 2015 Updated for TNG V10.1 to remove the location / replace for the Edit Parameters which is no longer needed
V9.0.0.0 2 February 2012 Updated for TNG V9.
V8.1.2 27 April 2011 Updated for TNG V8.1.2
V8.1.1 24 May 2010 Updated for TNG V8
V1.0 14 March 2019 Initial release of config file

Custom Text

English language

The following variable should be added to your English/cust_text.php

$text['mediamytext'] = "<strong>Note:</strong> Move your mouse pointer over the image to show additional information.";

French language

The following variable should be added to your French/cust_text.php

$text['mediamytext'] = "<strong>Notez:</strong> Déplacez votre pointeur de souris au-dessus de l'image pour exposer d'autres informations.";

Edit Mediatypes Used

V8.1.1 now allows editing the mediatypes that will display an alternate message when an Image Map is present for the image. The default mediatypes provided by the mod are:

  • census used for my Census Images collection
  • rack used for my Military Service Ribbon rack collection
  • maps used for my Historical Maps collection

You can used the Mod Manager Edit capability to change the mediatype. You can blank out or erase the any of the mediatypes to eliminate it being part of the check for the alternate image map message when the media record in that collection contains an image map.

Image map message edit mediatypes.jpg

Visualization of this mod

Without Mod

Without this mod, the following message is displayed when the media record contains an image map as shown in the image on the right. This message is appropriate for group photos that contain an image map where the area links to a person in your genealogy database.

It may not be appropriate for image maps related to census, military service ribbons, or historical maps, where the Tooltip Mod allows displaying different information.

Image map default message.jpg


With Mod Installed

With the Image Map Message mod installed, an alternate image map message is displayed as shown for the historical map image on the right.

Image map alternate message.jpg

You can see the different message displayed for the image map on my Uncle Bern's Military Ribbons media record, which displays the messages as "Move your mouse pointer over the image to show additional information".

Related Mods

This mod was designed to work with the

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

TNG Modules Involved

In TNG V8, the following modules are updated:

  • showmedialib.php
  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php

and the following modules is added:

  • extensions/imagemapmsg.php

In TNG V7, the following modules are updated:

  • showmedialib.php
  • English/cust_text.php

and the following modules is added:

  • extensions/imagemapmsg.php

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
Our Roy and Boucher Family Ken Roy Mod Developer 11.0.2.3 11.0.2 EN, FR
R G Strong Family Genealogy Russell Strong Public Site 10.1.0.1 11.0.0 EN, FR, DE, NL
OurLife Family History - McMullen Clan Sean Thompson Not a public site 11.0.2.3 11.1.0 English
Stamboom Jongman Roel Jongman Public/Private site 10.1.0.2 10.1.3 NL, DE, EN