Blocks: Configurable Reports

Maintained by Picture of Juan LeyvaJuan Leyva, Picture of Sara Arjona TéllezSara Arjona Téllez
This block is a Moodle custom reports builder. You can create custom reports without SQL knowledge. It's a tool suitable for admins or teachers.
10582 sites
324 fans
Current versions available: 5

This block is a Moodle custom reports builder.

You can create custom reports without SQL knowledge. It's a tool suitable for admins or teachers.

What type of reports can I create?

- Courses reports, with information regarding courses.

- Categories reports, with information regarding categories. A courses report can be embedded in this type of report.

- Users reports, with information regarding users and their activity in a course.

- Timeline reports, this is a special type of report that displays a timeline. A course or user report can be embedded in this timeline showing data depending on the start and end time of the current row.

- Custom SQL Reports, custom SQL queries. This block can use the same SQL queries that Tim Hunt's Custom SQL queries plugin.

Note for developers: You can create your own type of reports.

Who can view the reports?

When you create a report you can select which users can view it.
Links to reports are displayed in a block in the course or site frontpage.

Advanced features

Filters, pagination, logic conditions and permissions, plots, templates support, export to xls .

Request for new report types and plugins are welcome, please use the link "Bugs and issues" at the right.


Screenshot #0


Picture of Juan Leyva
Juan Leyva (Lead maintainer)
Picture of Sara Arjona Téllez
Sara Arjona Téllez: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Yegor Grishko
    Thu, Jun 15, 2017, 4:49 PM

    Any news on version for Moodle 3.3? Tried installing and it does not work, does anyone have a workaround maybe? Thank you!
  • Ben Haensel
    Thu, Jun 15, 2017, 11:56 PM
    Does anyone have any documentation on setting up the configurable reports plugin to a remote DB? My Moodle 3.1 is running MySQL and I'm attempting to connect to another DB in our hosted environment that is running SQL Server 2008.
  • Picture of Julie Gray
    Tue, Jun 20, 2017, 10:59 PM
    Hi there,
    Any news for moodle 3.2?
  • Picture of Michael Woods
    Wed, Jun 21, 2017, 7:25 AM
    Hi all, I've been using this plugin in Moodle version 3.2 for the past 6 months, and all good so far. In the version.php, it is release 3.1.1 and version 2016020103.
  • Picture of Yegor Grishko
    Wed, Jun 21, 2017, 12:19 PM
    Hello Michael, what version of php are you using?
  • Picture of deva m
    Wed, Jun 21, 2017, 1:03 PM
    Hi Juan Leyva,
    what about viewing report in hierarchy(Organisation) basis , whether this scenario is achievable or not ?
  • Picture of Michael Woods
    Wed, Jun 21, 2017, 2:00 PM
    Hi Yegor, we are using php 7 on Ubuntu 16 LTS.
  • Picture of Yegor Grishko
    Wed, Jun 21, 2017, 4:40 PM
    Im having issues installing it on 3.3, running php 7 and Ubuntu 16 lts. Surprised it is working for you in 3.2. I will have to try then.
  • Picture of Chris Khoo
    Sat, Jul 1, 2017, 8:17 PM
    I am using Moodle 3.3 (Build: 20170515).

    I am getting this error. Is it because my Moodle version is not supported?

    Validating block_configurable_reports ... Error
    [Error] Write access check [/opt/bitnami/apps/moodle/htdocs/blocks]
    Installation aborted due to validation failure
  • Picture of Brandon Jimenez
    Wed, Jul 5, 2017, 3:46 AM
    Hello Juan

    i keep have a strange error while using your plug (Moodle 2.9.9...):

    I'm trying to create a template using the documentation you have provided for your plug, but my editor (atto) keeps adding some additional tags so i can't complete the new template as i would like to. I realise this is not 100% your plugin's fault, but, in short, is there any workaround from the settings of your plug to allow using the template as defined in the tutorial?

  • Ben Haensel
    Wed, Jul 19, 2017, 10:57 PM
    Has anyone used a variable in the URL string of the report in a SQL query? It would be great to pass the userid in a url string from one report to link to another report where that userid is used as a variable in the query. If you have (or could conceive how to do this), please share!

    Also, is it possible when using the search text filter to have no results initially before applying a filter? Thanks for any feedback! -Ben
  • Picture of Leon Vincent
    Tue, Jul 25, 2017, 3:39 AM
    Guys, when click on the 'Manage Reports' link, I'm getting a 403. I would appreciate some areas to look at. Permissions on files/folders look ok at a high level.

  • Picture of Martin Greenaway
    Tue, Jul 25, 2017, 4:42 PM
    @Leon, the folder in question is the blocks/configurable_reports folder under your Moodle web directory. Check that the files in there are readable. Also check the directory itself is readable. You might need to change the ownership and permissions of the files/folders in the directory so that they are owned by the same user:group as the rest of your Moodle install.
  • Picture of Leon Vincent
    Thu, Jul 27, 2017, 3:37 AM
    @Martin Greenway, that's the trick! chmod 755. Thanks for you help.
  • Picture of Ken Farrimond
    Fri, Aug 4, 2017, 4:30 PM
    @Ben We spent quite some time working out how to pull a variable from the url. It is quite easy to put a filter variable into the url for use in the sql, eg


    you can then have a "where" statement that uses it eg

    where"%%FILTER_VAR%%" /* dangerous code don't do this!! */

    The problem is that this opens up big vulnerabilities for code injection allowing people to access anything in the database. What we did is use the filter variable in the sql in a way that prevents code being injected by limiting what will be read to a number of less than 6 digits eg

    where"%%FILTER_VAR%%") >=1, if(length("%%FILTER_VAR%%") <6,cast("%%FILTER_VAR%%" As Decimal),1), 1)))

    We think this is hack proof, if you can see issues with it then do let me know.

Please login to post comments