TNG V13 Change Impacts

From TNG_Wiki
Jump to: navigation, search

Admin Screen Layout

4. Admin: The Admin menu will no longer use an HTML "frameset". The layout will be the same, but it will use fixed DIVs instead.

  • the nice benefits of the Admin screen layout no longer using a frameset are:
    • the Admin screen immediately reflects a change in Template when a new template is selected without having to do a reload of the Admin home page
    • right clicking on any Admin Screen Links launches the full Admin screen and not just the script in the main frame
    • the browser URL now actually shows what script is running, so you do not have to right click to find out what script is involved
  • the layout change impacted the Mod Manager Mod displays
    • Mod Manager fixed header were fixed in TNG v13 alpha testing
    • additional Mod Manager fixes were added in TNG v13 beta 2
  • the layout change also impacts all mods that add entries to the Admin screen
  • you must now update admin.php and admin_leftmenu.php to add new admin buttons and links in the left sidebar
    instead of admin_main.php and admin_leftbanner.php
  • if you previously used target="main" in the added URL you need to also remove it because there is no longer a main iframe
  • you must now update adminlib.php to add links to the top div
    instead of admin_rightbanner.php
Note that you also need to change your previously used echo statements to $output .=
  • scripts that run in the TNG Admin main section must now change the body from
echo "
</head>
<body background=\"img/background.gif\">
to
	echo "
	</head>";

	echo tng_adminlayout();

	echo "
and the footer part from
	echo "
	</body>
	</html>";
	exit;
to
	
		echo tng_adminfooter();
The Show PHP Error Log and Living Flag Backup / Restore mods have been updated if you need an example.

Admin Sorts

9. Branches: Sorting has been added to some of the columns on the Admin/Branches page
26. Families: Sorting has been added to some of the columns on the Admin/Families page.
  • Thanks to Björn Möller for suggesting using CAST during beta testing, you can now sort the Family ID column in ascending or descending order
45. Media: Sorting has been added to some of the columns on the Admin/Media page.
69. People: Sorting has been added to some of the columns on the Admin/People page.
  • Thanks to Björn Möller for suggesting using CAST during beta testing, you can now sort the Person ID column in ascending or descending order
80. Repositories: Sorting has been added to some of the columns on the Admin/Repositories page.
  • Thanks to Björn Möller for suggesting using CAST during beta testing, you can now sort the Repository ID in ascending or descending order
89. Sources: Sorting has been added to some of the columns on the Admin/Sources page.
  • Thanks to Björn Möller for suggesting using CAST during beta testing, you can now sort the Source ID in ascending or descending order

New Admin Buttons

3. Admin: The "on save" radio buttons at the bottom of many Admin pages have been converted to multiple submit buttons (should result in one less click each time).
Most Admin screens now have a Save+Exit, Save+Stay, and Cancel buttons
Some Admin screens now have additional buttons like Save+New Parents and Save+New Spouse on the Admin > Person update screen

Image Tags

43. Media: Image tagging is now vastly improved. No more HTML image maps (although existing image maps will still work).
  • DO NOT run the convert step if you use the Tooltip mod with Image Maps
    • since image maps are only converted if the image map contains a URL pointer to a gerperson.php page.
    • all image maps will be deleted by the conversion utility whether they are converted or not
  • The Tooltip mod allowed you to
    • display person names from image maps for persons not in your database in group photos. These image maps will be not be converted since they do not contain a getperson.php URL
    • display additional text when hovering over an image without having a URL that pointed to a person. These image maps also will not be converted since they do not contain a getperson.php URL
  • Since only image maps that point to a getperson.php will get converted. Image tags are only a replacement for image maps in photos, and only if that person is also in your database. Image tags do not support tagging a person in a photo that is not in your database
  • Note there is also a behavior change: Image Tags are saved when created or deleted whether you save the Edit Media record or not, whereas image maps were part of the media record so only saved when the media record was saved

Mod Manager Directives

70. Mod Manager: In some cases when a directive was not terminated, part of the mod cfg file was treated as belonging to that directive (fixed)
The Mod Manager now checks that all directives are terminated. As a result some mods that installed in previous TNG versions will now return a Cannot Installed status with an error indicating which tag is not terminated.
The following are examples of tightened Mod Manager syntax
line 1: %name: tag not terminated
line 11: %author: tag not terminated
line 47: %description: tag not terminated