Giter Site home page Giter Site logo

clearbold / audit-pro Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 12.0 213 KB

Audit Pro is the missing activity tracker for ExpressionEngine. It uses any available Control Panel hooks to log creating, editing or deleting entries as well as other activity.

Home Page: http://devot-ee.com/add-ons/audit-pro

License: BSD 3-Clause "New" or "Revised" License

audit-pro's Introduction

Clearbold, LLC

audit-pro's People

Contributors

heymarkreeves avatar whvandervelde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audit-pro's Issues

set_variable depreciated in 2.6.0 causes error in function manage_notifications

Fixed by adding ee_version check to construct

    //normal
    if (defined('APP_VER'))
    {
        $this->ee_version = APP_VER;
    }
    //install wizard
    else if (isset(ee()->version))
    {
        $this->ee_version = ee()->version;
    }

And in manage_notifications function

    //set_variable depracated in 2.6.0
    if (version_compare($this->ee_version, '2.6.0', '>='))
    {
        $this->EE->view->cp_page_title = 'Manage Notifications';
    }
    else
    {
        $this->EE->cp->set_variable('cp_page_title', 'Manage Notifications');
    }

Multiple emails...

Would it be possible for you to add some functionality to this?

We would like to use something like https://github.com/vector/VMG-Chosen-Member#single-variable-tag that would add a custom field to entries, this field outputs a pipe delimited list of members IDs.

So when an entry is added or updated Audit pro would ONLY email the members from the custom field on the entry that was updated.

Pagination

In the current version of AP, we're having trouble paging through entries on the main module page (the pagination links don't work). Also, the "manage notification" button the module entry throws the following message.

Fatal error: Call to undefined method Cp::set_variable() in /var/www/sjsys/expressionengine/third_party/audit_pro/mcp.audit_pro.php on line 194

List of member usernames can throw a js error

Where you echo out the list of usernames in mcp_manage_notifications.php (line 57) it's possible for a username to contain a double quote or line break, which will break js.

Maybe do something like this?

<option value=\"<?php echo $member['member_id'] ?>\" ><?php echo addslashes(trim($member['username'])) ?></option>\

Or, rather than injecting directly into the js/markup, use a js template with Mustache or Handlebars and pass it JSON instead.

Error Number: 1366 Incorrect integer value: ‘’ for column ‘item_id’ at row 1

I am getting an error when trying to add a notification error as follows:
Any pointers?
thanks.
Error Number: 1366
Incorrect integer value: ‘’ for column ‘item_id’ at row 1
INSERT INTO exp_audit_notifications (email_address, is_sms, member_id, group_id, item_type, channel_id, item_id) VALUES (‘[email protected]’, 0, 0, 6, ‘entry_update’, ‘0’, ‘’)
Filename: third_party/audit_pro/mcp.audit_pro.php
Line Number: 295

Audit changed fields

Hi!

Are there any plans to audit the changed fields (old and new values) as well? It would be great to see the changed fields including there values in the mail.

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.