Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Admin Activity Report [support thread]

    This is the support thread for the Admin Activity Report contribution.

    Whenever you visit a page in admin, an activity is logged in a database table.

    Such data can prove useful when trying to determine who has been altering what, as well as making sure that your admin area hasn't been compromised.

    Until now, any lookup had to be done directly from the database using a utility like phpMyAdmin. With this contribution, you can quickly and easily view this data within your admin area, in a nicely presented format.

    Features include:
    1. Ability to empty the database table's data
    2. Highlights any visits to the login page from an unknown IP address.

    Installation is simple with only 8 new files. No database modification.
    No overwriting or overriding of files.

    This mod can be found in the Downloads section:
    http://www.zen-cart.com/index.php?ma...oducts_id=1030

  2. #2
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default Re: Admin Activity Report [support thread]

    Thank you so much for this. All works except the reset function. But it is still very useful to see what who is doing what and where.

    Thanks again for this useful contribution.
    Last edited by ccembd; 26 Jun 2008 at 08:33 AM. Reason: Needed to change comment

  3. #3
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin Activity Report [support thread]

    Thanks ccembd, I'm pleased you found it useful. You mentioned that the reset function doesn't work. Could you describe what happens? And does this happen for both pages?

  4. #4
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default Re: Admin Activity Report [support thread]

    When I used the reset button actually nothing happened. It didn't reset. It successfully reset when I used the reset button in Tools: Store Manager. I verfied this by going back and opening the Admin Activity Log which I now have thanks to you.

    Hope this helps,
    Cat

  5. #5
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin Activity Report [support thread]

    Yep it does help It's an interesting issue because the reset function has worked for others. I'm wondering whether it could be a database prefix problem. Anyway I'll have a proper look and see if I can figure out what might be wrong.

  6. #6
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin Activity Report [support thread]

    Okay I think this might work.

    In the following file:
    admin/stats_admin_activity.php

    Find:
    PHP Code:
    $db->Execute("delete from " TABLE_ADMIN_ACTIVITY_LOG);
    $db->Execute("optimize table " TABLE_ADMIN_ACTIVITY_LOG); 
    Change to:
    PHP Code:
    $db->Execute("delete from " TABLE_ADMIN_ACTIVITY);
    $db->Execute("optimize table " TABLE_ADMIN_ACTIVITY); 
    If it does work, you'll need to make the same change to:
    admin/stats_admin_activity_all.php

    Either way, let me know.

  7. #7
    Join Date
    Feb 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Admin Activity Report [support thread]

    I also had problems getting reset to work, here's how i fixed mine ->

    -- Files --
    admin/stats_admin_activity.php
    admin/stats_admin_activity_all.php

    Replaced the top part just after the include of application_top.php


    PHP Code:
    // added by Jinson on 12th July 2008. Because this script was
    // originally written expecting register globals to be on
    $action $_GET['action'];

    switch(
    $action) {

    // clean out the admin_activity_log
        
    case 'clean_admin_activity_log':
          
    $db->Execute("delete from " TABLE_ADMIN_ACTIVITY);
          
    $db->Execute("optimize table " TABLE_ADMIN_ACTIVITY);
          
    $messageStack->add_session(SUCCESS_CLEAN_ADMIN_ACTIVITY_LOG'success');
          unset(
    $_SESSION['reset_admin_activity_log']);
          
    zen_redirect(zen_href_link(stats_admin_activity));
        break;
        } 
    // eof: action
    unset($action); 

  8. #8
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin Activity Report [support thread]

    Thanks Jinson, that's a big help.

    Have you uploaded this change to the contributions area?

  9. #9
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin Activity Report [support thread]

    Ok I have uploaded the suggested change.

    Should be approved within the next couple of days.

    Hopefully that's the end of the reset problems.

  10. #10
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default Re: Admin Activity Report [support thread]

    Thanks you to the both of you. I am sorry I have not gotten to this yet, I have been overwhelmed with other changes needing to be done to my site and did a bit of damage in the process. I figured I had till the next reset time to do these changes.

    Thanks again for all your help, I will go make the changes now. Cat

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v152 Support Thread: Report All Errors (Even Warnings)
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 1 Feb 2020, 05:42 PM
  2. v151 Sales Report with Graphs support thread
    By JacobBushnell in forum Addon Admin Tools
    Replies: 17
    Last Post: 25 Jul 2019, 02:27 PM
  3. v153 Linked Products Report [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 11 Jun 2015, 09:52 PM
  4. Business Activity Report 1.5.0 Support Thread
    By gharls in forum All Other Contributions/Addons
    Replies: 23
    Last Post: 6 Apr 2012, 11:12 PM
  5. Admin Activity Report not shown
    By Hell Guapo in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 21 Nov 2011, 07:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR