Media - Census Plus International

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Media - Census Plus International 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

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

Ambox notice.png The Media - Census Plus International is a companion mod to the Census Plus International mod. It was designed to process media attached to person events and will not work if you attach the census media to sources.
TNG 9.0

Media - Census Plus International
Summary Displays the Census Feature transcript in showmedia.php for the census images that use TNG User media collections
Mod Updated 20 Feb 2023
Download link for
TNG 14.0.1
TNG 14.0
PHP 8.1 compatible for
TNG 13.0

PHP 8 compatible for
TNG 13.0

TNG 12.1.0
TNG 12.0
[Show older versions]

currently installed mod versions work with the new media_cpinclude.php provided in Census Plus International
TNG 11.0.2
supports renaming extensions folder
TNG 11.0
TNG 10.1.2
TNG 10.1.0
TNG 10.1.0

[Hide old versions]

Download stats View download statistics
Author(s) Ken Roy
Homepage Media - Census Plus International
Mod Support TNG Forums
Contact Developer
Latest Mod for TNG 14.0.1+ for TNG 14+ for TNG 13+ for TNG v12.1+ for TNG v12 - 12.0.3
Min TNG V 9.1.0
Max TNG V 13+
Files modified
Related Mods

Purpose of the mod

This mod displays the transcripts created by the Census Plus International mod below the census images that are part of TNG user media collections, rather than images saved in the census folder as dbid= file names or using your own file and folder names.

This mod only applies if you are using a TNG media collection for you census images.

It requires that you update the Image URL to point to a showmedia.php link for the census image. See Census Plus International - Image


This mod was developed by Ken Roy based on promptings by Janice Nation

V9104 enhancement to display multiple households was developed based on promptings from Bryan S. Larson and Rick Hooley


  • 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)
  • This mod further requires that you
    • install the Census Plus International
    • use a TNG Media Collection to display your census images
    • update the Image URL for the Census Transcript to point to a showmedia.php link for the Census Image
    • Link the Census Image to the Individual census event for which you created links
    • If you want to view more than one household in the transcript below the image, you also need to use the Mod Manager Edit on the Census Plus International mod and changed the default for Return all linked PersonIDs for Media transcript display regardless of household to y


  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page.
  2. Extract the files and folder from the downloaded zip file into the mods folder or FTP the extracted files and folder 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.
  4. Note - if you're using the tng.php WordPress-TNG Plugin, you might need to "Update the TNG Variables" in the WordPress Admin pane for the TNG Plugin to get this to work correctly.

Revision History

Version Date Contents 20 Feb 2023 Updated to match Census Plus International v14.0.1.13 for TNG 13+ for TNG v14 22 Dec 2022 Updated to match Census Plus International v14.0.0.13 for TNG 13+ for TNG v14 26 Sep 2022 Updated to match Census Plus International v13.0.0.13 for TNG 13+ 16 Apr 2022 Updated for TNG 13.1.2 9 Jan 2022 Updated to keep mod number in sync with Census Plus International v13.0.0.12a 2 Dec 2021 Updated to:
  • eliminate PHP 8 warnings.
  • requires Census Plus International v13.0.0.12
20 Jul 2019 Updated to:
  • fix censusYear ambiguous error if Return All Linked is set to default(n).
  • re-instate code from v12.0.0.9 on how Return All and Return all linked for Media options are processed
  • fix 1890 US Veteran display works with Return all linked in showmedia.php transcript display

Requires Census Plus International v12.0.0.10a of mod
11 Jul 2019 Updated CP Veteran table to use milrank to support MySQL 8. Requires Census Plus International v12.0.0.10 of mod 24 Feb 2019 Updated for TNG 12.1 23 Oct 2018 Updated to match Census Plua International v12.0.0.8 and to user TNG v12+ cust_text.php guidelines 1 May 2018 Updated for TNG v12
31 March 2017 Fixed the following
  • Removed the household from the transcript display for the media Census Plus transcript display to display all households in that census image
  • Synched mod versions with Census Plus International 21 August 2016 Updated to use $extspath for the extensions folder include 21 May 2016 Updated for TNG V10.1.2 and above to match the code used in Census Plus International v10.1.0.4 and v11.0.0.4 7 July 2015 Updated for TNG V10.1.2 12 January 2015 Updated for TNG V10.1 new Mod Manager Syntax and to resolve the conflict with the ShowTable Mod 27 February 2014 Updated for tablet and mobile mode display in TNG V10 8 February 2014 Updated for TNG V10 30 Dec 2013 The following fixes and changes were made in this update:
  • added the Enumerated date to the Census Plus transcript reference display and added label tag formatting
  • updated to use Other Basic for the 1851 Census of Canada 14 Dec 2013 The following fixes and changes were made in this update:
  • fixed the display of Enumeration District and page number for census other than UK and US in the CP transcript include on the person page 9 Dec 2013 The following fixes and changes were made in this update:

Visualization of this mod

See Our Roy and Boucher Family

With v9104 of the mod, you can now get mulitple households displayed in the Census Plus transcript displayed below the image, by enabling the Mod Manager Edit parameter in the Census Plus International mod for Return all linked PersonIDs for Media transcript display regardless of household. This will then display all linked members to this image.

Multiple Household members

Known Issues

After an import the Media link to the Person Census Event might get broken. The broken event link results in the Census Transcript not showing below the image display in showmedia.php.

If the census transcript is not displayed, Edit the media and make sure the media is linked to the census event for the person. If the link only shows the link to the person and the event column is blank, then update the link and select the correct event to add to the link.

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 Worked with Janice Nation to develop this mod. Updated to support renaming the extensions folder 13.1.2/14.0.1 beta EN, FR
Our Family Histories Bryan S. Larson The included link shows a census image with 3 different families whose children later married. See Here See Here EN
Farnham & Paradise Ohana Barbara Paradise login: tngguest, pwd: tngguest 9.2.2 EN

TNG Modules Impacted

The following TNG Modules are modified, and should be backed up prior to installing this mod:

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

The following module is added by this mod:

  • extensions/media_census.php
    which can be changed using the Mod Manaer Edit capability to specify the Media Collection IDs for this mod

Related Links

Census Plus International mod


Census Plus International - Options

Census Plus International - Find

Census Plus International - Add

Census Plus International - Edit

Census Plus International - Delete

Census Plus International - Import

Census Plus International - Update

Census Plus International - Link IDs

Census Plus International - Image

Census Plus International - Restore

Census Plus International - Styles

Census Plus International - SQL Reports

Census Plus International - Census Events

Census Plus considerations when using TNG only

Census Plus considerations when importing GEDCOM

Census Plus International and Family Census

Census Plus International - Source Citation

Media - Census Plus International mod