Your Moodle version

Blocks: Ranking block

Maintained by Picture of Willian Mano Willian Mano
A ranking block to improve the gamification into the course.
Moodle 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9

Moodle Ranking block repository


If you like the block ranking please donate, help me to have more time to continue working on this project. This block is and will remain free, but your donation allows me to continue the development, and any amount is greatly appreciated.

Imagem com link para doação

This block improves gamefication into the moodle plataform.

This new version is more simpler and easy to use, but, with more visual.

The plugin works listening moodle events, so now, the points are added in real time.

The ranking works with the activity completion tracking, so you need to enable that and configure the criterias for all activities you want to monitor. The plugin only add points to activities with completion criterias. The method to add points remains the same.

There are different ways to gain points.

For example:

  • If a student completes a html page the ranking adds 2 points.
  • If a student completes an assignment and it is ended only when the student receive a grade. The ranking add 2 points plus the grade points to the student. You can configure the default points in the block configuraion.

NOTE: All the activities that needs grade to be finished will add the activity points (default 2) more the activity grade. For example: If the course has one assignment and it's configured to be completed only after the grade is received by the student and let's say a random student received by the end of the assignment 10(ten) as his grade. In this case that student will obtain 12(twelve) points, the 2(two pre-configured) from finishing the activity plus 10(ten) from his grade.

This only occurs with activities that have grades. ex: foruns, assignments, lessons, etc...

Update Notes

  • Added event listeners to add point
  • Removed cron dependency
  • Added a weekly ranking
  • Added a monthly ranking
  • Added a tiny report with top 100 students in general ranking
  • Added filter the tiny report by groups (the course group mode needs to be "separeted groups" or "visible groups")
  • Now you don't need configure the course completion tracking, only the activities completion criterias. Again, the plugin only monitors the activities with completion criteria
  • The table ranking_cmc_mirror was removed.


First way

  • Clone this repository into the folder blocks.
  • Access the notification area in moodle and install

Second way

  • Download this repository
  • Extract the content
  • Put the folder into the folder blocks of your moodle
  • Access the notification area in moodle and install

Post instalation

After you have installed the block you just add it into the moodle course.

The ranking block works together with the activity completion, so you need to enable that and configure the criterias for all activities you want to monitor. The ranking block monitors these activities and add points to the students based on accomplishing the activities.

Enabling completion tracking

  • Go to: Site administration / Advanced features
  • Turn on the item "Enable completion tracking"
  • Inside the course go to: Course administration / Edit settings
  • In the section Completion tracking set "Completion tracking" to yes
  • Save


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4


Picture of Willian Mano
Willian Mano (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Emilio Lozano
    Fri, Dec 18, 2015, 6:34 PM
    Hi William,

    First of all, thank you for maintaining this great plugin. Please, could you update plugin info with the latest changelog? I'm talking about September 18th release (today).
  • Picture of Willian Mano
    Fri, Dec 18, 2015, 9:22 PM
    Emiliom, did you want to say december 18th. right? I will update the changelog. For that release in specific i've only tested the plugin on moodle 3 and validate it. No errors were found.
  • Picture of Willian Mano
    Fri, Dec 18, 2015, 9:27 PM
    phuong hoang, You can add the block in each course. The points are separated.
  • Picture of Willian Mano
    Fri, Dec 18, 2015, 9:28 PM
    Ray O'Brien, that was a very interesting idea, and i am thinking about how to implement that. thanks
  • Picture of Sonia Pichardo
    Tue, Jan 12, 2016, 3:34 AM
    Hi Willian I've installed and reinstalled twice. My moodle version is 3.0, my server works with database Mysql version 5.0.10 and PHP version 5.4.25. My cronjob is running. I see the plugin in the plugin overview. Which page would the ranking block be shown? Dashboard, courses, site home, etc. It does not show up as a block to add in the drop down menu. Any advice?
  • Picture of Willian Mano
    Thu, Jan 21, 2016, 6:08 AM
    Hey sonia. The newest version dont need the cron and the ranking is showed in the course page.
  • Picture of Christian Dela Cruz
    Tue, Jan 26, 2016, 2:40 PM
    Hello William. Thanks for the very nice plugins, but unfortunately I have some issue with it. Whenever a student finishes a quiz the ranking does not update the score of the students, the score of my students is always 0. What could be the problem here?
    My moodle version is 3.0, then I already followed the steps on Enabling completion tracking. And I did not change the score settings of the ranking block.
  • Picture of Tarek Raslan
    Sat, Feb 6, 2016, 1:16 AM
    This is an excellent plugin and thanks for it so much,
    I just would like to raise the same request in a previous request as below

    Ray O'BrienThu, Nov 5, 2015, 5:19 AM
    Hi, Looks like a great plug-in. Thanks for this and all of the follow up. I was wondering if there is any plug-in that would show a team's aggregate points in a leader board. So rather than individual grades and points placing one person at top of the class (or the bottomsad ) a team could be working together to beat another team. This could still have the motivation of gamification but not the negative of reinforcing the negative experiences.
  • Picture of michell mejia
    Thu, Mar 3, 2016, 1:03 AM
    can i add MANUAL POINTS?
  • Picture of Willian Mano
    Thu, Mar 3, 2016, 1:31 AM
    You can do everything if you had access to the database. Its the only way to add points manually.
  • Picture of Carla Oliveira
    Sun, Apr 3, 2016, 12:34 AM
    Hey Willian, I have moodle 3.0 here and I've just downloaded the last version but with a problem. When I add the block of the rank and when I click "see full rank" I get a page not found message. Do you have any idea about it? Could you help me with any tip? Thanks in advance, Carla
  • Picture of Willian Mano
    Thu, Apr 7, 2016, 9:29 PM
    Hey carla, I tested the plugin in moodle 3.0 with mysql and postgres and no errors appears... What is your environment config?
  • time!
    Fri, Apr 29, 2016, 4:14 PM
    Hi, I am running moodle 2.6 and can not get the ranking board to display any scores. I notice some other people with moodle 2.6 also had the same issue. Is there a simple solution?

    And on a different note - I think this is an awesome block.
  • Picture of Dirceu Duarte
    Tue, May 24, 2016, 8:29 PM
    William, tudo bem? Belo plugin! Tenho uma dúvida na atribuição de pontos na atividade quiz, no bloco ranking:
    Optei pela pontuação na primeira tentativa e os resultados foram confusos para mim, veja:
    A sequencia é de notas do quiz seguido de notas que imagino que o ranking atribuiu (12/1.2 - 10,5/1.1 - 13,5/1.4 - 9/9 - 15/1.5) então as notas do ranking ficaram assim (3.2 - 3.1 - 3.4 - 12 - 3.5) Como podemos corrigir isso? Usou o Moodle 3.0 e a última versão do seu bloco.
  • Picture of Nick Varney
    Tue, Jun 21, 2016, 9:14 PM
    Hi William, awesome plugin.
    I wish to display the full name in the block (First name + Surname). Is that possible for us to do, perhaps with a small change to the code?
    Many thanks!
1 2 3 4 5 6
Please login to post comments