Moodle plugins directory: Use Stats: Versions: 2.8.0 (build 2016111100) | Moodle.org
Use Stats
Use Stats 2.8.0 (build 2016111100)
moodle-block_use_stats
Time based use stats block
Version 2016051700
Adds per instance visibility control to students. Adds a "onesessionpercourse" global option. forcing working sessions to be splitted when course context changes in log track. Unifies time formatting with central block_usestats_format_time function @see mod_learningtimecheck and report_trainingsessions
Version 2015121900
Adding keepalive event handling
Calling the use_stats notification handler :
the notification handler allows all pages of Moodle in user agent to trigger a 10 min (adjustable) request to punch a log event in th user log track.
invoking the notification hook needs to be present on every page of Moodle, so the good way to implement it is to customize the core site renderer. Another alternative way could be to add the use_stats plug into a generic footer include in theme layouts.
class theme_customtheme_core_renderer extends theme_core_renderer {
function standard_end_of_body_html() {
global $CFG;
$str = '';
// use_stats notification plug / VF Consulting 2015-12-19
if (file_exists($CFG->dirroot.'/blocks/use_stats/lib.php')) {
include_once $CFG->dirroot.'/blocks/use_stats/lib.php';
$str .= block_use_stats_setup_theme_notification();
}
$str .= parent::standard_end_of_body_html();
return $str;
}
}
Version information
- Version build number
- 2016111100
- Version release name
- 2.8.0 (build 2016111100)
- Maturity
- Stable version
- MD5 Sum
- 80bc1872b7606a27e0e76ea0d0e39d12
- Supported software
- Moodle 2.8
- Latest release for Moodle 2.8
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- MOODLE_28_STABLE
Default installation instructions for plugins of the type Blocks
- Make sure you have all the required versions.
- Download and unpack the block folder.
- Place the folder (eg "myblock") in the "blocks" subdirectory.
- Visit http://yoursite.com/admin to complete the installation
- Turn editing on in any home or course page.
- Add the block to the page
- Visit the config link in the block for more options.