report

report

by solmaz naderi -
Number of replies: 3

Hi every one

First of all, sorry for my English

I want to know, Which five users have the most logged in site in past six months؟

I have write fallowing script but I don't know how must limit date to 6 months ago..

SELECT DISTINCT
l.userid,u.email,
CONCAT (u.firstname, ' ', u.lastname) AS "Name",
COUNT(l.userid) AS "Number of Logins",l.timecreated
FROM mdl_logstore_standard_log l
JOIN mdl_user u ON u.id = l.userid
WHERE action = 'loggedin'
GROUP BY l.userid,"Name"
order by COUNT(l.userid) DESC
limit 5

thanks in advance

Solmaz

Average of ratings: -
In reply to solmaz naderi

Re: report

by Tonya Riney -

Hi Solmaz,

In addition to writing your own scripts or using configurable reports, you may also wish to view the IntelliBoard plugin; it has a free Level 0 version.

Best, 

Tonya

In reply to Tonya Riney

Re: report

by solmaz naderi -

there isn't  this plugin for moodle 2.9+. I'm going to update moodle but not now. is another advice for this version?

In reply to solmaz naderi

Re: report

by Tonya Riney -
Hi Solmaz,

The IntelliBoard plugin version 4.8 will expire in December, 2018. Although

you can install the lower IntelliBoard version, IntelliBoard is not

maintaining support for it, currently.

My best to you,

Tonya



On Mon, Sep 10, 2018 at 1:17 AM solmaz naderi (via Moodle.org) <