Modify course completion

Re: Modify course completion

by Randy Thornton -
Number of replies: 0
Picture of Documentation writers

Randy

Right, city is not an option in User policies > Show user identity.  But is not that hard to change it in the code.

In /admin/settings/users.php around lines 180-190 you will see the settings for these. You can very easily just change an existing one you don't need (like phone2 or department) to city. Then it will show up in the admin page and you can check it on.

$temp->add(new admin_setting_configmulticheckbox('showuseridentity',
                new lang_string('showuseridentity', 'admin'),
                new lang_string('showuseridentity_desc', 'admin'), array('email' => 1), array(
                    'idnumber'    => new lang_string('idnumber'),
                    'email'       => new lang_string('email'),
                    'phone1'      => new lang_string('phone1'),
                    'phone2'      => new lang_string('phone2'),
                    'city'  => new lang_string('city'),
                    'institution' => new lang_string('institution'),
                )));
where I have changed 'department' to 'city'.

Of course this is a system wide setting, so city/town will start to show up in a lot of lists with user names.

- Another Randy

Attachment screenshot_2095.jpg
Average of ratings: Useful (1)