Help: Mod Manager

Overview

If you are new to TNG, the Mod Manager is a tool for administrators to install, manage and remove modifications to the TNG software package, either by downloading and installing "Mods" created by others from the TNGWiki, or by creating (and perhaps sharing) them yourself.

A Mod is a text file using extension .cfg written with a code editor. It contains "directives" telling Mod Manager (MM) how to modify code in targeted files to install it. It can also copy files from an accompanying support folder, or even create new files. -- see the TNGWiki Mod Manager for details.

Top

Mod List

When selected from the TNG Admin page, Mod Manager (MM) displays a listing of all mods in the site's "mods" directory. You can rename this directory in the Admin Setup >> General Settings >> Paths and Folders if you like.

If you have not yet loaded any mods into your site's "mods" directory, the MM listing will be empty. You can download hundreds of mods from the TNGWiki. They come in the form of zip files which you will have to unzip and upload to your site's "mods" folder using an FTP program such as FileZilla or WinSCP that you can get free from the Internet

Before mods are displayed, Mod Manager checks each one to see if it is already Installed or Okay to Install, and looks for errors that would prevent it from being either Installed or Removed. The result is displayed in the mod listing Status column. Details can be seen by clicking on the arrow icon or status text and then on the Detail button.

All listed Mods have a color-coded installation status:

  • Okay to Install (white) -- Modlister has confirmed that all directives in the Mod configuration file can be installed without error.
  • Installed (green) -- all components called for in the Mod configuration file are installed.
  • Partially Installed (orange) -- some of the Mod components are installed and some are not. This can happen if you refresh a TNG file that was part of a Mod installation.
  • Cannot Install (red) -- some of the Mod Configuration file cannot be installed, for example, because the target file is missing.

Filter Bar

At the top of the mod listing is a filter bar to limit the display to mods with a selected status, or to All mods or just those you Select. Selecting any filter except All will present a list with a check box for each displayed mod. Checking one or more boxes allows further processing of the selected mod(s).

For example, if you filter for mods that are Okay to Install and then hit Go, your listing will contain only those mods that are ready to be installed. Using the new check boxes on the filtered list, you can select one, a few or all of them, then hit the Install button and they will batch install. Note the Select All and Clear All buttons to help with the check boxes.

Caution:You should only do batch operations if you have a good backup of your website and can quickly restore it if the batch operations renders your site inoperable, which can easily happen if you do not delete previous versions of the mods.

Note: We recommend that you batch Uninstall all your Installed mods and then batch Clean Up any remaining Partially Installed mods before doing a TNG upgrade.

The Select filter displays all mods and adds checkboxes. Select one or more of them and hit the Select button. Mod Manager only shows the selected mods. This can be useful for isolating and testing a single mod without displaying or processing the others.

If you check the Lock box for any filtered listing, it will remain filtered, even after doing page refreshes. The listing will stay locked until you uncheck it or apply a different filter.

Mod listing Columns

The first three columns are self-explanatory. Depending on the Mod Manager Display settings in the Options tab, you can click on the Mod Name and its Parse Table will be displayed in a new tab. Clicking on the Config File Name will show the contents of the mod's configuration file in a new tab.

If the Wiki column contains the wiki icon (W), you can click on it to go to the TNGWiki article that contains a description and other information about the mod, as well as a mod download link.

The fifth column is the Status column. It shows the color-coded installation status of the mod as explained above. Clicking on the status text opens a panel with a description and appropriate controls to manage the mod. If there is a Detail button you can see an itemized list of all actions taken or to be taken to manage the mod. Any errors will be displayed.

For advanced users, error messages are often accompanied by an E-number. This refers to the line number in the MM file where the error occurred. E-numbers in the Mod List are all generated by the classes/modlister.class.php file. Near that line number will often appear commentary explaining the nature of the error and suggesting possible fixes.

If there are no errors, you simply press the appropiate control to Install or Uninstall (remove) a mod.

Some mods end up partly installed. When you see this status, hit the Clean Up button and MM will remove any installed components. You are usually left with a clean Mod that can be fully installed again.

If the mod still remains Partially installed after several attemps to clean it up, you should notifiy the mod developer. To notify the developer click on the Wiki icon (W) to go to the TNGWiki page, then click on the Mod Support link. If there is no support link, click here for additional help.

The final column, Files, contains an icon for more information. Hover it and a popup window will tell you all the files that are modified or will be modified by this mod.

Finding Additional Help

If you need more help, either with Mod Manager or with a particular Mod, you can do one of the following:

  • For help with Mod Manager bugs or issues
    • contact Rick Bisbee Here
    • contact Ken Roy: Here
  • For Help with a mod
    • Contact the mod developer from the TNGWiki page associated with the mod
    • Go to the TNG Forum and search for the name of the mod. If you find nothing useful, you can create an account and leave a query for help from other users.
    • Use the Email Discussion List and ask your question. Click here to get started.

Top

Mod Editor

The Mod (Parameter) Editor is accessed from the mod listings page. If an installed mod has editable parameters, you will see it noted in the Mod Listing Status column as -- Installed [Options]. To edit parameters for the mod, open the Status panel and click on the "Edit Options" button. The editable parameters are the mod's user options, for example, to set the color for something.

The target file's behavior can be controlled by the value of the parameters. For example, a Mod user may be asked to enter the number of days he wishes to keep certain log files.

There is no limit to the number of parameters a Mod can use. Each paramter has a default value shown in the Mod Editor description panel on the left. The panel on the right contains a area for changing the parameter value. There are also two buttons, one to Update the target file with the value in the input box, the other to reset the parameter with the default value.

Whether entering strings or integers, it is not necessary to surround them with quotes. The Mod Editor will figure that out when updating values.

Top

View Log

Depending on user preferences in the Options tab, errors generated during Mod installation or removal will automatically open the error log so the administrator can see what went wrong. Otherwise you can open the log to see the details of your operations.

The log line shows the date and time, the attempted operation, the name and version of the Mod, the result and the functionary (Site Administrator) who performed the operation.

To see the details, click on the log line. A panel will open. Each directive (starting with a %character) shows a line number in the Mod configuration file where the directive was executed, and the result.

As noted previously, errors are accompanied by an E-number referencing the line number in the TNG Mod Manager file where the error occurred. If it occurred during an attempted installation, the E-number will refer to the classes/modinstaller.class.php file. Opening that file to the line number, you will often see nearby commentary explaining the error and suggesting solutions.

For help with directives and how to use them, please consult the TNGWiki. You can also click on the Mod Syntax link just below the Mod Manager tabs on most MM screens.

Top

Options

The Options tab opens a user preference screen dividied into three sections.

In the Mod Manager Log section you can enter preferences concerning the log file. Under the Log File Name you can actually enter a server path to place your log outside the area of the website that can be accessed by a browers. The default is to put it in the TNG root directory.

Display Settings is where you show or hide the Mod Manager page tabs.

Other lets you decide how to configure Mod Manager's ability to delete mods and their support folders.

  • Allow Delete Selected on Partially Installed Mods - enables the Delete button on the Partially Installed filtered list screen that allows deleting more than one mod at a time, such as deleting the prior versions of mods that were not deleted before installing the newer versions. The default is No. We recommend that you only enable this option when you need it to delete multiple mods without having to uninstall the current versions to delete the prior versions of the mod when you forgot to Uninstall and Delete previous versions of the mod before installing a new version and that you normally leave this option set to No and reset the option to No after you deleted previous versions of the mod that show as partially installed.
  • Allow Delete of individually Installed Mods - allows you to turn on the option to display a Delete button next to the Uninstall button for individually installed mods, such as deleting the prior version of a mod that was not deleted before installing the newer version. We recommend that you only enable this option when you need it to delete a previous version of a mod without having to uninstall the current version in order to delete the prior version and that you normally leave the option set to No and reset the option to No after you deleted previous versions of the mod that show as installed..
  • Allow Delete support folder when mod is deleted - some mod configuration files are accompanied by a support folder containing files to be copied, for example, or language support files. This option allows you to to delete the mod's support folder when deleting the mod. The default is No. We recommend that you only enable this option if you understand the risk that unintended folders could be deleted. We believe this risk is very small.

Set the preferences as you like and hit the Save button.

Top

Analyze TNG Files

The Analyze TNG Files tab is an optional tab that can be enabled in the Options screen.

This is an advanced tool that allows you to select a TNG file and view which mods change or will change that specific TNG file. If a file does not appear in the left-hand list, it means that no mods are targeting it.

When you select a file in the left-hand column, it will be displayed in the right-hand column with the names and status of mods that will affect it. From there you can click the link to "Show modification" and see the actual change it makes to the target file. It is not within the scope of this Help file to discuss Mod configuration directives and how they work. Please consult the TNGWiki for information.

If you have chosen in the Options tab, Display Settings, "Show actions in Mod Analyzer," you will also see links to allow you to Install, Uninstall or Delete the Mod right from this screen, depending on it's current status.

At the top of the lising you will see a filter bar with selectors for All Mods, Installed Mods Only, or Installed+Partially Installed Mods. Selecting Installed Mods Only and clicking on Submit Query will limit the Files in the left-hand column to those which are affected by currently Installed mods only.

This tool is helpful not only to find conflicts between two mods but also to know which mods need to be cleaned up and re-installed after replacing the given target file.

The TNG Wiki provides additional information for the mod developers on Using the Mod Analyzer.

Top

View Parser Table

This tool is designed mainly for debugging Mods. The Parser Table shows how the Mod Manager parsed the Mod config file (.cfg) directives. It is shown in the form of table, with each row representing a Mod directive. The data shown in the table is passed to other mod manager scripts for further processing -- installing, removing, and so on. If there is a problem with a Mod, a good place to start is with the parse table to see if all the Mod's directives and arguments are being captured properly.

You can use this tab to select a mod from a list whose table you want to view, or alternatively you can click on the mod name in the Mod List to view the parse table for that mod, if you've enabled the Show Other Developer Tools option.

Displaying this tab is optional. To use it select 'Display Settings/Show Other Developer tools' on the options tab. If the tab option is turned off, the link on the listing page will also be disabled.

It is not within the scope of this Help file to discuss Mod configuration directives and how they work. Please consult the TNGWiki for information.

Top

Recommended Updates

The Recommended Changes tab is an optional tab that can be enabled in the Options screen that allows you to update your cust_text.php files if you did not do so as part of the TNG upgrade readme.

Additional information can be found in the Mod Manager article and in the TNG Mod Manager category of articles on the TNG Wiki.

You can view the Mod Manager article in TNG Wiki to see what enhancements were made in TNG v12.

Top

Credits

Brian McFadyen
  • author
Sean Schwoere
  • integration for Joomla
  • better integration to install, remove and manage mods
Ken Roy
  • development team leader, versions 12 - 14
  • created the View Log tab
  • created the Options tab
Rick Bisbee
  • lead programmer, versions 12 - 14
  • added batch processing
  • added View Parser Table tab
  • added Ananlyze TNG Files tab
  • refactored TNG code for maintenance, v14
Jeff Robson
  • beta testing team, version 12
  • added the Affected Files tab
  • major contributions to the styling
Robin Richmond
  • beta testing team, version 12
  • provided code to break long lines of text with no spaces in them used primarily in the MM Status column
  • major contributions to the MM log display
Michel Kirsh
  • beta testing team, version 14
  • major update to Analyze TNG Files
TNGv14 beta test team
  • Mogens C. Fenger
  • William Herndon
  • Michel Kirsch
  • Ron Krzmarzick
  • Roger Moffat
  • Jan-Thore Solem