Error Reports Infusion v3.01
PHP-Fusion: v7.00+
original author for v6: Digitanium
email author: digitanium@php-fusion.co.uk
web author: http://www.php-fusion.co.uk
Update to v3.00: muscapaul
email: muscapaul@gmail.com
web: http://www.muscapaul.com
Last updated: 4 August 2008
-------------------------------------------
Released under the Affero GPL license. You can
redistribute it and/or modify it under the terms of
this license which you can read by viewing the
included agpl.txt or online at
www.gnu.org/licenses/agpl.html. Removal of this
copyright header is strictly prohibited without
written permission from the original author(s).
-------------------------------------------

FEATURES
--------
* A simple system to collect error reports from members on your site, to comment on these and to track/change their status (Open, response Added, Closed).
* A Latest Error Reports side panel is available to alert to to any error reports. The Panel only shows when error reports were made during the last 15 days. Their status is indicated by '0' for Open, '|' for Response Added and '_' for Closed.

REMARK
------
The Infusion can be used to collect error reports for different parts of the site. By default, the locales are drafted to collect error reports for the site as such, to members can, for example, report an error in the forum or in the weblinks. If you want to use the Infusion to collect errors about your Infusions/Mods, articles, or whatever, you need to edit the definitions $locale['err132'] (presently "Site category") and $locale['err133'] (presently "Please state correct category (e.g., forum or weblinks)" accordingly. You can even decide to collect error reports from one or more other sites and in that case you will also need to edit $locale['err135'] accordingly.


INSTALLATION INFUSION
---------------------
1. If so desired, open the file ../files/infusions/error_reports/locale/[your_locale].php and edit the approriate lines (see REMARK above). Save the file and close it.
2. Upload the 'error_reports' folder to your infusions folder.
3. Go through Admin Panel -> System Admin to Infusions and install the Error Reports Infusion. If you do not want to install the Latest Error Reports Panel you are finished..
4. To install the Latest Error Reports Panel go to Admin Panel -> System Admin ->Panels. Choose to add a new side panel. Give it an approrpiate name (for example 'Error Reports') and select 'latest_error_reports' from the File name drop-down menu. Save the panel.
5. Return to Panel Management and enable the panel. If so desired change its position.

NOTES
-----
To change the number of days that newly reported errors are displayed in the Latest Error Reports Panel you can edit the file ../infusions/latest_error_reports_panel/latest_error_reports_panel.php. On line 32, in $period = 3600 * 24 * 15; you can replace 15 by the number of days you prefer.

UPGRADING FROM PHP-FUSION v6 TO PHP-FUSION v7
---------------------------------------------
Please note, if you want to upgrade your Error Reports Infusion during a PHP-Fusion version upgrade from v6 to v7, there is no need to defuse the infusion. There will be no error messages as long as you upload the infusion files at the same time as the PHP-Fusion files. When you upload the infusion files, you can simply overwrite the existing ones.
PHP-Fusion v7 utilises a somewhat different system for administering admin rights for Infusions. In v6 it used to be a single setting that gave rights to all Infusions. Under the new version every infusion will be given its own code for admin rights. As a result it is necessary to run an upgrade script (../infusions/error_reports/v6-7upgrade.php) that will at least add the rights for the primary Superadministrator. The file has checkboxes to indicate whether all superadmins should be given access rights to the Error Reports Infusion and/or whether all admins with Infusion Administration rights should be given those rights.
This script only needs to be run if a site is upgraded from PHP-Fusion v6 to v7. Even though a check has been built in to prevent the script from being run after the upgrade has already been performed, it is advised to delete the script from your server after upgrading.


CHANGELOG
---------
v3.01 (muscapaul)
* Typo resulting in bug in error_reports.php corrected (thx to HobbyMan).
* Updated Danish locale added (thx to helmtuh).

v3.00 (muscapaul)
* Fully updated to comply with PHP-Fusion v7.00 and for XHTML 1.0 compliancy.
* Latest Error Reports Panel updated to only show the errors that were reported during the 15 days and to show their status.

v2.1 (Digitanium)
Unknown (no changelog included)