Ranking block
Certified Partner Plugin
Maintained by
Willian Araujo
A ranking block to improve the gamification into the course.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
The rating system monitor only activities marked in moodle course completion.
Fatal error: Can't use function return value in write context in /home/ovasyste/public_html/pruebamoodle/moodleprueba/blocks/ranking/block_ranking.php on line 47
Could you help me with this? I'm so intereting to use this block. it's very powerful for my sites.
Thank for your answer
http://docs.moodle.org/dev/Plugin_documentation
For both the Moodle Tracker and Moodle Docs you will need to create an account. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony
$settings->add(new admin_setting_configtext('block_ranking_rankingsize', get_string('rankingsize', 'block_ranking'),
get_string('rankingsize_help', 'block_ranking'), 10, PARAM_INT));
$settings->add(new admin_setting_configtext('block_ranking/rankingsize', get_string('rankingsize', 'block_ranking'),
get_string('rankingsize_help', 'block_ranking'), 10, PARAM_INT));
It will mean having to create your own variable for those settings but helps to prevent bloating of $CFG
For example instead of using:
$CFG->block_ranking_rankingsize
You would at the beginning of the script create
$cfg_ranking = get_config('block_ranking');
and then use $cfg_ranking->rankingsize instead.
Also, please review http://docs.moodle.org/dev/Plugin_validation#Recommended_URLs and provide the source, tracker, and documentation URLs. For now, I am going to mark this plugin as needing more work but once you have addressed these issues please upload the revised version and then schedule the plugin to be reviewed again.
Feel free to use the comments here for any discussion or if you have any questions. Peace -Anthony