Add Link Section

From TNG_Wiki
Jump to: navigation, search

In TNGv12 and beyond, this mod uses the new 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]


Add Link Section
Summary Adds summary section with all links on the individual page.
Validation
Mod Updated 4 Aug 2019
Download link for
TNG 12.0

Add Link Section version 2


Download stats
Author(s) A. S. DuPree
Homepage Add_Link_Section (this page)
Mod Support TNG Community Forums
Contact Developer [1]
Latest Mod 12.0.0.2
Min TNG V 12
Max TNG V 12
Files modified
getperson.php cust_text.php (in English folders)
Related Mods
Notes
WILL likely conflict with mods that make significant changes to the format of the individual page.


Introduction

Version 2 adds up to 2 Wikipedia links to the person's inner menu.

Addlinksection1.png

When clicked these links open in a popup menu.

Addlinksection2.png

This mod harvests all links from notes and sources on the individual page. It creates a "Relevant links" section on this page just above the SOURCES section, in which it places a summarized list of all links on the page. The purpose is to give easy access to all page links that are otherwise spread out across sections. It is probably most useful to folks like me who liberally add links in both sources and notes. For sources it adds a link to the actual source in the list of page links. It does not do the same for notes but displays them in a flat list.

Linkharvest.png

Languages

To use in a language other than English you need to put this text in the cust_text.php folder corresponding to your language.

$text['sourcelinks'] = "Source Links";
$text['notelinks'] = "Note Links";

Edit and change the text in quotes.

(For English users, this text is included in the cust_text.php file. To alter it just copy (don't edit or change where they are) to a lower position in the file and change the words as you wish.

Developer

This mod was developed by A.S. DuPree (a novice, happy for any help on improving it)

Requirements

  • A working TNG installation. This has only been tested on TNG V 12.0.3
  • Only useful if you have links in your notes.
  • An installed current version of the Mod Manager.

Requirements

  • A working TNG installation. This has only been tested on TNG V 12.0.3
  • Only useful if you have links in your notes.
  • 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.
  • Both English and English-UTF8 folders be on your site

Revision History

Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page.
  2. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file 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.

Conflicts and Issues

Works with a lot of mods but is likely to conflict with mods that change the page structure significantly.

In the event of a problem with your TNG site

  1. Try using the Mod Manager to Remove the mod

Sites using this mod

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

adupree A.S. DuPree Mod Developer 12.0.0.2 12.1 English
Racine d'Alsace J-Louis Valory Public- private - T17 customized 12.0.0.1 12.1 FR