Just wanting to share. You may view (in guest mode) the results of these mods at: Sample Moodle Course
In an effort to better hide participant names & results in moodle from guests (non-authenticated viewers), I made modifications to 2 files:
The choice acitivity was showing results to guests (only if publish full results was chosen in the settings- but this eliminates the human error possibility).
The glossary was showing participant/students names when the browse by author tab was chosen- this mod kills the ability to browse by author.
Afternote from Ken Task:
Another way to hide authors from guests in the glossary module:
In version 1.9.7+ of Moodle in /moodle/mod/glossary line 184 of view.php
case ‘author’: /// Looking for entries, browsed by author
$tab = GLOSSARY_STANDARD_VIEW;
/// above was GLOSSARY_AUTHOR_VIEW;
Suggest, for any of you that desire to try it, two things:
1. make a copy of the view file for achiving and “roll back”. (I too HIGHLY suggest this – I ALWAYS backup any files I intend to tweak since I often break things several times before “fixing them”!-bjw)
2. not to delete the code, but rather “comment it out”. Same with the code added.
If it doesn’t work for you, all one has to do is remove the commenting or add it. (this too is a great suggestion!-bjw)
3. Document your changes … a simple .txt file on the server will do, but not contained in the Moodle directory. Your documentation file won’t be replaced if doing CVS updates/upgrades, but it will if upgrading/updating the “long way” and in the Moodle directory. (I tend to take screenshots with notes of any changes I made and save those as picture files so I can look back if necessary-bjw)
More Changes Made:
In two of the possible options for the glossary, participant/student names were still showing up. My simple solution for the time being is to remove those options (and the possible human error that could occur) to prevent names from showing.
Documentation below:
The 2 options that were showing names still:
In the formats folder (under moodle/mod/glossary):
Changed the following folder names to NOWORK rather than removing them:
Options are now eliminated:





