Plugin Timestat

Re: Plugin Timestat

di andrea muzzarelli -
Numero di risposte: 0

RISOLTO:

Scaricata la plugin relativa, decompressa, c'è un file readme.txt con le spiegazioni:

INSTALLATION GUIDE:
1) Install block in standard way (copy it to '/moodle/blocks' folder and
click 'Notifications' in admin panel)
2) Add following line of code at end of function standard_end_of_body_html() in file /lib/outputrenderers.php:
    require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');
so it should look like:
    public function standard_end_of_body_html() {
        global $CFG;
        (...)
        require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');
        return $output;
    }

In poche parole, andate via ftp sul vostro sito, nella cartella lib trovate il file outputrenderers.php e apritelo con un editor.

Cercate la funzione standard_end_of_body_html()

e inserite :

require_once($CFG->dirroot.'/blocks/timestat/lib/timestatlib.php');


prima del comando return.


ed ecco che timestat comincerà a loggare.


Ciao a tuttigrande sorriso