Cust Menu Extension

From TNG_Wiki
Jump to: navigation, search
Restricted Downloads of Cust Menu Extension 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 are having trouble downloading with the Google Chrome browser, try another browser Caution

Obsolete Mod is obsolete after TNG 12.0.1 since the code changes were included in TNG 12.0.2

Cust Menu Extension
Summary Adds option to restrict menu items to logged-in users.
Mod Updated 9 Aug 2018
Download link
Download stats view statistics
Author(s) Rick Bisbee
Homepage Bisbee Family Connection
Mod Support Support for Cust_Menu_Extension
Contact Developer As above
Latest Mod
Min TNG V 10.1.1
Max TNG V 12.0.1
Files modified
Related Mods


Mod adds additional flag -- 'user' -- to the customconfig.php menu item definitions, which will restrict a TNG drop down menu item to logged-in users. Casual visitors to the site will not see the item in the menu.

The flag must be added to the menu item definition in the site's customconfig.php file. See Custom_Menu_Hook for complete details on how to define drop down menu items.

The syntax is as follows:

$LINKTYPE['link_nr]['user'] = true;

Where $LINKTYPE is one of the following, depending on which menu should contain the item:

$custommenulinks  /*custom menu defined by webmaster*/
$findmenulinks    /*Find menu*/
$mediamenulinks   /*Media menu*/
$infomenulinks    /*Info menu*/

Example Customconfig.php File Definition

After installing this mod, the following definition in customconfig.php will insert an item into the TNG Info drop down menu -- in this case, "Submit Family" -- which when clicked will open an empty Family Group Worksheet for the registered user to submit family information. It will only be visible to logged-in users.

$link_nr = 0;
$infomenulinks[$link_nr]['target'] = "fgw/index.php";
$infomenulinks[$link_nr]['sprite'] = "";
$infomenulinks[$link_nr]['icon'] = "fgw/img/families.gif";
$infomenulinks[$link_nr]['label_text'] = "Submit Family";
$infomenulinks[$link_nr]['user'] = true;


Mod Tested With Following TNG Versions
Ver 1011 - 1201

*green: compatible   red: not compatible   white: not tested

See Multisite Testbed for information on how this mod is tested and managed.


  1. Download the mod zip-file from the top of the page
  2. Unzip the file and place the *.cfg file in your /mods folder.
  3. Click on Mod Manager in the Admin panel, find and click on the mod's line item and install it.
  4. There are no options to set