Difference between revisions of "Personal Table Maintenance"

From TNG_Wiki
Jump to navigation Jump to search
Line 59: Line 59:
 
* You will be able to back up, restore, optimize and delete each table just like any of the default TNG tables.
 
* You will be able to back up, restore, optimize and delete each table just like any of the default TNG tables.
 
* Your personal tables' structure will be backed up or restored along with the default tables on the Admin >> Utilities >> Table structure page.
 
* Your personal tables' structure will be backed up or restored along with the default tables on the Admin >> Utilities >> Table structure page.
 +
* Non-existing tables will be marked as such and the backup, optimize and restore buttons will be hidden.
  
  
Line 80: Line 81:
  
 
* Works only for tables in the same database as you TNG tables.
 
* Works only for tables in the same database as you TNG tables.
* Tables must exist. If they don't you'll get errors when you attempt to back up, optimize, restore or delete them.
+
* (<= 9.0.0.1, <= 8.1.3.1) Tables must exist. If they don't you'll get errors when you attempt to back up, optimize, restore or delete them.
  
  
Line 86: Line 87:
  
 
Uninstalling is done through the mod's '''Remove''' button on the [[Mod Manager]] page.
 
Uninstalling is done through the mod's '''Remove''' button on the [[Mod Manager]] page.
This will however not remove the table from your database. That is something you have to do yourself.
+
This will however not remove the table from your database. That is something you have to do yourself.<br/>
 +
This mod also creates a file in the extensions folder. Since this file isn't and can't be created during the installation of the mod it will also not be removed when uninstalling it. You can however safely delete it yourself. It's called ''ptm_settings.inc''.
  
  
Line 107: Line 109:
 
| v9.0.0.2<br/>v8.1.3.2
 
| v9.0.0.2<br/>v8.1.3.2
 
| 1 Februari 2013
 
| 1 Februari 2013
| ...
+
| New feature: non-existing tables will be marked as such. The three action buttons and the check box will be hidden.
 +
TNG bug fix: After a first-time backup of a table the restore button now becomes visible without having to refresh the page. Darrin has promised to include this fix in the next TNG version.
 
|- valign="top"
 
|- valign="top"
 
| v9.0.0.1<br/>v8.1.3.1
 
| v9.0.0.1<br/>v8.1.3.1
 
| 28 Januari 2013
 
| 28 Januari 2013
| Bug fix (php error *Warning*: array_keys():             The first argument should be an array on line *24*)  
+
| Bug fix (php error *Warning*: array_keys(): The first argument should be an array on line *24*)  
 
|- valign="top"
 
|- valign="top"
 
| v9.0.0.0<br/>v8.1.3.0
 
| v9.0.0.0<br/>v8.1.3.0

Revision as of 17:51, 1 February 2013

Personal Table Maintenance
Summary Adds any of your personal tables to the TNG's database maintenance cycle.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link  
TNG 9.0
personal_table_maintenance_v9.0.0.2.zip
 
TNG 8.1.3
personal_table_maintenance_v8.1.3.2.zip
Download stats See download statistics
Author(s) Bart 'Roebie' Degryse
Homepage Personal Table Maintenance
Mod Support TNG forum
Contact Developer
Latest Mod 9.0.0.2 for TNG v9
8.1.3.2 for TNG v8
Min TNG V 8.1.3
Max TNG V 9.1.1
Files modified
admin_backup.php
admin_optimize.php
admin_restore.php
admin_utilities.php
cust_text.php
Related Mods
Notes


Purpose of the mod

This mod will add any of your personal tables to the TNG's database maintenance cycle.


Developer

This mod was developed by Bart 'Roebie' Degryse


Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager (is already included in TNG v9)


Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page. NOTE that I host these zip files on my own server. That way I can count the number of downloads for each mod I made and estimate the relevance of such mod.
  2. Extract the config file from the downloaded zip file into the mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
  4. Press the Edit button and add any table to the text box. The rules to follow are listed in the next paragraph.


Rules

  • Only 1 table per line
  • Each line looks like xxx:yyy
  • xxx is the name of the table in the database
  • yyy is the tables's descriptive name


Feature List

  • Each table you add on the Edit page will appear next to the default TNG tables on the Admin >> Utilities >> Tables page of your TNG website with its descriptive name.
  • You will be able to back up, restore, optimize and delete each table just like any of the default TNG tables.
  • Your personal tables' structure will be backed up or restored along with the default tables on the Admin >> Utilities >> Table structure page.
  • Non-existing tables will be marked as such and the backup, optimize and restore buttons will be hidden.


Visualization of this mod

The following images show the visual effects of installing the mod.

Admin >> Mod Manager >> Edit

Use the mod's parameters to set the tables' database and descriptive name.

Use parameters to set the table names
Utilities >> Back up, Restore & Optimize Table Data

The mod adds the tables to the list of tables you can optimize, backup or restore.

With the mod installed


Limitations

  • Works only for tables in the same database as you TNG tables.
  • (<= 9.0.0.1, <= 8.1.3.1) Tables must exist. If they don't you'll get errors when you attempt to back up, optimize, restore or delete them.


Uninstalling the mod

Uninstalling is done through the mod's Remove button on the Mod Manager page. This will however not remove the table from your database. That is something you have to do yourself.
This mod also creates a file in the extensions folder. Since this file isn't and can't be created during the installation of the mod it will also not be removed when uninstalling it. You can however safely delete it yourself. It's called ptm_settings.inc.


In the event of a problem

  • Try using the Mod Manager Remove capability
  • Contact me through the TNG forum.
  • Contact me by email. My email address is in the description column of this mod on the Mod Manager page
  • Copy the backup of the affected files back to your TNG directory


Revision History

Version Release Date Contents
v9.0.0.2
v8.1.3.2
1 Februari 2013 New feature: non-existing tables will be marked as such. The three action buttons and the check box will be hidden.

TNG bug fix: After a first-time backup of a table the restore button now becomes visible without having to refresh the page. Darrin has promised to include this fix in the next TNG version.

v9.0.0.1
v8.1.3.1
28 Januari 2013 Bug fix (php error *Warning*: array_keys(): The first argument should be an array on line *24*)
v9.0.0.0
v8.1.3.0
27 Januari 2013 Initial release


Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
no public site Bart 'Roebie' Degryse Mod developer 9.0.0.0 9.0.4 NL/EN/ES/FR
Our Roy and Boucher Family Ken Roy Thanks for this mod. Works great! 9.0.0.1 9.1.1 EN, FR