Upgrading Mods to TNG V10.1

From TNG_Wiki
(Redirected from TNG V10.1 Mods)
Jump to navigation Jump to search
Ambox notice.png TNG 10.1 changed all MySQL to MySQLi queries and moved all SQL functions to a new tngconnect.php module.

All TNG Mods using MySQL queries are impacted by this changed.
The TNG 10.1 Mod Manager added a new directive the %wikipage: which allows all mods to be updated to provide the Wiki icon in the Mod List that links to the TNG Wiki article. The syntax was also tightened to make install and uninstall more fool proof. As a result some mods need to be updated to change the %triminsert or %trimreplace to use the simple %insert and %replace.
NOTE that Upgrading Mods to TNG V10.1 only identifies mods that were impacted by the TNG 10.1 Upgrade. See Mods for TNG v10 for a complete list of mods that are valid with TNG v10.

TNG 10.1.0



Impacted by SQL Query changes

19. MySQL: All MySQL-specific functions have been abstracted out of the code and placed in a single file called tngconnect.php. This should make it easier to adapt TNG to other databases if desired.
20. MySQL: Also, all "mysql_*" functions have been replaced with equivalent "mysqli_*" functions (the mysql_ functions have been deprecated in the most recent versions of PHP).
  • Use Unused IDs - Mod has NOT been updated and will cause problems. DO NOT INSTALL.

Impacted by other TNG changes

function tng_escape_string() was changed to tng_real_escape_string - updated by Robin 10 Jan 2015
Item 9. Media: Incoming media references marked as "_PRIM" will only be set as the associated person's "Default" photo if the reference is attached directly to the person and not to an event.
  • Action required
Uninstall or Clean Up this mod if it was not removed by the upgrade.
  • Fixed Length IDs - Mod has NOT been updated and will cause problems. DO NOT INSTALL.
Item 26. Trees: Where only one tree exists, the "Tree" column on the right side of several public pages has been removed. On the People, Families, Sources and Repositories pages in the Admin area, the Tree selection box has also been removed.
working with Darrin to remove the Treename column from Browse Branches, Place Search, and What's New --Ken Roy 05:31, 17 January 2015 (CST)
  • Action required
Uninstall or Clean Up this mod if it was not removed by the upgrade.
  • Use Unused IDs - Mod has NOT been updated and will cause problems. DO NOT INSTALL.

Impacted by new Mod Manager

See Mod Manager gotchas for examples of how some of the mods needed to be changed for the new Mod Manager syntax checking.

%trimreplace changed to %replace
%trimreplace changed to %replace
%triminsert changed to %insert
%trimreplace changed to %replace
white space and tab alignment
tab alignment
fixed conflict with MediaWiki Integration
%trimreplace changed to %replace::%trimreplace changed to %replace
fixed conflict with MediaWiki Integration
changed trimreplace to replace
%trimreplace changed to %replace
changed %replace: to %trimreplace: on a partial line %location:%
removed conflict that showed location as Not Installed after installing Geocode Assist Mod
Now supports editing parameters in two different modules
fixed conflict with Family Indicators Mod and Family Preview Mod
updated to eliminate Bad Target in ShowTable Mod that changes the same location
%trimreplace changed to %replace
resolved the conflict with the Media - Census Plus International mod both changing function showTable
changed code to use full line instead of fragment to eliminate critical error
%trimreplace changed to %replace
removed modification to admin_modmanager.php
Fix so that no code follows the %location:% and %insert:after% directives.
Added % terminator to the %description: section
%trimreplace changed to %replace
Also spun off several smaller mods to make the mod smaller and manage conflicts better.
Remove modification to admin_modmanager.php
changed %replace: to %trimreplace: on a partial line %location:%
%trimreplace changed to %replace

Use New Mod Manager Capability

remove the location / replace for the Edit Parameters which are no longer needed
added conditional @ to copyfile for font file to eliminate the error on Uninstall where Windows does not allow the file to be deleted because it is in use by the Apache web server
changed trimreplace to replace
Updated for TNG V10.1 to remove the location / replace for the Edit Parameters which are no longer needed
updated to remove the location / replace for the Edit Parameter which is no longer needed

Mods Eliminated

The following mods are eliminated by the TNG 10.1 changes

Item 9. Media: Incoming media references marked as "_PRIM" will only be set as the associated person's "Default" photo if the reference is attached directly to the person and not to an event.
Item 26. Trees: Where only one tree exists, the "Tree" column on the right side of several public pages has been removed. On the People, Families, Sources and Repositories pages in the Admin area, the Tree selection box has also been removed.
Analyzer tab is now included in the new Mod Manager.
The Syntax check is incorporated into the tighten Mod Manager syntax checking.
Date of last Gedcom import will, by default, only be displayed at Admin >> Trees from v10.1
Item 24. Statistics and What's New: "Last GEDCOM Import" message has been removed from all public pages (will still be visible on the Admin/Trees page).

Old Mod Manager Modules

The following old Mod Manager modules can be safely deleted from your system after you have upgraded to TNG 10.1:

  • admin_modmanager.php
  • admin_modmgrbatch.php
  • admin_modmgrconfig.php
  • admin_showmodmgrlog.php
  • admin_updatemodmgrconfig.php
  • managemods.class.php

Related Links

See Dealing with Mods in TNG 10.1
See Mods for TNG v10 for the other mods that apply to TNG v10