Jan Derriks

Results comments of Jan Derriks

fix: https://github.com/chamilo/chamilo-lms/pull/1902/commits/217f44a9a920883661933fadc66a3edfde0e3a29

I see that the notify-change-options are available to the admin when editing a user profile but I cannot find where to enable these fields for the users. The ..chamilo/main/auth/profile.php for...

Found it! And an enhancement would be that the user can see the **current** settings when he tries to edit these fields in his profile. I made the fields visible...

And some coding bugs in the parsing of the configuration variable in api.lib.php: // Check if variable exists if (isset($_configuration[$variable])) { if (is_array($_configuration[$variable])) { // Check if it exists for...

And another bug in user.php: $table->set_header($header_nr++, get_lang('OfficialCode')); $indexList['official_code'] = $header_nr; if ($is_western_name_order) { $indexList['firstname'] = $header_nr; So index firstname and official_code both get header number 3. That's wrong. Are there...

Almost fixed. Try this for a test: $_configuration['hide_user_field_from_list'] = ['username', 'official_code']; and it fails because array index 1 is now set (api.lib.php function api_get_configuration_value)

Maybe I have the wrong git repo but the indexList for the hide fields has a duplicate index 3 for Firstname and officialcode:

This means that subscribing to a course is a fake action. If you have the link to a course and you want to stay "hidden" as a student, just follow...

Nice! Also useful info to put in the manual.

Fix it by adding the dash to the allowed USERNAME_PURIFIER regex in main/inc/lib/api.lib.php define('USERNAME_PURIFIER', '/[^0-9A-Za-z_\.\-]/'); // added \- to allow dash in usernames