Placesearch Entire Note

From TNG_Wiki
Jump to navigation Jump to search

This mod is no longer useful with TNGv13, because the TNGv13 Place Details Report (placesearch.php) always displays the entire Place note

Placesearch Entire Note
Summary Modifies placesearch.php to display the entire place note, instead of abbreviating it.
Validation
Mod Updated 3 July 2018
Download link v11.0.0.1
TNG 12.0
TNG 11.1.0
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod v11.0.0.1
Min TNG V 11.0
Max TNG V 12.3
Files modified
placesearch.php
Related Mods
Notes


Purpose of the Mod

To cause placesearch.php to display the entire Place note. The thinking is that, since placesearch.php is essentially the "Place Details" program, if there is any program that should display the entire Place note, placesearch.php is that program.

How it works

Very simply - placesearch.php utilizes the TNG system function truncateIt() to display the Place note. TruncateIt, as the name suggests, truncates a text value to the length specified in a TNG system parameter. TruncateIt also removes any HTML code from the text. This mod simply replaces the call to truncateIt() within placesearch.php with a call to the TNG system function insertLinks(), which

  1. Does not truncate the note,
  2. Leaves existing HTML code within the note alone, and
  3. Recognizes web addresses that begin with "http", and converts them into hyperlinks.

Mod Compatibility

The change implemented by this mod is also implemented as part of the much larger mod Placesearch-More Info, so that mod, appropriately, conflicts with this one. There are no other known incompatibilities, but please let me know if you encounter any.

Other Related Mods

  1. Once this mod is intstalled, changes made to TNG system function insertLinks() by other mods also affect placesearch.php. Specifically,
    • Notes-Expand WWW Refs causes insertLinks() to convert web addresses that start with www into hyperlinks.
    • FindAGrave Links causes insertLinks() to convert abbreviated FindAGrave cemetery and grave references (in the forms CRid=nnnn or GrID=nnnn) into hyperlinks.
  2. This mod saves data that can be used by the Show Mod Names utility mod, but Show Mod Names 'does not need to be installed for this mod to work.


[Show Installation Details]

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup files listed in the panel on the right.

Procedure

  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.

Problems?

  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.
[Hide Details]

Visualizations

placesearch.php (The Place details page) BEFORE INSTALLAION

Placesearch entire note-before.jpg
Note that the note is truncated and that there are no hyperlinks, even though there are hyperlinks embedded in the note. (The link to OpenStreetMap is not part of the note.)

placesearch.php AFTER INSTALLATION

Placesearch entire note-after.jpg
Now, the entire note is shown, and the hyperlinks embedded in the note are now displayed.

Revision History

Mod Version TNG Version Date Note
12.0.0.1 12.0+ 3 July 2018 No functional changes; made compatible with TNGv12.
11.0.0.1 11.0.0 - 11.1.0.2 18 Dec 2017 New mod.

Sites using this mod

If you download and install this mod, please add your site to the table below.

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer (not installed because I use the more comprehensive Placesearch-More Info mod) 12.0.0.1 12.0.1 English