Not tracking user login

0
Hi,

I've recently purchased and installed this component, and it's working well so far. However, for some reason the system is recording logouts but not logins. Is there something silly I may have messed up? It's recording com_content and com_kunena fine as well - just not logins.

I should add the site is operating in offline mode, though I'm not sure if this affects the plugin hooks called (I don't think so though, as I've written other plugins for the site and they operate as expected using the same hooks).

Best,

Paul
Responses (13)
  • Accepted Answer

    Monday, November 04 2013, 12:12 PM - #Permalink
    0
    I managed to fix this by editing the plugin. In the save_data method of plugins/contentstats/com_users/com_users.php, around line 231:

    Change

    $user =& JFactory::getUser();

    to

    $user =& JFactory::getUser($data['reference_id']);


    For some reason $user->id was empty, even though the login was successful.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 04 2013, 12:35 PM - #Permalink
    0
    Really?
    what version of Joomla are you running?

    could it be just a "momentary" fail?

    your fix does make sense (good job by the way), but it should work without that tweak (everybody is using it that way, no complains so far...)
    is it possible that your system is modified somehow?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 05 2013, 09:07 AM - #Permalink
    0
    This is running Joomla 2.5.9 (admittedly in offline mode). I'm not sure exactly what's happening, as by that point in the chain (onUserLogin) the user object should have been populated. Odd.

    Only thing I can think of is that because users are effectively logging in from 'offline.php' (though obviously this is transparent to them) that user data is being handled differently somehow (I had to change the offline mode permissions to allow more than just super-admins to log in).

    Regardless, the minor fix is working a charm. Great component! Would love to see an eDocman plugin if you ever get the chance.
    The reply is currently minimized Show
  • Accepted Answer

    bjensen
    bjensen
    Offline
    Tuesday, December 03 2013, 04:01 PM - #Permalink
    0
    I had the same problem where my site was only recording logouts. I tried your fix and it works perfectly. Thank you!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 03 2014, 10:31 PM - #Permalink
    0
    I have a live site, just purchased the extended pro version....Only records logouts.

    Sounds like a known bug. Why was this not fixed by now?! As of September 2014?
    • Germinal Camps
      more than a month ago
      hello,
      this is not a known bug.. it should be tracking the logins. what's the settings on your plugins? to track user logins/logouts, make sure to be tracking data from all users (in the main plugin), and then in each individual plugin you can restrict the access to "public" or "registeted". in the case of the user plugin, leave it to public. let me know if that helps.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 05 2014, 06:46 PM - #Permalink
    0
    My settings for this plugin are set exactly that way. Still it is only recording log outs. Additionally, the advertising suggests that it tracks everything. Looking at the plugin settings for VirtuMart, it tracks a limited number of site visitor actions (product views, category views, product orders, and product reviews.) There’s nothing in here to track what an administrator is doing in the backend, OTHER THAN when an order marked completed. No tracking for item additions/edits/removals. This is not what was advertised. Have I missed something?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 05 2014, 09:58 PM - #Permalink
    0
    Hello,

    about the logins not being tracked, there must be something we're missing. if you want to give me access, I'll be glad to take a look.

    about virtuemart action tracking, it tracks what is advertised... no more no less... this page lists exactly all the actions tracked: http://www.joomlathat.com/content-statistics/extensions/statistics-for-virtuemart
    I believe nowhere is said that it will track other admin actions for VirtueMart.. if there is, it would be great if you could point me to it (that would be logically a mistake!)

    thanks a lot,
    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 08 2014, 03:46 PM - #Permalink
    0
    On the link you just sent, one of your headers says:

    "Complete user activity log reports for admins in the backend for VirtueMart"
    • Germinal Camps
      more than a month ago
      Hello,
      it is "for admins" (in other words, for admins to see) not "from admins" or "by admins".. it refers that the ones that are able to see the activities and the reports are admins. I appologise if that confused you, we will try to rephrase this. so, what specific actions in virtuemart, made by admins, are you interested in tracking? item additions/edits/removals? is that it?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 08 2014, 03:57 PM - #Permalink
    0
    Yes, I would like to view the activity of the admins who use virtue mart, --- their activity on the backend, add/edit products, etc.
    • Germinal Camps
      more than a month ago
      yes, but what I was asking was the complete list of activities you want to track (no "etc" but the actual list). you mentioned 3 speicifc actions, which are the ones related to products (adding, removing, editing). is there anything else besides these 3 you are interested in tracking?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 08 2014, 04:09 PM - #Permalink
    0
    Honestly, I want to track everything. Orders, if they edit shop settings, ANYTHING they can do inside of virtue mart. I have narrowed down their permissions as an admin to only access VM from the joomla backend. I am having trouble with 4 different managers accessing stuff, then they "break" VM (by editing settings they don't need to touch), or they are deleting other managers products. I couldn't give you a complete list...just anything done in VirtueMart on the site.

    Do you have any recommendations?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 08 2014, 04:19 PM - #Permalink
    0
    well.. the thing is that any action we want to track, we need to specifically program it in the plugin, so we need to know what we want to track.
    and "every possible action" is really not a realistic option because there could be like... 100 actions, or more. that's why I asked to narrow it down to the ones you want to track, because if they are "not many", I can try to build them for you in the plugin. but I can't build 100 actions logically...

    maybe the 3 product actions, plus "saving configuration" ?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 10 2014, 03:48 PM - #Permalink
    0
    Here's the actions that would be helpful to track for our site:
    - For products: New - duplicate - save - edit - delete
    - For Orders: edit - update status
    - Pages viewed by admin in the backend of of virtuemart (is this possible)
    - saving configuration? Are you referring to any shop settings a user may edit?


    I have a development site & a live. I can give you admin access to the development site if you can give me an email to send the info to. Or you can just make a "package file" available for download on your site. But I prefer to test these types of things on the "dev" site first. If you could look at why it is only tracking lo-out's also?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 10 2014, 04:11 PM - #Permalink
    0
    yes I can definitely take a look at the "only tracking logouts" issue. please send me access to support@ joomlathat.com

    as for VM admin actions, the product actions seem reasonable and I'll see about Orders page, but tracking "any possible page views" on the backend of VM is something else...
    The reply is currently minimized Show
Your Reply