Difference between revisions of "Cust Menu Extension"
Line 29: | Line 29: | ||
<br clear=left> | <br clear=left> | ||
== Description == | == Description == | ||
− | Mod adds additional flag -- ' | + | 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 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. |
Revision as of 09:24, 10 August 2018
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 | ||
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
|
Cust Menu Extension | ||
---|---|---|
Summary | Adds option to restrict menu items to logged-in users. | |
Validation | ||
Mod Updated | 9 Aug 2018 | |
Download link | version 10.1.1.0.zip
| |
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
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
- Download the mod zip-file from the top of the page
- Unzip the file and place the *.cfg file in your /mods folder.
- Click on Mod Manager in the Admin panel, find and click on the mod's line item and install it.
- There are no options to set