Installation of MReport in Moodle
To install the MRerpot on your Moodle, just install the badiunet plugin. It is a connector between Moodle and the Online Report Service Platform. The installation follows the same rules as any other plugin on the Moodle platform.
To install MRport, follow these steps:
1° Step – Download
Download the badiunet plugin code directly from git https://bitbucket.org/equipei/badiunet/src/master/. This code works for Moodle from version 2.7. For Moodle 2.0 to 2.6, some reports may not work as well, such as the log report.
When accessing git, download the code. The following image illustrates options for download.
When downloading, a compressed file similar to the one illustrated in the following image will be generated.
2° Step – Unzip the file
Unzip the downloaded file. Navigate through the created folder and subfolder and locate the list of plugin files, as shown in the following image.
Rename the root folder where the plugin files are located, the folder highlighted in the previous image, to badiunet. Once done, the structure should look like the following image illustrates.
The badiunet folder should be the root folder of the plugin files as it is the technical name of the plugin. This meets the rules of Moodle. This name is defined in the version.php file in the variable $plugin->component.
$plugin->component = 'local_badiunet';
The value local_badiunet means it is a local type plugin. The underscore (_) is the separator of the type of plugin and the technical name. local refers to local type plugins that should be installed in the folder MOODLE_DIR_INSTALL/local badiunet is the technical name. The folder with this name should contain the plugin files. Once installed, it should be located at this address MOODLE_DIR_INSTALL/local/badiunet on the server.
3° Step – Install folder/file in Moodle
Copy the badiunet folder, the root folder of the plugin files, to the folder on your Moodle server where local plugins should be. The local plugins folder is MOODLE_DIR_INSTALL/local
4° Step – Install in the system
Log in to Moodle as an administrator, click on Notices in the site administration block, as shown in the image below.
Moodle may detect a new plugin and start the installation even without clicking the notices link.
Once done, the badiunet plugin will be automatically detected. Just click the Update Moodle database button at the bottom of the screen to complete the installation, as illustrated in the following image.

5° - Access the reports
To confirm that the plugin was successfully installed, access the plugin at the following address: MOODLE_URL/local/badiunet
Once done, the service activation button will be displayed if you are accessing for the first time. In this case, activate the service. Activating the service generates a security key for communication with the service platform. Once done, the list of report options will be displayed, as shown in the image below.
If your Moodle installation is local or intranet, when accessing any report, a blank screen will be displayed after some delay. This is because the plugin does not work on offline Moodle.
To comment on this post or share any questions or suggestions, visit the post about the installation of MReport in the discussion forum of the Badiu Community

