Upgrading Mods to TNG V10.1

From TNG_Wiki
Revision as of 16:34, 12 January 2015 by HiTowerUK (talk | contribs)

Jump to: navigation, 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).

Impacted by other TNG changes

function tng_escape_string() was changed to tng_real_escape_string
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.

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
tab alignment
tab alignment
%trimreplace changed to %replace::%trimreplace changed to %replace
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
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.
%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

Mods Eliminated

Display Only Non-Event Default Photos

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.

Mod Developer Tools

Analyzer tab is now included in the new Mod Manager.
The Syntax check is incorporated into the tighten Mod Manager syntax checking.

Remove Last Gedcom Import Messages

Date of last Gedcom import will, by default, only be displayed at Admin >> Trees from v10.1

Related Links

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