Menubar Optimizer
Downloads of Menubar Optimizer 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 | ||
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
|
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:
[See details in the TNGv12 Change Impacts Article][Hide the instructions] |
|
Menubar Optimizer | ||
---|---|---|
Summary | This Mod lets you optimize the menubar for your needs. | |
Validation | Unknown | |
Mod Updated | 06 Aug 2023 | |
Download link | 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 | v14.0.0.1c | |
Min TNG V | 14.0 | |
Max TNG V | 14+ | |
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.
- Edit Profile option: can be moved to a dropdown menu.
- Language option: can become a dropdown menu (with or without "language icons").
- Share: can become a dropdown menu.
- 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 |
---|---|---|---|
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 | 8 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 | 7 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 | 2 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
Note the install order requirements. If using the Mobile Site Enhancements mod:
|
Installation
- Uninstall and delete previous version of this mod (if installed)
- Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
- Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
- 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.
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.
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
- Try using the Mod Manager Remove capability
- Copy the backup of the affected files back to your TNG directory
- Contact us through the TNG Community Forums.
Uninstalling the mod
If you want to completely Remove (uninstall) this mod and all its tables, you should
- click the Uninstall button to uninstall the mod
- 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 | 14.0.0.1c | 14.0.2 | FR,NL,PT,EN,ES | ||
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 | 14.0.0.1c | 14.0.3 | FR,EN | ||
Racines Luxo-hennuyères | Michel Kirsch | Local site (Test site) | 14.0.0.0a | 14.0.1 | FR,EN,GE,NL | ||
www.blumensaadt-ingemand.dk | Søren Ingemand | Public/Private | 14.0.0.0c | 14.0.1 | EN,FR,DE,ES,NL,NO,SE | ||
Bastiaans(s)en Genealogie | Jan Bastiaanssen | Public / Private | 14.0.0.1b | 14.0.2 | NL,EN,ES | ||
Our Roy and Boucher Family | Ken Roy | Very nice mod | 14.0.0.1c |
|
EN,FR | ||
MOTYER Family Genealogy | John Mark Motyer | Public site | See here | See here | EN | ||
Familjen Johnson | Leif Johnson | Public site | 14.0.0.1b | 14.0.3 | SV, EN | ||
http://echosdemesancetres.fr/tng/index.php | Claire Tassery | Site Public | 14.0.0.1c | 14.0.1 | FR | ||
Auf den Spuren meiner Ahnen | Michael Klein | Public / Private | 14.0.0.1c |
|
DE,NL,EN,ES |