Menubar Optimizer

From TNG_Wiki
Jump to navigation Jump to search
Caution You must install the new v15.0.0.0 version of the mod for TNG 15 which partially integrated the functionality of the previous version. Caution
Menubar Optimizer
Summary This Mod lets you optimize the menubar for your needs.
Validation Unknown
Mod Updated 14 Feb 2025
Download link ‎‎‎‎For
TNG 15.0

v15.0.0.0
‎‎‎For
TNG 14.0

v14.0.0.1c
Download stats
Author(s) Jean-Luc Halleux
Homepage Menubar Optimizer (This page)
Mod Support TNG Community Forums
Contact Developer jlh-tng@internetofficer.io
Latest Mod v15.0.0.0
Min TNG V 14
Max TNG V 15+
Files modified
genlib.php
Related Mods
Notes

Purpose of the mod

This Mod lets you optimize the menubar for your needs.

The Edit Options let you decide where you want to position important icons:

  • Search: can be moved into the Find dropdown menu, clarifying what "Search" and "Find" do.
  • Login/Logout: can become a dropdown menu or be moved to the right side of the screen.
  • Language option: can be moved into the menubar (with or without "language icons").
  • Share: can be moved into the menubar.
  • Print: can be moved into the menubar.
  • Bookmark: can be moved into the menubar.
  • Optional left align of all drop-down menus.
  • Auto Adjust option: automatically adjusts the width of dropdown menu titles.

The Mod is template independent. It has been tested with many templates.

Supported languages: Afrikaans, Arabic, Chinese, Croatian, Czech, Danish, Dutch, English, Farsi, Finnish, French, German, Hungarian, Icelandic, Norwegian, Polish, Portuguese, Serbian, Slovak, Spanish, Swedish and Turkish

The Mod does not change the display on mobile screens.

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.0 15.0 14 Feb 2025 TNG v15 compatible
14.0.0.1c 14.0 06 Aug 2023 Minor change to ensure compatibility with Mobile Site Enhancements mod
14.0.0.1b 14.0 24 May 2023 Correction of an undesired action of the mod on mobile site / Minor change to avoid conflict with the Admin menu link mod
14.0.0.1 14.0 08 May 2023 Quick Search comes on top when clicked / Corrected path of the savelanguage2.php when used in a CMS / Print, Bookmark and Share can be included in the menubar / Administration, Access Log and Edit Profile are removed from the Info drop-down menu if there is a Logout drop-down menu / Translation in 22 languages included
14.0.0.0c 14.0 07 Apr 2023 Correcting the path of savelanguage2.php when called from the histories folder and solving a compatibility issue with Change Language Droplist
14.0.0.0b1 14.0 02 Apr 2023 New option to control alignment and width of menubar titles, support of icons in language menu and correction of errors in mobile display
14.0.0.0a 14.0 23 Mar 2023 Solves compatibility issues with other mods and corrects bugs in mobile display
14.0.0.0 14.0 22 Mar 2023 Created by Jean-Luc Halleux

Conflicts and Issues

Mod Conflict Note the install order requirements.

If using the Mobile Site Enhancements mod:


If using the Show All Family mod:

  • install the Menubar Optimizer mod before installing the Show All Family mod.
  • uninstall the Show All Family mod before uninstalling the Menubar Optimizer mod.
Mod Conflict


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.

Application Note

Country Flags in Language Drop-down List

This section explains how to customize the language drop-down list in the Menubar Optimizer.

Here is how to add a French flag to the French language entry:

  • in the admin menu, go to "Languages" >> "Edit Existing Language" and click the "Edit" icon of the French language
  • in front of "Name for this language as it will be displayed for visitors:", instead of just writing "Français", you write "<img src='/img_flags/Francais.png' /> Français" where /img_flags is the folder where you copied your flags (you can use any folder you want for the flags)
  • click "Save + Exit"

Then you repeat this operation for the different languages and you get the icons in the language dropdown list of Menubar Optimizer.

Keep in mind that language entries are automatically sorted in alphabetical order. Once you add the flags, the order will be the alphabetical order of the flags. It is better to rename the flag using the same name as the language (example: if the language is called "Deutsch", name the flag "Deutsch.png" or "Deutsch.gif" because if you name it "German.png" or "German.gif", it will not come in the same position in alphabetical order).

Lots of Flags

Flag icons are available from many sources.

A great resource is this page created by Katryne Chauvigné-Bourlaud: Des lots de drapeaux.

Alignment of the last drop-down menu

Depending on the template, the rightmost drop-down menu may be positioned against the right side of the screen. In such a case, it is recommended that the "Left align all drop-down menus" option be false.

Automatically adjust the width of drop-down menu titles

Depending on the language or on the use of personalized titles, some menu titles may exceed the built-in standard width. If this is the case, set the "Automatically adjust the width of drop-down menu titles" option to true and all your titles will get the space they need.

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

TNG version: 14.0

Without Menubar Optimizer (template 19)


With Menubar Optimizer (template 19)


Login/Logout Dropdown Menu (template 10)


Find Dropdown Menu with access to Quick Search (template 21)


With the Quick Search window opened (template 21)


Language Dropdown Menu (template 12)


Language Dropdown Menu with flags (template 12)

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
Ô mes aieux! O mijn voorouders! Ó, meus ancestrais! Jean-Luc Halleux Public site 15.0.0.0
TNG 15.0.2
FR,NL,DE,EN,ES,PT
Treichel-Familie.de Andreas Treichel Public & Private 15​.0​.0​.0
TNG 15.0.2
DE,EN,FR,ES,PL
Racine d'Alsace J-Louis Valory Public (registration) 14.0.0.0 14.0.1 FR
Ahnenforschung der Familie Berg Sven M. Berg Public (registration) 14.0.0.0c 14.0 DE,EN,FR,IT,ES,PT,NL,PL,CZ,SK,DA,
SV,FI,NO,IS,HU,RO,HR,SL,SR,EL,TR
Dabbling in Genealogy Jeff Rueger Public 14.0.0.0a 14.0.1 EN,FR
GénéaKat Katryne Chauvigné-Bourlaud Public/Private - Happy user 15.0.0.0
TNG 15.0.1
FR,EN,SP
Racines Luxo-hennuyères Michel Kirsch Local site (Test site) 14.0.0.0a 14.0.1 FR,EN,GE,NL
Blumensaadt & Ingemand - Vores Slægt & Lidt til Søren Ingemand Public/Private 14.0.0.0c 14.0.1 EN,FR,DE,ES,NL,NO,SE
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 14.0.0.1c
TNG 14.0.5
EN, NL, ES
Our Roy and Boucher Family Ken Roy Very nice mod 14.0.0.1c
TNG 14.0.4
EN,FR
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Familjen Johnson Leif Johnson Public site See here See here SE,EN
Echos de mes Aancetres Claire Tassery Site Public 14.0.0.1c 14.0.1 FR
Von den Isert's und den Schmidt's Mabba Local 15.0.0.0
TNG 15.0.1
DE
Auf den Spuren meiner Ahnen Michael Klein Public / Private 15.0.0.0
TNG 15.0.1
DE,NL,EN,ES
Nos Familles Genealogy Eric Lenerville Public/Private 14.0.0.1c 14.0.4 EN,FR
Os Belard Luís Belard da Fonseca Public/Private 15.0.0.0
TNG 15.0
PT