Menu manager

From TNG_Wiki
Jump to navigation Jump to search
Obsolete There is no version compatible with TNG15. Most Mod functionalities have been integrated into TNG15. The mod is obsolete with TNG 15 Obsolete


Restricted Downloads of Menu manager 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


Menu manager
Summary Allows you to Hide/Show every sub-menu of your TNG site
Validation
Mod Updated 21 Mar 2023
Download link For
TNG 14.0
TNG 13.0

v13.0.4.2a
Download stats Show statistics
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 13.0.4.2a for TNG v13 & 14
Min TNG V 13+
Max TNG V 14.0.6
Files modified
admin_setup.php
famsearchform.php
genlib.php
languages/German-UTF8/cust_text.php
languages/German/cust_text.php
languages/Dutch-UTF8/cust_text.php
languages/Dutch/cust_text.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
searchform.php
templates/template1/index.php
templates/template10/index.php
templates/template11/index.php
templates/template13/index.php
templates/template14/index.php
templates/template16/index.php
templates/template17/index.php
templates/template18/index.php
templates/template19/footer.php
templates/template19/mobile_footer.php
templates/template2/index.php
templates/template2/topmenu.php
templates/template20/topmenu.php
templates/template207/footer.php
templates/template207/mobile_footer.php
templates/template3/index.php
templates/template3/topmenu.php
templates/template4/index.php
templates/template4/topmenu.php
templates/template5/index.php
templates/template7/index.php
templates/template7/topmenu.php
templates/template8/index.php
templates/template9/index.php
Related Mods
Notes

NOTE for TNG 15 users

There is no version compatible with TNG15. Most Mod functionalities have been integrated into TNG15.

Purpose of the mod

This TNG modification offers you to manage all TNG menus at your convenience.

Developer

This mod was developed by Michel Kirsch from Charleroi - Hainaut - Belgium.

Introduction

From an easy-to-handle parameter sheet in Administration >> Setup, choose to show or hide the sub-menus you want, regardless of the template or media types you use.

For each type of user, decide whether or not they will see the menus you want to hide from other users.

IMPORTANT: 
By default, NO menu is hidden for the Administrator.
If you don't want to see some menus anymore, don't forget to change the option "Hide by User Type" >> "Administrator" : from "Show" to "Hide".
IMPORTANT: 
if you change your Collections of media (add a new Collection or delete an unused Collection), follow these steps:
1. Uninstall the Mod.
2. MANUALLY delete or rename the file "menu_manager_vars.php" from your subdirectory "extensions".
3. Reinstall the Mod.
Note that in this case, your old choices will be reset to their default values.

Incidentally, this means that if you want a collection of "secret things" that can only be accessed by you, this Mod can help!

*This Mod replace the Hide_Google_Search_Buttons which is not compatible with this one.
*Users of the Broad Search mod mod should carefully read the "Known Problems" section.
*Users of the Public Access Control mod should carefully read the "Known Problems" section.

Tests

Rob Severijns, Ron, Rob Roy, Jean-Louis and many others.
Thanks for all their tests, ideas and comments to achieve this version !
Thanks to DeepL for some translations...

Requirements

* A working TNG installation. * A backup of all affected files (see the list in the summary to the right) * An installed current version of the Mod Manager. * Both English and English-UTF8 folders be on your site

Revision History

Mod Version TNG Version Date Contents
13.0.4.2a 13.04 21 May 2023 Fix label for ContactUs (Was Administration) - Fix error with template 19 - Handles the template 21.
13.0.4.2 13.04 28 Dec 2022 TNG14 Ready.
13.0.4.1g 13.04 09 Feb 2022 Fix 2 fugitive warnings with PHP8+.
13.0.4.1f 13.04 22 Sep 2021 Change operations to increase opening/saving processes speed. Window will always close when requested.
13.0.4.1e 13.04 26 Aug 2021 When Admin is not allowed to see hidden menu, the icons of the media menu in the menu_manager_admin page were not displayed correctly.
13.0.4.1d 13.04 24 Aug 2021 "Search" buttons were not hidden in search.php and familysearch.php...
13.0.4.1c 13.04 16 Aug 2021 Ensures compatibility with the Broad Search mod. Read the Known Problems section !
13.0.4.1b 13.04 10 Aug 2021 Ensures compatibility with the No Headstone Photo Report Mod.
13.0.4.1a 13.04 version number omitted.
13.0.4.1 13.04 08 Aug 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_setup.php famsearchform.php genlib.php searchform.php
If you use them : languages/English-UTF8/cust_text.php languages/English/cust_text.php languages/French-UTF8/cust_text.php languages/French/cust_text.php languages/Dutch-UTF8/cust_text.php languages/Dutch/cust_text.php languages/German-UTF8/cust_text.php languages/German/cust_text.php
If you use them : templates/template1/index.php templates/template2/index.php templates/template2/topmenu.php templates/template3/index.php templates/template3/topmenu.php templates/template4/index.php templates/template4/topmenu.php templates/template5/index.php templates/template7/index.php templates/template7/topmenu.php templates/template8/index.php templates/template9/index.php templates/template10/index.php templates/template11/index.php templates/template13/index.php templates/template14/index.php templates/template16/index.php templates/template17/index.php templates/template18/index.php templates/template19/footer.php templates/template19/mobile_footer.php templates/template20/topmenu.php templates/template207/footer.php templates/template207/mobile_footer.php

Files copied by this Mod

Source Destination
mods_folder/menu_manager_xx/menu_manager_admin.php TNG root/menu_manager_admin.php
mods_folder/menu_manager_xx/menu_manager_help.php TNG root/languages/English/menu_manager_help.php
mods_folder/menu_manager_xx/shmenu_icon.gif TNG root/img/shmenu_icon.gif
mods_folder/menu_manager_xx/menu_manager_vars.php TNG root/$extspath/menu_manager_vars.php

Files created by this Mod

TNG Root/menu_manager.php

INSTALLATION

*Unzip the received file directly in the "mods" sub directory of your TNG installation.
*Via Mod Manager, install the Mod.

Upgrade

When upgrading to a newer version *Uninstall and eventually Delete the current Mod. *Proceed as for an installation with the new Mod. *Your prior choices are preserved. ONLY IF NEEDED :
for some upgrade I can ask you to manually delete or rename the file menu_manager_vars.php contained in your subdirectory "extensions".

Conflicts and Issues

When using the Broad Search mod Mod, use at least the version 1c of the Menu manager Mod and follow these steps : 1. install the Broad search Mod 2. install the Menu manager Mod - When uninstalling one of these Mods (or both), proceed in the reverse order : 1. Uninstall the Menu manager Mod 2. Uninstall the Broad search Mod 3. Reinstall the Mod you want to keep. When using the Public Access Control Mod, follow these steps : 1. install the Menu manager Mod 2. install the Public Access Control Mod When uninstalling one of these Mods (or both), proceed in the reverse order : 1. Uninstall the Public Access Control Mod 2. Uninstall the Menu Manager Mod 3. Reinstall the Mod you want to keep.

In the event of a problem

*Try using the Mod Manager Remove capability *Copy the backup of the affected files back to your TNG directory * If the problem persists, open an issue in the TNG Community Forums

Visualization

Access the parameters sheet via the Administration >> Mod Manager >> menu_manager Mod >> Menu Manager Parameters button. Using the new mk parameters links Mod allows you to access the sheet from your Administration >> Setup page MM_access2
The different sections of the parameters sheet. MM_sections
The users options section.

IMPORTANT !

Each type of user can have permission or not to see the hidden menu.
If you, as Admin, don't want to see the hidden menu, you have to set the "Administrator" parameter on "Hide" MM_sec_users
The media menu section.
The menu for the user's collection "Death Certificates" is now hidden.
In the right column, the representation of the menu disappear, indicating that this menu is no longer displayed. MM_sec_media
An example : http://Delvee.org.
Thanks to Rob Roy, you can access his site where some menu are hidden for users.
(menus Recordings, Videos, Albums, All Media, Trees, Notes, Sources, Repositories and DNA Tests)
 MM_delveedotorg

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 Developper 13.0.4.2a 14.0.3 FR,EN,NL,DE,ES
Familjen Johnson Leif Johnson Public site See here See here SE ,EN
Delvee Family Association Rob Roy Public 13.0.4.2a
TNG 14.0.6
EN
Roy Family Genealogy Rob Roy Public 13.0.4.2a
TNG 14.0.6
EN
Our Family History Marc Irish Public Site 13.0.4.1b 13.0.4 EN
Helwegs Ahnen Andreas Helweg Public site 13.0.4.1f 13.1 DE,EN,DA,NL
Sejarah Thümann Jeffrey Thümann Public 13.0.4.1f 13.0.3 NL,EN
La Saga BIGEY Francois B Public 13.0.4.1g 13.1.1 FR
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
chagnontrees.com Barb Beauregard Public site 13.0.4.1g 13.1.2 EN
Genealogie van der Horde Wim van der Horde Private 13.0.4.1g 13.1.2 NL
Van Peer Project Drew McClenaghan Private Site 13​.0​.4​.2 14.0 EN
Lee Families Drew McClenaghan Private Site 13​.0​.4​.2 14.0.3 EN
TNG SandBox Drew McClenaghan TNG Sand Box 13​.0​.4​.2 14.0.3 EN
Slægtsforskning / Genealogical Research Bent S Private 13.0.4.2 14.0 DA,GE,EN,NL,SV
The Annals of a Humble Race Gerald Apperly Public/Private 13.0.4.2 14.0.1 EN
Discovering My Ancestors Sheryl Perry Public 13.0.4.2 14.0 EN
Nos Familles Genealogy Eric Lenerville Public/Private 13.0.4.2a 14.0.4 EN, FR
GénéaKat Katryne Public & Private 13​.0​.4​.2a 14.0.4 FR,EN,SP
ClanLore.com - Our Family History Randy Cummings Public & Private 13​.0​.4​.2a 14.0.6 EN