Login »

Bluetrait

Search Posts

Categories

Bluetrait
    Coding
        WordPress
            Plugins
        PHP
        Bluetrait (Program)
    Geek
        Cisco
        IBM N2200 8363
        PCs
        Spam
        IPv6
        Apple
        NetScreen
        Internet
    General
        Uni

Popular posts

Click here if you are looking for Bluetrait, the weblog software.


Login

Username:

Password:

Bluetrait Event Viewer (Wordpress Plugin)

This page is now out of date, please visit the WordPress Plugin Page, found here.

This plugin monitors events that occur in your WordPress install.

Current Version: 1.5 Download

BTEV is currently supported on WordPress 2.0.x and 2.1.x. Tested on 2.0.0, 2.0.10, 2.1.3, 2.2, 2.3.

WordPress 2.0.10 or higher recommended (2.1 is even better).

To install:

  1. Download
  2. Unzip (zip contains btev.php)
  3. Upload to wp-content/plugins
  4. Activate within Wordpress Admin Panel

Screen Shot

Note: This plugin has also seems to work on WordPress 1.5.2 (NOT 1.5.0). 1.5 isn't supported and not all functionality works. If you're having an issue with 1.5 contact me. Version 0.4 requires WordPress 2.0.0.

Using BTEV in your own plugin

It is possible to add your own events to the event viewer. Simply call the following function when you want add an entry:

btev_trigger_error($error_string, $error_number, __FILE__, __LINE__);

or

btev_trigger_error($error_string, $error_number);


Argument Descriptions:

  1. $error_string. This value can be any string, it is used in the description field in the event viewer.
  2. $error_number: This value can be one of the following: E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE. These values determine the type of message in the event viewer (Error, Warning, Notice)
  3. __FILE__: This is the file where the event occurred, please note __FILE__ is a PHP predefined variable. This value determines the source.
  4. __LINE__: This is the line where the event occurred, please note __LINE__ is a PHP predefined variable.

So an example would be:

btev_trigger_error('Login Successful: "' . $user_login . '"', E_USER_NOTICE);

or

btev_trigger_error('Login Successful: "' . $user_login . '"', E_USER_NOTICE, __FILE__, __LINE__);

NOTE: You should check to make sure that the plugin is active. The easiest way to do this is as follows:

    if (function_exists('btev_trigger_error')) {
        btev_trigger_error('Login Successful: "' . $user_login . '"', E_USER_NOTICE);
    }

Roadmap (for future release(s)):

  • Remove btev_site table and use the WordPress options table (in 0.4+)
  • WordPress 2.1+ cron support for update checker and auto-prune.
  • Uninstall Function (in 0.4+)
  • Code clean up
  • More tracked events
  • wp_mail overrride to track emails being sent out of WordPress (in 0.5+)
  • More WordPress 2.2 features added.

ChangeLog:

Note: Release Date is DD/MM/YYYY :)

1.3 (Released 29/08/2007)

*now installs on WordPress 2.3 

1.2 (Released 28/08/2007)

*Bug fix for MySQL 3 users
*minor fixes

1.1 (Released 17/05/2007)

+Lockdown Mode
+Tracks Deactivate All plugins
+API improvements

1.0 (Released 14/05/2007)

-wp_mail function now supported under WordPress 2.2

0.6 (Released 22/04/2007)

*bug in lostpassword_post causing it to error

0.5 (Released 22/04/2007)

+monitor activation/deactivation of other plugins
+track email sent from WordPress
-small code cleanup/changes

0.4 (Released 07/04/2007)

+New Events Tracked:
    +Switching Themes
+wp_nonce protection stuff.
+uninstaller
-removed btev_site table. Two less queries per page now.
-Updated plugin website link
-Small code fixes
-removed btev_site database

0.3 (Released 01/04/2007)

+Logs file uploads, Logout, Added user, able to override wp_login
+Able to use set_error_handler
*fixed Previous/Next Page links
*stops the file from being run directly
-cleaned up and commented some code

0.2 (Released 30/03/2007)

+Date is filled in for an event
+Update checker
+More events tracked
-Moved Event Viewer to link under dashboard

0.1 (Released 28/03/2007)

+Public release