FMCorz / moodle-block_xp

A gamification plugin for Moodle allowing students to gain experience points and level up.
https://levelup.plus/?ref=github
150 stars 41 forks source link

Enable info page option in the settings #93

Closed nikidev closed 5 years ago

nikidev commented 5 years ago

Hello

While I was playing with the global settings of the plugin I found that the "Enable info page" option is not working. When I try to turn it off (untick the checkbox) the Info button is still displaying on the block. image

image

The same situation is with the ladder option.

FMCorz commented 5 years ago

Thanks for the report @nikidev. We've tested with the latest release on both themes boost and clean and the block hid the links as expected. I'm afraid you have been changing the default values, not the value for the block itself. Once the block has been added, the default values no longer have an impact and the block settings should be used. Thanks!

nikidev commented 5 years ago

Alright ! I got your point ! It works in that way. Thanks ! 👍 :)

I tried also to set moodle get_config() function for that setting in that place of the code for that checbox to make it to work as I expect. I wanted to remove Info button to all level up blocks at once. And it worked in that way too. But you probably made the settings like that because you want to take custom control on the navigation of every instance of the block on every course. :)