Add family menu link

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Add family menu link 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 All


Add Family Menu Link
Summary Adds a link to the TNG home page
Validation
Mod Updated 3 Feb 2025
Download link for
TNG 15.0

Download stats V13 statistics
v15 stats
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod v15.0.0.3 for TNG v15
v13.0.0.1 for TNG 13 & 14
Min TNG V 13
Max TNG V n.c.
Files modified
admin_genconfig.php
admin_updateconfig.php
config.php
genlib.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
Related Mods
Notes

Purpose of the Mod

Adds a Family Menu Link in the menu bar that points to the TNG home page when sites include more than TNG, such as WordPress sites.
You can customize the legend of the link via your languages/your_language/cust_text.php files.
Via Administration/Setup/General Settings/Site Design and Definition, you can designate your TNG home page (default is index.php) and decide if you show the link or not.

Development

Authors : Ken Roy & Michel Kirsch

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
15.0.0.3 15.0 03 Feb 2025 Fix issue with new menu option
15.0.0.2 15.0 08 Jan 2025 Updated for TNG v15
13.0.0.1 13.0 03 Jul 2021 First online version.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

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

admin_genconfig.php
admin_updateconfig.php
config.php
genlib.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php

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 new link installed.

getperson_with_link

The new settings for the new link.

add_family_link_setup

Languages

In order to translate the terms used in this Mod, please transcribe and translate the following variables in your language/cust_test.php files

$admtext['showtng'] = "Show TNG Link";
$text['tnghomepage'] = "Our Family";
$admtext['tngstartpage'] = "TNG home page";

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 13.0.0.1 14.0.3 FR,EN,NL,GE,ES
Roy and Boucher Ken Roy Updated Michel's original WP Home button mod to use Admin > Setup > General Settings 15.0.0.3
TNG 15.0.1
EN,FR