External Media

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of External Media 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, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox 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


External Media
Summary This Mod displays external images, videos and texts exactly as those hosted on your own TNG server.
Validation Unknown
Mod Updated 17 Aug 2023
Download link v14.0.0.0d
TNG 14.0

Download stats
Author(s) Jean-Luc Halleux
Homepage External Media (This page)
Mod Support TNG Community Forums
Contact Developer jlh-tng@internetofficer.io
Latest Mod v14.0.0.0d
Min TNG V 14.0.0
Max TNG V 14+
Files modified
genlib.php
showmedialib.php
ajx_smallimage.php
globallib.php
personlib.php
admin_newmedia.php
admin_editmedia.php
admin_addmedia.php
imageutils.php
js/mediautils.js
Related Mods
Notes

Purpose of the mod

This Mod displays external media in the same way as media hosted on your TNG server.

  • Supports external images, photos, videos and recordings.
  • Supported documents include .txt, .doc, .docx and .pdf files.
  • Enlarged pop-up image on thumbnail hover.
  • Thumbnails of external images can be created automatically.

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.

Revision History

Mod Version TNG Version Date Contents
14.0.0.0d 14.0 17 Aug 2023 can coexist with PDFjs (external media are not supported by PDFjs)
14.0.0.0c 14.0 12 Jun 2023 added features: support of pdf files, automatic creation of thumbnail of external images, enlarged pop-up image on thumbnail hover
14.0.0.0 14.0 24 May 2023 Created by Jean-Luc Halleux

Warnings

Do not use this mod to view photos and other media hosted on third-party servers when you're not sure if those files will still be there in the future or accept the risk of viewing unwanted content.

Some .pdf files are not compatible with this mod (seems to be related to the use of http on one side and https on the other).

Automatic generation of multiple thumbnails of external images in admin is not supported.


Installation Order Requirements

Mod Conflict Note the install order requirements.

If using the PDFjs Viewer Mod:

Mod Conflict


Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and any tables if created, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Visualization

TNG version: 14.0

Display of a local image
When showing a local image, the user remains on your TNG site.


Display of an external image without the External Media mod
When showing an external image, the user navigates to the third-party website by leaving your TNG site.


Display of an external image with the External Media mod
When showing the external image, the user stays in your TNG site, just like a local image.

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
Developer Test Site Jean-Luc Halleux Private test site 14.0.0.0c 14.0.2 FR,NL,PT,EN,ES
American Kindred americankindred Public 14.0.0.0c 14.0.2 ENG
GénéaKat Katryne Présidente du Fan Club de Jean-Luc Public & Private site 14.0.0.0f 14.0.4 FR,EN,SP
Brabantse Genealogie Rob van Rij Public Site 14.0.0.0d
TNG 15.0
NL,EN,DE,FR
Genealogie van Rij (Riede, Reij, Rije) Rob van Rij Public Site 14.0.0.0d
TNG 15.0
NL,EN,DE,FR

<title>503 Service Unavailable</title>

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.