Store list of last five logins
Permalink
I have a client who wants to use C5 as an intranet for staff and as a document repository for them to download new training documents etc.
He would love to be able to see the last 5 logins of each member of staff to make sure that they are all using the system. The Users & Groups page in Dashboard shows the last log-in, is there any way of showing the last 5?
He would love to be able to see the last 5 logins of each member of staff to make sure that they are all using the system. The Users & Groups page in Dashboard shows the last log-in, is there any way of showing the last 5?
PM'ed you
As a login can be 'remembered' for 2 weeks, I don't see recording logins as being particularly useful. At best, your customer will see each of his workers logging in each 2 weeks.
If I was looking for user activity, I would do some SQL and graphics on the page statistics and user tables in the database. One clever join should give you a result of page hits vs emplees within a time frame. Then show it as a bar chart.
If you wanted to get really clever, you could have a periodic ajax call to refresh the chart.
If I was looking for user activity, I would do some SQL and graphics on the page statistics and user tables in the database. One clever join should give you a result of page hits vs emplees within a time frame. Then show it as a bar chart.
If you wanted to get really clever, you could have a periodic ajax call to refresh the chart.
PS. However, the page stats table quickly bloats your site, so you may want to include some trimming of the table as part of this approach.
PS again
There is a chart stats addon
http://www.concrete5.org/marketplace/addons/chart-stats/...
However, I don't think it does what I have described.
There is a chart stats addon
http://www.concrete5.org/marketplace/addons/chart-stats/...
However, I don't think it does what I have described.
I just discovered the Stats package so I think I'm all set. Thanks for the suggestions guys.http://www.concrete5.org/marketplace/addons/stats/...
EDIT: But it will only work from the moment on when the custom add-on is installed because by c5 only stores this info (1 value for each):
- last login
- last online
- previous login
Best,
Antti / Mainio