Difference between revisions of "Cust Menu Extension"

From TNG_Wiki
Jump to navigation Jump to search
(added obsolete template to show the mod is obsolete in TNG 12.0.2 and later)
(moved Obsolete template to top of page)
 
Line 1: Line 1:
{{restricted}}
 
 
{{obsolete
 
{{obsolete
 
|notes= Mod is obsolete after TNG 12.0.1 since the code changes were included in TNG 12.0.2
 
|notes= Mod is obsolete after TNG 12.0.1 since the code changes were included in TNG 12.0.2
}}
+
}}{{restricted}}
 
{{TNGmod
 
{{TNGmod
 
| mod_name = Cust Menu Extension
 
| mod_name = Cust Menu Extension

Latest revision as of 06:58, 8 October 2023

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


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 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


Cust Menu Extension
Summary Adds option to restrict menu items to logged-in users.
Validation
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 10.1.1.0
Min TNG V 10.1.1
Max TNG V 12.0.1
Files modified
Related Mods
Notes



Description

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;

Compatibility

Mod Tested With Following TNG Versions
Ver 1011 - 1201
10.1.1.0

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

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

Installation

  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