Media Image Map Message

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Media Image Map Message 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 browser, try using try right-click and select Open in new Window, then F5, or use another browser Caution

Media Image Map Message
Summary Changes the message for image maps that are not for photos
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 8 Oct 2020
Download link
TNG 13.0
TNG 12.0
TNG 11.0.2
supports renaming extensions folder
[Show older versions]

Download stats View download statistics
for Media Image Map Message
for Media mods group
Author(s) Ken Roy
Homepage Media Image Map Message (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod for TNG 13+ for TNG V11.0.2 and above for TNG V10.1 and above 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 13+
Files modified
Related Mods

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.


Ken Roy developed this mod.


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.


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 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
V13.0.0.4 8 October 2020 Updated
  • for TNG v13
  • renamed from Image Map Message Mod or Media-5 Image Map Message Mod
  • simplified the mod change
  • eliminated the need to Edit Options to specify the mediatypeID for the alternate message which is now used for any media with image maps, which if you converted the image maps for the Photos collection using the Media Tooltip would now apply to all media collections other than photos
V11.0.2.3 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 13.0.0 EN, FR
R G Strong Family Genealogy Russell Strong Public Site 12.2.0 EN, FR, DE, NL
OurLife Family History - McMullen Clan Sean Thompson Not a public site 11.1.0 English
Stamboom Jongman Roel Jongman Public/Private site 10.1.3 NL, DE, EN