Mobile short note link

From TNG_Wiki
Jump to navigation Jump to search
Mobile short note link
Summary For smartphones: This Mod shortens URLs longer than a value defined by a parameter.
It's useful for URLs that don't fit on a smartphone screen.
Validation
Mod Updated 8 Jan 2023
Download link For
TNG 15.0
TNG 14.0.1
mobile-short-note-link-v14.0.1.0.cfg.zip
Download stats
Author(s) Carlos Heuser
Homepage Mobile short note link (This page)
Mod Support Carlos Heuser
Contact Developer Carlos Heuser
Latest Mod 14.0.1.0 to v15.0.0
Min TNG V 14.0.1
Max TNG V 15.0.0
Files modified
genlib.php
personlib.php
Related Mods
Notes

Purpose of this mod

TNG transforms URLs that appear in notes into links. The text that appears in the link is the URL itself. When using a device with a small screen like a smartphone larger URLs may not fit in the screen.

Developer

This mod was developed by Carlos Heuser.

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.0 14.0.1 29 Dec 2022 Updated for TNG v14.0.0

Conflicts

No known conflicts.

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

The image below shows an example of an URL as displayed by plain TNG on a smartphone.

In this example, the URL is not displayed completely and overflows to another line.


Url plain tng.png

By using this Mod, TNG will limit the length of URLs on smartphones to a maximum defined by a mod parameter. The page shown in the picture above will be displayed as follows: Url shortened by mod.png

The Mod affects only the display on smartphones. All other devices (tablets, desktops, ...) use the standard TNG way of displaying URLs.

Parameter

The max URL length on smartphones is controlled by a mod parameter. The default value is 20.

The value of the parameter may be changed by using Options in ModManager.

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
South Brazilian Family Trees Carlos Heuser Developers site 14.0.1.0 14.0.1 EN, DE, BR, PB