Jump to content
TNG Community
Brett

Identify Mods affecting pages

Recommended Posts

Brett

Recently there have been some forum posts regarding conflicts on some sites, mainly due to Mod changes.

It is not always easy to identify which Mods affect which pages. I would like to highlight Show Mod Names by Robin Richmond as a working solution.

Show Mod Names lists mods (utilising the Mod) that affect the files used by the running program. While it does not identify errors, it can save some time, as it is not as necessary to uninstal all the Mods when finding the error Mod. It is only needed to uninstall those Mods affecting the page the error occurs on.

If Mod developers would look into incorporating this into their Mods, it could benefit TNG admin users in identifying or reporting error detail. An example on the getperson.php is shown. No details print and the view is only available to logged in Admins.

Untitled2.jpg

 

 

Share this post


Link to post
Share on other sites
Ken Roy

Brett,

The TNG Mod Manager has a built-in capability that shows which mod makes a change to a file. 

  1. In the Mod Manager, click the Options tab
  2. Expand the Display Settings
  3. Change the Show Analyze TNG Files tab:  to Yes

You can then use the Analyze TNG Files tab in Mod manager to see all the mods in your TNG mods folder that impact a given file

No need for another mot

Share this post


Link to post
Share on other sites
Robin Richmond

Thanks for the kind words, Brett.  You have captured my intent well.

The purpose of Show Mod Names is similar to that of the Analyze tab, and, of course, not everyone finds it useful, but two aren't really redundant.

The Mod Manager Analyzer lists which mods (which may or may not be installed) affect a specific file, whereas Show Mod Names works in real time, as it were, and reports which mods have affected the code that has been executed by the running TNG  program. For example, here is a result from running brosemedia.php

<!-- *********** TNG Mods: **********
Browsemedia Search Form v2: browsemedia.php
RR-Translate IDs v1: tng_begin.php
RR-misctweaks v9: tngfiletypes.php,genlib.php(tng_getLeftIcons)
Show Mod Names v5: genlib.php(tng_footer)
 ****************************** -->

(The results are in an HTML comment, because a mod option has suppressed the display of the mod names on the screen for end-user programs.)

You can see that only one of the mods that affected this program actually changed browsemedia.php.  The others changed tngbegin, tngfiletypes.php, the tng_getLeftIcons function in genlib.php, and the tng_footer function in genlib.php.

FWIW, in general, depending on the data and options, as different functions or Include files are invoked, Show Mod Names might show different results for the same program.

- Robin

Share this post


Link to post
Share on other sites
Brett
On 7/21/2019 at 11:09 AM, Ken Roy said:

The TNG Mod Manager has a built-in capability that shows which mod makes a change to a file. 

You can then use the Analyze TNG Files tab in Mod manager to see all the mods in your TNG mods folder that impact a given file 

No need for another mot

 

13 hours ago, Robin Richmond said:

The Mod Manager Analyzer lists which mods (which may or may not be installed) affect a specific file,

Robin says on the Show Mod Names Wiki page, Show Mod Names supplements the information provided by the Mod Manager.

In the example below, 2 Mods are installed, Bold Person Name and Show Mod Names.

image1.jpg

Analyze TNG Files lists 10 Mods affecting getperson.php. It lists all Mods that, if installed, would affect getperson.php, NOT those that are installed and actually affecting the page. The text 'is modified by:' is misleading. It actually shows the file would be modified if that Mod was installed.

image2.jpg

On getperson.php, Show Mod Names displays only Mods affecting the page, in this example only Bold Person Name.

image3.jpg

I find this much simpler to identify Mods affecting the page. For an admin not familiar with the way Analyze TNG Files displays, they should benefit as well, by advising those giving support, which Mods are installed AND affecting the page.

I consider the Show Mod Names mod a useful addition to assist users and Mod developers. It is less confusing than showing all Mods that may affect the page, installed or not.

 

Share this post


Link to post
Share on other sites
manofmull

From the list of mods on the image above

Bold Person Name = not in Wiki

Show Children Spouses = TNG12

Show End of Lines = TNG12

Show Stepparents = TNG12

What chance to have these mods for TNG11 users?

 

Michael

Share this post


Link to post
Share on other sites
Brett
1 hour ago, manofmull said:

Bold Person Name = not in Wiki

Michael

At the moment it is a Private Mod that Bolds the First Names and Surname of the individual and optionally other First Names and Surnames on the person page.

I PM'd you quite a few weeks ago asking if you were interested in a Mod for this.

I have resent it today.

Share this post


Link to post
Share on other sites
manofmull

Brett

Got your message but no mod attached. Would really like it please!

I don't have Wordpress installed but I do have the following list of mods:

wiki16.png
Installed [Options]
tng_more.gif
 
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
 
Installed
tng_more.gif
 
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
 
Installed
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 
Installed [Options]
tng_more.gif
wiki16.png
Installed
tng_more.gif
wiki16.png
Installed
tng_more.gif
 

Share this post


Link to post
Share on other sites
Robin Richmond

Thanks for the kind words, Brett.

And Michael... I'm going to post my response in a new thread, and I may post it on the discussion list, too, because I think that it will be of wider interest.


 

Share this post


Link to post
Share on other sites
Robin Richmond

The new thread is

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×