1 | <?php |
||
2 | // Chamilo version {NEW_VERSION} |
||
3 | // File generated by /install/index.php script - {DATE_GENERATED} |
||
4 | /* For licensing terms, see /license.txt */ |
||
5 | /** |
||
6 | * This file contains a list of variables that can be modified by the campus site's server administrator. |
||
7 | * Pay attention when changing these variables, some changes may cause Chamilo to stop working. |
||
8 | * If you changed some settings and want to restore them, please have a look at |
||
9 | * configuration.dist.php. That file is an exact copy of the config file at install time. |
||
10 | * Besides the $_configuration, a $_settings array also exists, that |
||
11 | * contains variables that can be changed and will not break the platform. |
||
12 | * These optional settings are defined in the database, now |
||
13 | * (table settings_current). |
||
14 | */ |
||
15 | |||
16 | // Database connection settings. |
||
17 | $_configuration['db_host'] = '{DATABASE_HOST}'; |
||
18 | $_configuration['db_port'] = '{DATABASE_PORT}'; |
||
19 | $_configuration['main_database'] = '{DATABASE_MAIN}'; |
||
20 | $_configuration['db_user'] = '{DATABASE_USER}'; |
||
21 | $_configuration['db_password'] = '{DATABASE_PASSWORD}'; |
||
22 | |||
23 | /** |
||
24 | * Directory settings. |
||
25 | */ |
||
26 | // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/ |
||
27 | $_configuration['root_web'] = '{ROOT_WEB}'; |
||
28 | // Path to the webroot of system, example: /var/www/ |
||
29 | $_configuration['root_sys'] = '{ROOT_SYS}'; |
||
30 | // Path from your WWW-root to the root of your Chamilo installation, |
||
31 | // example: chamilo (this means chamilo is installed in /var/www/chamilo/ |
||
32 | $_configuration['url_append'] = '{URL_APPEND_PATH}'; |
||
33 | |||
34 | /** |
||
35 | * Login modules settings. |
||
36 | */ |
||
37 | // CAS IMPLEMENTATION |
||
38 | // -> Go to your portal Chamilo > Administration > CAS to activate CAS |
||
39 | // You can leave these lines uncommented even if you don't use CAS authentification |
||
40 | //$extAuthSource["cas"]["login"] = $_configuration['root_sys']."main/auth/cas/login.php"; |
||
41 | //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys']."main/auth/cas/newUser.php"; |
||
42 | |||
43 | // Map CAS attributes with user/user extrafields values BT#17620 |
||
44 | /*$_configuration['cas_user_map'] = [ |
||
45 | 'fields' => [ |
||
46 | 'email' => 'mail', |
||
47 | 'firstname' => 'cn', |
||
48 | 'lastname' => 'sn', |
||
49 | 'active' => 'disabled', |
||
50 | 'status' => 'role', |
||
51 | ], |
||
52 | 'extra' => [ |
||
53 | 'isFromNewLogin', |
||
54 | 'authenticationDate', |
||
55 | 'successfulAuthenticationHandlers', |
||
56 | 'created_by', |
||
57 | 'credentialType', |
||
58 | 'uid', |
||
59 | 'authenticationMethod', |
||
60 | 'longTermAuthenticationRequestTokenUsed', |
||
61 | ], |
||
62 | 'replace' => [ |
||
63 | 'role' => [ |
||
64 | 'STUDENT' => 5, |
||
65 | 'GUEST' => 5, |
||
66 | 'HEI_COORD' => 1, |
||
67 | 'SCHOOL_COORD' => 1, |
||
68 | 'HEI_TUTOR' => 1, |
||
69 | 'SCHOOL_TUTOR' => 1, |
||
70 | 'ADMIN' => 11, |
||
71 | ], |
||
72 | ], |
||
73 | ];*/ |
||
74 | |||
75 | // NEW LDAP IMPLEMENTATION BASED ON external_login info |
||
76 | // -> Uncomment the two lines bellow to activate LDAP AND edit app/config/auth.conf.php for configuration |
||
77 | // $extAuthSource["extldap"]["login"] = $_configuration['root_sys']."main/auth/external_login/login.ldap.php"; |
||
78 | // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.ldap.php"; |
||
79 | // |
||
80 | // FACEBOOK IMPLEMENTATION BASED ON external_login info |
||
81 | // -> Uncomment the line bellow to activate Facebook Auth AND edit app/config/auth.conf.php for configuration |
||
82 | // $_configuration['facebook_auth'] = 1; |
||
83 | // |
||
84 | // OTHER EXTERNAL LOGIN INFORMATION |
||
85 | // To fetch external login information, uncomment those 2 lines and modify the following files: auth/external_login/newUser.php and auth/external_login/updateUser.php |
||
86 | // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.php"; |
||
87 | // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys']."main/auth/external_login/updateUser.php"; |
||
88 | |||
89 | /** |
||
90 | * Hosting settings - Allows you to set limits to the Chamilo portal when |
||
91 | * hosting it for a third party. These settings can be overwritten by an |
||
92 | * optionally-loaded extension file with only the settings (no comments). |
||
93 | * The settings use an index at the first level to represent the ID of the |
||
94 | * URL in case you use multi-url (otherwise it will always use 1, which is |
||
95 | * the ID of the only URL inside the access_url table). |
||
96 | */ |
||
97 | // Set a maximum number of users. Default (0) = no limit |
||
98 | $_configuration[1]['hosting_limit_users'] = 0; |
||
99 | // Set a maximum number of teachers. Default (0) = no limit |
||
100 | $_configuration[1]['hosting_limit_teachers'] = 0; |
||
101 | // Set a maximum number of courses. Default (0) = no limit |
||
102 | $_configuration[1]['hosting_limit_courses'] = 0; |
||
103 | // Set a maximum number of sessions. Default (0) = no limit |
||
104 | $_configuration[1]['hosting_limit_sessions'] = 0; |
||
105 | // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc) |
||
106 | // Default (0) = no limit |
||
107 | $_configuration[1]['hosting_limit_disk_space'] = 0; |
||
108 | // Set a maximum number of usable courses. Default (0) = no limit. |
||
109 | // Should always be lower than the hosting_limit_courses. |
||
110 | // If set, defining a course as "hidden" will free room for |
||
111 | // new courses (up to the hosting_limit_courses, if any value is set there). |
||
112 | // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden. |
||
113 | $_configuration[1]['hosting_limit_active_courses'] = 0; |
||
114 | // Email to warn if limit was reached. |
||
115 | //$_configuration[1]['hosting_contact_mail'] = '[email protected]'; |
||
116 | // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc). |
||
117 | // Check main/cron/hosting_total_size_limit.php for how to use this limit. |
||
118 | $_configuration['hosting_total_size_limit'] = 0; |
||
119 | |||
120 | /** |
||
121 | * Content Delivery Network (CDN) settings. Only use if you need a separate |
||
122 | * server to serve your static data. If you don't know what a CDN is, you |
||
123 | * don't need it. These settings are for simple Origin Pull CDNs and are |
||
124 | * experimental. Enable only if you really know what you're doing. |
||
125 | * This might conflict with multiple-access urls. |
||
126 | * Please note that recent browsers forbid the loading of resources from |
||
127 | * a different portal URL then where they are, due to CORS rules. |
||
128 | * To allow for CDN usage with different URLs, you need to specifically |
||
129 | * allow CORS Access-Control-Allow-Origin for your main Chamilo URL. |
||
130 | * This has to be done at the web server level, because Chamilo's PHP code |
||
131 | * doesn't change HTTP headers of all files served from the Chamilo directory. |
||
132 | * To do that on Apache, use |
||
133 | * Header set Access-Control-Allow-Origin "http(s)://main-chamilo-url" |
||
134 | * in Nginx: |
||
135 | * add_header 'Access-Control-Allow-Origin' 'http(s)://main-chamilo-url';. |
||
136 | */ |
||
137 | // Set the following setting to true to start using the CDN |
||
138 | $_configuration['cdn_enable'] = false; |
||
139 | // The following setting will be ignored if the previous one is set to false |
||
140 | $_configuration['cdn'] = [ |
||
141 | // You can define several CDNs and split them by extensions |
||
142 | // Replace the following by your full CDN URL, which should point to |
||
143 | // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work) |
||
144 | 'http://cdn.chamilo.org' => [ |
||
145 | '.css', |
||
146 | '.js', |
||
147 | '.jpg', |
||
148 | '.jpeg', |
||
149 | '.png', |
||
150 | '.gif', |
||
151 | '.avi', |
||
152 | '.flv', |
||
153 | ], |
||
154 | // copy the line above and modify following your needs |
||
155 | ]; |
||
156 | |||
157 | /** |
||
158 | * Misc. settings. |
||
159 | */ |
||
160 | // Security word for password recovery |
||
161 | $_configuration['security_key'] = '{SECURITY_KEY}'; |
||
162 | // Hash function method |
||
163 | $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}'; |
||
164 | // Set to true to allow automated password conversion after login if |
||
165 | // password_encryption has changed since last login. See GH#4063 for details. |
||
166 | //$_configuration['password_conversion'] = false; |
||
167 | // You may have to restart your web server if you change this |
||
168 | $_configuration['session_stored_in_db'] = false; |
||
169 | // Session lifetime |
||
170 | $_configuration['session_lifetime'] = SESSION_LIFETIME; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
171 | // Activation for multi-url access |
||
172 | // When enabling multi-url, settings can be configured by multi-url using a simple |
||
173 | // sub-element. E.g. $_configuration['session_lifetime'][1] = true; could be turned into |
||
174 | // something like $_configuration['session_lifetime'][2] = false; to affect only URL |
||
175 | // with ID 2. The ID can be found in the access_url table. |
||
176 | //$_configuration['multiple_access_urls'] = true; |
||
177 | $_configuration['software_name'] = 'Chamilo'; |
||
178 | $_configuration['software_url'] = 'https://chamilo.org/'; |
||
179 | // Deny the elimination of users |
||
180 | $_configuration['deny_delete_users'] = false; |
||
181 | // Version settings |
||
182 | $_configuration['system_version'] = '{NEW_VERSION}'; |
||
183 | $_configuration['system_stable'] = NEW_VERSION_STABLE; |
||
0 ignored issues
–
show
|
|||
184 | |||
185 | /** |
||
186 | * Settings to be included as settings_current in future versions. |
||
187 | */ |
||
188 | // Uncomment the following to prevent all admins to use the "login as" feature |
||
189 | //$_configuration['login_as_forbidden_globally'] = true; |
||
190 | // If session_stored_in_db is false, an alternative session storage mechanism |
||
191 | // can be used, which allows for a volatile storage in Memcache, and a more |
||
192 | // permanent "backup" storage in the database, every once in a while (see |
||
193 | // frequency). This is generally used in HA clusters configurations |
||
194 | // This requires memcache or memcached and the php5-memcache module to be setup |
||
195 | //$_configuration['session_stored_in_db_as_backup'] = true; |
||
196 | // Define the different memcache servers available |
||
197 | //$_configuration['memcache_server'] = array( |
||
198 | // 0 => array( |
||
199 | // 'host' => 'chamilo8', |
||
200 | // 'port' => '11211', |
||
201 | // ), |
||
202 | // 1 => array( |
||
203 | // 'host' => 'chamilo9', |
||
204 | // 'port' => '11211', |
||
205 | // ), |
||
206 | //); |
||
207 | // Define the frequency to which the data must be stored in the database |
||
208 | //$_configuration['session_stored_after_n_times'] = 10; |
||
209 | // If the database is down this css style will be used to show the errors. |
||
210 | //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme) |
||
211 | // The default template that will be use in the system. |
||
212 | //$_configuration['default_template'] = 'default'; // (main/template/default) |
||
213 | // Hide fields in the main/user/user.php page |
||
214 | //$_configuration['hide_user_field_from_list'] = ['fields' => ['username']]; |
||
215 | // Aspell Settings |
||
216 | //$_configuration['aspell_bin'] = '/usr/bin/hunspell'; |
||
217 | //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8'; |
||
218 | //$_configuration['aspell_temp_dir'] = './'; |
||
219 | // Custom name_order_conventions |
||
220 | //$_configuration['name_order_conventions'] = array( |
||
221 | // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name') |
||
222 | //); |
||
223 | // Course log - Default columns to hide |
||
224 | //$_configuration['course_log_hide_columns'] = ['columns' => [1, 9]]; |
||
225 | // Course log - User extra fields to show as columns for default |
||
226 | //$_configuration['course_log_default_extra_fields'] = ['extra_fields' => ['office_address', 'office_phone_extension']]; |
||
227 | // Unoconv binary file |
||
228 | //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv'; |
||
229 | // Proxy settings for access external services |
||
230 | /*$_configuration['proxy_settings'] = [ |
||
231 | 'stream_context_create' => [ |
||
232 | 'http' => [ |
||
233 | 'proxy' => 'tcp://example.com:8080', |
||
234 | 'request_fulluri' => true |
||
235 | ] |
||
236 | ], |
||
237 | 'curl_setopt_array' => [ |
||
238 | 'CURLOPT_PROXY' => 'http://example.com', |
||
239 | 'CURLOPT_PROXYPORT' => '8080' |
||
240 | ] |
||
241 | ];*/ |
||
242 | |||
243 | // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php |
||
244 | //$_configuration['cron_notification_mails'] = array('[email protected]', '[email protected]'); |
||
245 | |||
246 | // Help desk emails that will recieve email notifications in import_csv.php |
||
247 | //$_configuration['cron_notification_help_desk'] = array('[email protected]', '[email protected]'); |
||
248 | |||
249 | // Only shows the fields in this list |
||
250 | /*$_configuration['allow_fields_inscription'] = [ |
||
251 | 'fields' => [ |
||
252 | 'official_code', |
||
253 | 'phone', |
||
254 | 'status', |
||
255 | 'language' |
||
256 | ], |
||
257 | 'extra_fields' => [ |
||
258 | 'birthday' |
||
259 | ] |
||
260 | ];*/ |
||
261 | // Boost option to ignore encoding check for learning paths |
||
262 | //$_configuration['lp_fixed_encoding'] = 'false'; |
||
263 | // Fix urls changing http with https in scorm packages. |
||
264 | //$_configuration['lp_replace_http_to_https'] = false; |
||
265 | // Fix embedded videos inside lps, adding an optional popup |
||
266 | //$_configuration['lp_fix_embed_content'] = false; |
||
267 | // Check the prerequisite in lp of a quiz to use only the last score in the attempts |
||
268 | // $_configuration['lp_prerequisite_use_last_attempt_only'] = false; |
||
269 | // Manage deleted files marked with "DELETED" (by course and only by allowed by admin) |
||
270 | //$_configuration['document_manage_deleted_files'] = false; |
||
271 | // Hide tabs in the main/session/index.php page |
||
272 | //$_configuration['session_hide_tab_list'] = array(); |
||
273 | // Show invisible exercise in LP list |
||
274 | //$_configuration['show_invisible_exercise_in_lp_list'] = false; |
||
275 | // Chamilo is installed/downloaded. Packagers can change this |
||
276 | // to reflect their packaging method. The default value is 'chamilo'. This will |
||
277 | // be reflected on the https://version.chamilo.org/stats page in the future. |
||
278 | //$_configuration['packager'] = 'chamilo'; |
||
279 | // If true exercises added in LP can be modified. |
||
280 | //$_configuration['force_edit_exercise_in_lp'] = false; |
||
281 | // List of driver to plugin in ckeditor |
||
282 | //$_configuration['editor_driver_list'] = ['PersonalDriver', 'CourseDriver']; |
||
283 | // Hide send to hrm users options in announcements |
||
284 | //$_configuration['announcements_hide_send_to_hrm_users'] = true; |
||
285 | // Hide certificate link in index/userportal pages |
||
286 | //$_configuration['hide_my_certificate_link'] = false; |
||
287 | // Hide header and footer in certificate pdf |
||
288 | //$_configuration['hide_header_footer_in_certificate'] = false; |
||
289 | // Security: block direct access from logged in users to contents in OPEN (but not public) courses. Set to true to block |
||
290 | //$_configuration['block_registered_users_access_to_open_course_contents'] = false; |
||
291 | // Allows syncing the database with the current entity schema |
||
292 | //$_configuration['sync_db_with_schema'] = false; |
||
293 | // When exporting a LP, all files and folders in the same path of an html will be exported too. |
||
294 | //$_configuration['add_all_files_in_lp_export'] = false; |
||
295 | // Send exercise student score to manager in email notification |
||
296 | //$_configuration['send_score_in_exam_notification_mail_to_manager'] = false; |
||
297 | // Show blocked LPs by prerequisite to students |
||
298 | //$_configuration['show_prerequisite_as_blocked'] = false; |
||
299 | // Mail header extra HTML attributes |
||
300 | //$_configuration['mail_header_style'] = ''; |
||
301 | // Mail body extra HTML attributes |
||
302 | //$_configuration['mail_content_style'] = ''; |
||
303 | // Show all agenda events in personal agenda from all session no matter the visibility. |
||
304 | //$_configuration['personal_agenda_show_all_session_events'] = false; |
||
305 | // Allows to redirect to the session after the inscription in session about |
||
306 | // $_configuration['allow_redirect_to_session_after_inscription_about'] = false; |
||
307 | // Allows to do a remove_XSS in course introduction with user status COURSEMANAGERLOWSECURITY |
||
308 | // in order to accept all embed type videos (like vimeo, wistia, etc) |
||
309 | // $_configuration['course_introduction_html_strict_filtering'] = true; |
||
310 | // Allows to do a remove_XSS in question of exersice with user status COURSEMANAGERLOWSECURITY |
||
311 | // $_configuration['question_exercise_html_strict_filtering'] = true; |
||
312 | // Allows to do a remove_XSS in exersice result end text with user status COURSEMANAGERLOWSECURITY |
||
313 | // $_configuration['exercise_result_end_text_html_strict_filtering'] = true; |
||
314 | // Allows to do a remove_XSS in wiki pages with user status COURSEMANAGERLOWSECURITY |
||
315 | // $_configuration['wiki_html_strict_filtering'] = true; |
||
316 | // Prevents the duplicate upload in assignments |
||
317 | // $_configuration['assignment_prevent_duplicate_upload'] = false; |
||
318 | //Show student progress in My courses page |
||
319 | //$_configuration['course_student_info']['score'] = false; |
||
320 | //$_configuration['course_student_info']['progress'] = false; |
||
321 | //$_configuration['course_student_info']['certificate'] = false; |
||
322 | // Set ConsideredWorkingTime work extra field variable to show in MyStudents page works report |
||
323 | // (with internal id 'work_time' as below) and enable the following line to show in MyStudents page works report |
||
324 | // $_configuration['considered_working_time'] = 'work_time'; |
||
325 | // Allow add/remove working time in reporting page |
||
326 | // $_configuration['allow_working_time_edition'] = false; |
||
327 | // During CSV special imports update users emails to [email protected] |
||
328 | // $_configuration['update_users_email_to_dummy_except_admins'] = false; |
||
329 | // Certification pdf export orientation |
||
330 | // $_configuration['certificate_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape' |
||
331 | // Hide main navigation menu (left column in userportal) |
||
332 | // $_configuration['hide_main_navigation_menu'] = false; |
||
333 | // PDF image dpi value. Default value 96 |
||
334 | // $_configuration['pdf_img_dpi'] = 96; |
||
335 | // Hide LP time in reports. |
||
336 | // $_configuration['hide_lp_time'] = false; |
||
337 | // Hide rating elements in pages ("Courses catalog" & "Most Popular courses") |
||
338 | // $_configuration['hide_course_rating'] = false; |
||
339 | // Customize password generation and verification |
||
340 | // For this configuration to be taken into account you need to set define('CHECK_PASS_EASY_TO_FIND', true); in app/config/profile.conf.php |
||
341 | /*$_configuration['password_requirements'] = [ |
||
342 | 'min' => [ |
||
343 | 'lowercase' => 2, |
||
344 | 'uppercase' => 2, |
||
345 | 'numeric' => 2, |
||
346 | 'length' => 8, |
||
347 | 'specials' => 1, |
||
348 | ], |
||
349 | 'force_different_password' => false, |
||
350 | ];*/ |
||
351 | // Customize course session tracking columns |
||
352 | /* |
||
353 | $_configuration['tracking_columns'] = [ |
||
354 | 'course_session' => [ |
||
355 | 'course_title' => true, |
||
356 | 'published_exercises' => true, |
||
357 | 'new_exercises' => true, |
||
358 | 'my_average' => true, |
||
359 | 'average_exercise_result' => true, |
||
360 | 'time_spent' => true, |
||
361 | 'lp_progress' => true, |
||
362 | 'score' => true, |
||
363 | 'best_score' => true, |
||
364 | 'last_connection' => true, |
||
365 | 'details' => true, |
||
366 | ], |
||
367 | 'my_students_lp' => [ |
||
368 | 'lp' => true, |
||
369 | 'time' => true, |
||
370 | 'best_score' => true, |
||
371 | 'latest_attempt_avg_score' => true, |
||
372 | 'progress' => true, |
||
373 | 'last_connection' => true, |
||
374 | ], |
||
375 | 'my_progress_lp' => [ |
||
376 | 'lp' => true, |
||
377 | 'time' => true, |
||
378 | 'progress' => true, |
||
379 | 'score' => true, |
||
380 | 'best_score' => true, |
||
381 | 'last_connection' => true, |
||
382 | ], |
||
383 | 'my_progress_courses' => [ |
||
384 | 'course_title' => true, |
||
385 | 'time_spent' => true, |
||
386 | 'progress' => true, |
||
387 | 'best_score_in_lp' => true, |
||
388 | 'best_score_not_in_lp' => true, |
||
389 | 'latest_login' => true, |
||
390 | 'details' => true |
||
391 | ] |
||
392 | ]; |
||
393 | */ |
||
394 | // Add column "Unlocked" in student LPs table to display info about a lp subscription |
||
395 | //$_configuration['student_follow_page_add_LP_subscription_info'] = false; |
||
396 | // Add column "Acquisition" in student LPs table to display info about a lo adquisition. Requires DB changes: |
||
397 | /* |
||
398 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES |
||
399 | (20, 3, 'acquisition', 'Acquisition', '', 0, 1, 0, 0, 0, NOW()); |
||
400 | SET @ef_id = LAST_INSERT_ID(); |
||
401 | INSERT INTO extra_field_options (field_id, option_value, display_text, priority, priority_message, option_order) VALUES |
||
402 | (@ef_id, '1', 'Acquired', NULL, NULL, 1), |
||
403 | (@ef_id, '2', 'In the process of acquisition', NULL, NULL, 2), |
||
404 | (@ef_id, '3', 'Not acquired', NULL, NULL, 3); |
||
405 | |||
406 | */ |
||
407 | //$_configuration['student_follow_page_add_LP_acquisition_info'] = false; |
||
408 | // Prepend a column in student LPs table to display a checkbox to select the LP category and its LPs. Requires DB changes: |
||
409 | /* |
||
410 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES |
||
411 | (20, 13, 'invisible', 'Invisible', '', 0, 1, 0, 0, 0, NOW()); |
||
412 | */ |
||
413 | //$_configuration['student_follow_page_add_LP_invisible_checkbox'] = false; |
||
414 | // Show the LP not marked as invisible by teacher in tracking page |
||
415 | //$_configuration['student_follow_page_include_not_subscribed_lp_students'] = false; |
||
416 | // Show certificate of achievement icon from the student details in course tracking |
||
417 | //$_configuration['course_tracking_student_detail_show_certificate_of_achievement'] = false; |
||
418 | // Allow change the order to show the tools in "My progress" page. |
||
419 | /*$_configuration['my_progress_course_tools_order'] = [ |
||
420 | 'order' => ['quizzes', 'learning_paths', 'skills'], |
||
421 | ];*/ |
||
422 | // Allow show all details of each course in session when clicking on session details |
||
423 | //$_configuration['my_progress_session_show_all_courses'] = false; |
||
424 | // Hide session link of course_block on index/userportal |
||
425 | //$_configuration['remove_session_url']= false ; |
||
426 | // Allow foldable block for session list in session category on My courses tab |
||
427 | //$_configuration['user_portal_foldable_session_category'] = false; |
||
428 | // |
||
429 | // |
||
430 | // ------ AGENDA CONFIGURATION SETTINGS |
||
431 | // Shows a legend in the agenda tool |
||
432 | /* |
||
433 | $_configuration['agenda_legend'] = [ |
||
434 | 'red' => 'red caption', |
||
435 | '#f0f' => 'another caption' |
||
436 | ];*/ |
||
437 | // Set customs colors to agenda events |
||
438 | /* |
||
439 | $_configuration['agenda_colors'] = [ |
||
440 | 'platform' => 'red', |
||
441 | 'course' => '#458B00', |
||
442 | 'group' => '#A0522D', |
||
443 | 'session' => '#00496D', |
||
444 | 'other_session' => '#999', |
||
445 | 'personal' => 'steel blue', |
||
446 | 'student_publication' => '#FF8C00' |
||
447 | ]; |
||
448 | */ |
||
449 | // Display sessions occupations in personal agenda |
||
450 | //$_configuration['personal_calendar_show_sessions_occupation'] = false; |
||
451 | // It allows to send invitations to friends for an agenda event. Requires DB changes: |
||
452 | /* |
||
453 | CREATE TABLE agenda_event_invitee (id BIGINT AUTO_INCREMENT NOT NULL, invitation_id BIGINT DEFAULT NULL, user_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_4F5757FEA35D7AF0 (invitation_id), INDEX IDX_4F5757FEA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
454 | CREATE TABLE agenda_event_invitation (id BIGINT AUTO_INCREMENT NOT NULL, creator_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_52A2D5E161220EA6 (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
455 | ALTER TABLE agenda_event_invitee ADD CONSTRAINT FK_4F5757FEA35D7AF0 FOREIGN KEY (invitation_id) REFERENCES agenda_event_invitation (id) ON DELETE CASCADE; |
||
456 | ALTER TABLE agenda_event_invitee ADD CONSTRAINT FK_4F5757FEA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE SET NULL; |
||
457 | ALTER TABLE agenda_event_invitation ADD CONSTRAINT FK_52A2D5E161220EA6 FOREIGN KEY (creator_id) REFERENCES user (id) ON DELETE CASCADE; |
||
458 | ALTER TABLE personal_agenda ADD agenda_event_invitation_id BIGINT DEFAULT NULL, ADD collective TINYINT(1) NOT NULL; |
||
459 | ALTER TABLE personal_agenda ADD CONSTRAINT FK_D8612460AF68C6B FOREIGN KEY (agenda_event_invitation_id) REFERENCES agenda_event_invitation (id) ON DELETE CASCADE; |
||
460 | CREATE UNIQUE INDEX UNIQ_D8612460AF68C6B ON personal_agenda (agenda_event_invitation_id); |
||
461 | */ |
||
462 | // After Chamilo v1.11.30 it's necessary to change the foreign key in agenda_event_invitee.user_id so that the record is deleted when deleting a user |
||
463 | /* |
||
464 | ALTER TABLE agenda_event_invitee DROP FOREIGN KEY FK_4F5757FEA76ED395; |
||
465 | ALTER TABLE agenda_event_invitee ADD CONSTRAINT FK_4F5757FEA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
466 | */ |
||
467 | // Then add the "@" symbol to AgendaEventInvitation and AgendaEventInvitee classes in the ORM\Entity() line. |
||
468 | // Then uncomment the "use EventCollectiveTrait;" line in the PersonalAgenda class. |
||
469 | //$_configuration['agenda_collective_invitations'] = false; |
||
470 | |||
471 | // It allows to other users to subscribe for events. |
||
472 | // Requires enable agenda_collective_invitations before. |
||
473 | // Requires DB changes: |
||
474 | /* |
||
475 | ALTER TABLE personal_agenda ADD subscription_visibility INT DEFAULT 0 NOT NULL, ADD subscription_item_id INT DEFAULT NULL; |
||
476 | ALTER TABLE agenda_event_invitee ADD type VARCHAR(255) NOT NULL; |
||
477 | ALTER TABLE agenda_event_invitation ADD type VARCHAR(255) NOT NULL, ADD max_attendees INT DEFAULT 0; |
||
478 | UPDATE agenda_event_invitation SET type = 'invitation'; |
||
479 | UPDATE agenda_event_invitee SET type = 'invitee'; |
||
480 | */ |
||
481 | // Then uncomment the "use EventSubscribableTrait;" line in the PersonalAgenda class. |
||
482 | // Then add the "@" symbol in ORM\InheritanceType, ORM\DiscriminatorColumn and ORM\DiscriminatorMap lines in the AgendaEventInvitation class. |
||
483 | // Then add the "@" symbol in @ORM\Entity line in the AgendaEventSubscription class. |
||
484 | // Then add the "@" symbol in ORM\InheritanceType, ORM\DiscriminatorColumn and ORM\DiscriminatorMap lines in the AgendaEventInvitee class. |
||
485 | // Then add the "@" symbol in @ORM\Entity line in the AgendaEventSubscriber class. |
||
486 | //$_configuration['agenda_event_subscriptions'] = false; |
||
487 | |||
488 | // Enable reminders for agenda events. Requires database changes: |
||
489 | /* |
||
490 | CREATE TABLE agenda_reminder (id BIGINT AUTO_INCREMENT NOT NULL, type VARCHAR(255) NOT NULL, event_id INT NOT NULL, date_interval VARCHAR(255) NOT NULL COMMENT '(DC2Type:dateinterval)', sent TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
491 | */ |
||
492 | // Then add the "@" symbol to AgendaReminder class in the ORM\Entity() line. |
||
493 | //$_configuration['agenda_reminders'] = false; |
||
494 | // Sets the sender ID when using the cron main/cron/agenda_reminders.php to send reminders in course events. |
||
495 | //$_configuration['agenda_reminders_sender_id'] = 0; |
||
496 | // |
||
497 | //In course agenda do not select any participant by default |
||
498 | //$_configuration['course_agenda_set_default_send_to_with_none'] = false; |
||
499 | //In course agenda add the current user has default participant |
||
500 | //$_configuration['course_agenda_set_default_send_to_with_current_user'] = false; |
||
501 | //In course agenda add the course teachers or the course session coach in session context has default participants |
||
502 | //$_configuration['course_agenda_set_default_send_to_with_teachers'] = false; |
||
503 | |||
504 | // ------ |
||
505 | // |
||
506 | // Save some tool titles with HTML editor. Require DB changes: |
||
507 | /* |
||
508 | ALTER TABLE course_category CHANGE name name LONGTEXT NOT NULL; |
||
509 | ALTER TABLE c_course_description CHANGE title title LONGTEXT NOT NULL; |
||
510 | ALTER TABLE c_thematic CHANGE title title LONGTEXT NOT NULL; |
||
511 | ALTER TABLE c_quiz CHANGE title title LONGTEXT NOT NULL; |
||
512 | ALTER TABLE c_lp_category CHANGE name name LONGTEXT NOT NULL; |
||
513 | ALTER TABLE c_glossary CHANGE name name LONGTEXT NOT NULL; |
||
514 | ALTER TABLE c_tool CHANGE name name LONGTEXT NOT NULL; |
||
515 | -- Only with allow_portfolio_tool enabled |
||
516 | ALTER TABLE portfolio CHANGE title title LONGTEXT NOT NULL; |
||
517 | ALTER TABLE portfolio_category CHANGE title title LONGTEXT NOT NULL; |
||
518 | |||
519 | New changes: |
||
520 | |||
521 | ALTER TABLE c_lp CHANGE name name LONGTEXT NOT NULL; |
||
522 | ALTER TABLE c_lp_item CHANGE title title LONGTEXT NOT NULL; |
||
523 | -- |
||
524 | */ |
||
525 | // This option will not remove tags when presenting LP list so it might be a source of security vulnerability. |
||
526 | // $_configuration['save_titles_as_html'] = false; |
||
527 | // Show the full toolbar set to all CKEditor |
||
528 | //$_configuration['full_ckeditor_toolbar_set'] = false; |
||
529 | // Allow change the orientation when export a (course progress) thematic to pdf. Portrait or landscape |
||
530 | //$_configuration['thematic_pdf_orientation'] = 'landscape'; |
||
531 | // Show number of users in session list |
||
532 | //$_configuration['session_list_show_count_users'] = false; |
||
533 | // Session admin access to all course content |
||
534 | //$_configuration['session_admins_access_all_content'] = false; |
||
535 | // Session admin allowed to edit all courses content |
||
536 | //$_configuration['session_admins_edit_courses_content'] = false; |
||
537 | // Adds roles to the system announcements (requires DB change BT#12476) |
||
538 | /* |
||
539 | ALTER TABLE sys_announcement ADD COLUMN visible_drh INT DEFAULT 0; |
||
540 | ALTER TABLE sys_announcement ADD COLUMN visible_session_admin INT DEFAULT 0; |
||
541 | ALTER TABLE sys_announcement ADD COLUMN visible_boss INT DEFAULT 0; |
||
542 | */ |
||
543 | //$_configuration['system_announce_extra_roles'] = false; |
||
544 | // Limits that a session admin has access to list users |
||
545 | //$_configuration['limit_session_admin_list_users'] = false; |
||
546 | // Course tools visibility edition in sessions |
||
547 | //$_configuration['allow_edit_tool_visibility_in_session'] = false; |
||
548 | // Enable the support to ODF files |
||
549 | //$_configuration['enabled_support_odf'] = true; |
||
550 | // Pdf orientation when exporting documents |
||
551 | // $_configuration['document_pdf_orientation'] = 'landscape'; // It can be 'portrait' or 'landscape' |
||
552 | // Use alternative footer when exporting document to PDF |
||
553 | //$_configuration['use_alternative_document_pdf_footer'] = false; |
||
554 | // If the MySpace page takes too long to load, you might want to remove the |
||
555 | // processing of generic statistics for the user. In this case set the following to true. |
||
556 | //$_configuration['tracking_skip_generic_data'] = false; |
||
557 | // Show view accordion lp_category |
||
558 | //$_configuration['lp_category_accordion'] = false; |
||
559 | // Show the best progress instead of averages in reporting of learnpaths |
||
560 | // $_configuration['lp_show_max_progress_instead_of_average'] = false; |
||
561 | // Enable redefinition of the setting to show the best progress instead of averages in reporting of learnpaths at a course level. |
||
562 | // $_configuration['lp_show_max_progress_or_average_enable_course_level_redefinition'] = false; |
||
563 | // Show view accordion lp_item_view |
||
564 | // $_configuration['lp_view_accordion'] = false; |
||
565 | // Allow export learning paths to students |
||
566 | //$_configuration['lp_allow_export_to_students'] = false; |
||
567 | // |
||
568 | // Allow survey tool in learnpath |
||
569 | // ALTER TABLE c_survey_answer ADD COLUMN c_lp_item_id INT(11) DEFAULT 0; |
||
570 | // Edit src/Chamilo/CourseBundle/Entity/CSurveyAnswer.php and add a '@' character in front of 'ORM\Column(name="c_lp_item_id" |
||
571 | // ALTER TABLE c_survey_invitation ADD COLUMN c_lp_item_id int(11) DEFAULT 0; |
||
572 | // Edit src/Chamilo/CourseBundle/Entity/CSurveyInvitation.php and add a '@' character in front of 'ORM\Column(name="c_lp_item_id" |
||
573 | //$_configuration['allow_survey_tool_in_lp'] = false; |
||
574 | // Show surveys from main course in all course sessions |
||
575 | // ALTER TABLE c_survey_answer ADD COLUMN session_id INT(11) DEFAULT 0; |
||
576 | // Edit src/Chamilo/CourseBundle/Entity/CSurveyAnswer.php and add a '@' character in front of 'ORM\Column(name="session_id" |
||
577 | //$_configuration['show_surveys_base_in_sessions'] = false; |
||
578 | // |
||
579 | // ------ HTTP headers security |
||
580 | // This section relates to options to increase the security of your Chamilo |
||
581 | // portal against attacks specifically focused on HTTP headers vulnerabilities |
||
582 | // These are all disabled by default, because some of these settings might |
||
583 | // affect some features of Chamilo, like the inclusion of iframes or the |
||
584 | // submission of forms by anonymous users. Please make sure you do the due |
||
585 | // tests before enabling in production. Learn more about how to form secure |
||
586 | // headers at https://securityheaders.io/ |
||
587 | // |
||
588 | // HTTP Strict Transport Security is an excellent feature to support on your |
||
589 | // site and strengthens your implementation of TLS by getting the User Agent |
||
590 | // to enforce the use of HTTPS. Recommended value |
||
591 | // "strict-transport-security: max-age=63072000; includeSubDomains". |
||
592 | // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security |
||
593 | // You can include the "preload" suffix, but this has consequences on the |
||
594 | // top level domain (TLD), so probably not to be done lightly. See https://hstspreload.org/. |
||
595 | //$_configuration['security_strict_transport'] = 'strict-transport-security: max-age=63072000; includeSubDomains'; |
||
596 | // |
||
597 | // Content Security Policy is an effective measure to protect your site from |
||
598 | // XSS attacks. By whitelisting sources of approved content, you can prevent |
||
599 | // the browser from loading malicious assets. |
||
600 | // The provided default is an *example*, please customize. |
||
601 | // This setting is particularly complicated to set with CKeditor, but if you |
||
602 | // add all domains that you want to authorize for iframes inclusion in the |
||
603 | // child-src statement, this example should work for you. |
||
604 | // You can prevent JavaScript from executing from external sources (including |
||
605 | // inside SVG images) by using a strict list in the "script-src" argument. |
||
606 | //$_configuration['security_content_policy'] = 'default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; child-src 'self' *.youtube.com yt.be *.vimeo.com *.slideshare.com;'; |
||
607 | //$_configuration['security_content_policy_report_only'] = 'default-src \'self\'; script-src *://*.google.com:*'; |
||
608 | // |
||
609 | // HTTP Public Key Pinning protects your site from MiTM attacks using rogue |
||
610 | // X.509 certificates. By whitelisting only the identities that the browser |
||
611 | // should trust, your users are protected in the event a certificate |
||
612 | // authority is compromised. |
||
613 | //$_configuration['security_public_key_pins'] = ''; |
||
614 | //$_configuration['security_public_key_pins_report_only'] = ''; |
||
615 | // |
||
616 | // X-Frame-Options tells the browser whether you want to allow your site to |
||
617 | // be framed or not. By preventing a browser from framing your site you can |
||
618 | // defend against attacks like clickjacking. |
||
619 | // If defining a URL here, it should define the URL(s) from which your content |
||
620 | // should be visible, not the URLs from which your site accepts content. |
||
621 | // For example, if your main URL (root_web above) is https://11.chamilo.org/, |
||
622 | // then this setting should be: 'ALLOW-FROM https://11.chamilo.org'. |
||
623 | // These headers only apply to pages where Chamilo is responsible of the HTTP |
||
624 | // headers generation (i.e. ".php" files). It does not apply to static files. |
||
625 | // If playing with this feature, make sure you also update your web server |
||
626 | // configuration to add the right headers for static files. See CDN |
||
627 | // configuration documentation above (search for "add_header") for more |
||
628 | // information. |
||
629 | // Recommended (strict) value for this setting, if enabled: "SAMEORIGIN". |
||
630 | //$_configuration['security_x_frame_options'] = 'SAMEORIGIN'; |
||
631 | // |
||
632 | // X-XSS-Protection sets the configuration for the cross-site scripting |
||
633 | // filter built into most browsers. |
||
634 | // Recommended value "1; mode=block". |
||
635 | //$_configuration['security_xss_protection'] = '1; mode=block'; |
||
636 | // |
||
637 | // X-Content-Type-Options stops a browser from trying to MIME-sniff the |
||
638 | // content type and forces it to stick with the declared content-type. The only |
||
639 | // valid value for this header is "nosniff". |
||
640 | //$_configuration['security_x_content_type_options'] = 'nosniff'; |
||
641 | // |
||
642 | // Referrer Policy is a new header that allows a site to control how much |
||
643 | // information the browser includes with navigation away from a document |
||
644 | // and should be set by all sites. |
||
645 | //$_configuration['security_referrer_policy'] = 'origin-when-cross-origin'; |
||
646 | // |
||
647 | // Enable samesite:None parameter for session cookie. |
||
648 | // More info: https://www.chromium.org/updates/same-site |
||
649 | // Also: https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure |
||
650 | //$_configuration['security_session_cookie_samesite_none'] = false; |
||
651 | // |
||
652 | // Enable Permissions-Policy header |
||
653 | // More info: https://scotthelme.co.uk/goodbye-feature-policy-and-hello-permissions-policy/ |
||
654 | // and also: https://scotthelme.co.uk/a-new-security-header-feature-policy/ |
||
655 | //$_configuration['security_permissions_policy'] = 'geolocation=(self "https://example.com"), microphone=()'; |
||
656 | // ------ HTTP headers security section ends here |
||
657 | // |
||
658 | // ------ Survey configuration settings |
||
659 | // Add answered_at field in table survey_invitation |
||
660 | // Requires DB change: |
||
661 | // ALTER TABLE c_survey_invitation ADD answered_at DATETIME DEFAULT NULL; |
||
662 | //$_configuration['survey_answered_at_field'] = false; |
||
663 | // Add support to mandatory surveys. The user will not be able to enter to the course until fill the mandatory surveys |
||
664 | // Requires DB change: |
||
665 | /* |
||
666 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) |
||
667 | VALUES (12, 13, 'is_mandatory', 'IsMandatory', 1, 1, NOW()); |
||
668 | */ |
||
669 | //$_configuration['allow_mandatory_survey'] = false; |
||
670 | // Allow required survey questions. Applies to yesno/multiplechoice question type. Requires DB change: |
||
671 | /* |
||
672 | ALTER TABLE c_survey_question ADD is_required TINYINT(1) DEFAULT 0 NOT NULL; |
||
673 | */ |
||
674 | //$_configuration['allow_required_survey_questions'] = false; |
||
675 | // Hide Survey Reporting button |
||
676 | //$_configuration['hide_survey_reporting_button'] = false; |
||
677 | // Hide survey edition tools for all or some surveys. |
||
678 | //Set an asterisk to hide for all, otherwise set an array with the survey codes in which the options will be blocked |
||
679 | //$_configuration['hide_survey_edition'] = ['codes' => []]; |
||
680 | // Allows to set the date and time of availability for surveys. Requires DB changes: |
||
681 | // ALTER TABLE c_survey CHANGE avail_from avail_from DATETIME DEFAULT NULL, CHANGE avail_till avail_till DATETIME DEFAULT NULL; |
||
682 | // Requires change the Doctrine type from date to datime in CSurvey::$availFrom and CSurvey::$availTill |
||
683 | //$_configuration['allow_survey_availability_datetime'] = false; |
||
684 | // Mark the "Required" field during question creation process when displaying the form. |
||
685 | //$_configuration['survey_mark_question_as_required'] = false; |
||
686 | // Allow add additional actions (as links) in survey list for teachers. |
||
687 | // e.g. ['myplugin' => ['MyPlugin', 'urlGeneratorCallback']] |
||
688 | //$_configuration['survey_additional_teacher_modify_actions'] = []; |
||
689 | // Allow show answers in anonymous surveys |
||
690 | //$_configuration['survey_anonymous_show_answered'] = false; |
||
691 | // ------ |
||
692 | |||
693 | // Allow career diagram, requires a DB change: |
||
694 | //UPDATE extra_field_values SET created_at = NULL WHERE CAST(created_at AS CHAR(20)) = '0000-00-00 00:00:00'; |
||
695 | //UPDATE extra_field_values SET updated_at = NULL WHERE CAST(updated_at AS CHAR(20)) = '0000-00-00 00:00:00'; |
||
696 | //ALTER TABLE extra_field_values modify column value longtext null; |
||
697 | //$_configuration['allow_career_diagram'] = false; |
||
698 | // Allow scheduled emails to session users. |
||
699 | //CREATE TABLE scheduled_announcements (id INT AUTO_INCREMENT NOT NULL, subject VARCHAR(255) NOT NULL, message LONGTEXT NOT NULL, date DATETIME DEFAULT NULL, sent TINYINT(1) NOT NULL, session_id INT NOT NULL, c_id INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
700 | // sudo mkdir app/upload/scheduled_announcement |
||
701 | // Uncomment and set the following setting to true before moving on |
||
702 | //$_configuration['allow_scheduled_announcements'] = false; |
||
703 | // Add "attachment" file upload extra field label in: main/admin/extra_fields.php?type=scheduled_announcement&action=add |
||
704 | // Add "send_to_coaches" checkbox options field label in: main/admin/extra_fields.php?type=scheduled_announcement&action=add |
||
705 | // Add the list of emails as a bcc when sending an email. |
||
706 | // Configure a cron task pointing at main/cron/scheduled_announcement.php |
||
707 | /* |
||
708 | $_configuration['send_all_emails_to'] = [ |
||
709 | 'emails' => [ |
||
710 | '[email protected]', |
||
711 | '[email protected]', |
||
712 | ] |
||
713 | ];*/ |
||
714 | // Allow ticket projects to be access by specific chamilo roles |
||
715 | /*$_configuration['ticket_project_user_roles'] = [ |
||
716 | 'permissions' => [ |
||
717 | 1 => [17] // project_id = 1, STUDENT_BOSS = 17 |
||
718 | ] |
||
719 | ];*/ |
||
720 | |||
721 | // Allow additional data (exercise and learningpath) in the ticket |
||
722 | // - Required DB change |
||
723 | // ALTER TABLE ticket_ticket ADD exercise_id INT DEFAULT NULL AFTER course_id; |
||
724 | // ALTER TABLE ticket_ticket ADD CONSTRAINT FK_EB5B2A0D6285C987 FOREIGN KEY (exercise_id) REFERENCES c_quiz (iid); |
||
725 | // ALTER TABLE ticket_ticket ADD lp_id INT DEFAULT NULL AFTER exercise_id; |
||
726 | // ALTER TABLE ticket_ticket ADD CONSTRAINT FK_EB5B2A0D6285C231 FOREIGN KEY (lp_id) REFERENCES c_lp (iid); |
||
727 | // $_configuration['ticket_lp_quiz_info_add'] = false; |
||
728 | |||
729 | // Exercises configuration settings |
||
730 | // Send only quiz answer notifications to course coaches and not general coach |
||
731 | //$_configuration['block_quiz_mail_notification_general_coach'] = false; |
||
732 | // Show question feedback (requires DB change: "ALTER TABLE c_quiz_question ADD COLUMN feedback text;") |
||
733 | //$_configuration['allow_quiz_question_feedback'] = false; |
||
734 | // Add option in exercise to show or hide the "previous" button. |
||
735 | //ALTER TABLE c_quiz ADD show_previous_button TINYINT(1) DEFAULT 1; |
||
736 | //$_configuration['allow_quiz_show_previous_button_setting'] = false; |
||
737 | // Allow to teachers review exercises question with audio notes |
||
738 | //$_configuration["allow_teacher_comment_audio"] = false; |
||
739 | // Block copy/paste/save/print keys and right-clicks in exercises |
||
740 | //$_configuration['quiz_prevent_copy_paste'] = false; |
||
741 | // Always show the test description on the results page of the test |
||
742 | //$_configuration['quiz_show_description_on_results_page'] = false; |
||
743 | // Allow add additional actions (as links) in exercises list for teachers. |
||
744 | // Callback get the $exerciseId and $iconSize as parameters. |
||
745 | // e.g. ['myplugin' => ['MyPlugin', 'urlGeneratorCallback']] |
||
746 | //$_configuration['exercise_additional_teacher_modify_actions'] = [] |
||
747 | // Generate certificate when ending a quiz. |
||
748 | // The quiz needs to be linked to a gradebook category and have set the pass percentage. |
||
749 | //$_configuration['quiz_generate_certificate_ending'] = false; |
||
750 | // Allow the teacher to rate the open, oral expression and annotation question types with a decimal score. |
||
751 | //$_configuration['quiz_open_question_decimal_score'] = false; |
||
752 | // Add answer-saving procedure check before starting the quiz |
||
753 | //$_configuration['quiz_check_button_enable'] = false; |
||
754 | // Add a checkbox to allow to user confirm the number of answers saved in quiz attempt |
||
755 | // - Requires to edit the src/Chamilo/CoreBundle/Entity/TrackEExerciseConfirmation.php file adding the "@" in the ORM phpdoc block |
||
756 | // - Requires DB changes: |
||
757 | // CREATE TABLE track_e_exercise_confirmation (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, course_id INT NOT NULL, attempt_id INT NOT NULL, quiz_id INT NOT NULL, session_id INT NOT NULL, confirmed TINYINT(1) DEFAULT '0' NOT NULL, questions_count INT NOT NULL, saved_answers_count INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
758 | //$_configuration['quiz_confirm_saved_answers'] = false; |
||
759 | // Allow reuse of questions between courses |
||
760 | // $_configuration['quiz_question_allow_inter_course_linking'] = false; |
||
761 | // Delete automatically the questions when a quiz is deleted |
||
762 | // If questions are reused between courses only deletes the non-reused questions |
||
763 | // or reused questions where the quiz has the lowest iid value from c_quiz_rel_question |
||
764 | // $_configuration['quiz_question_delete_automatically_when_deleting_exercise'] = false; |
||
765 | // Opens the quiz question description by default |
||
766 | //$_configuration['quiz_question_description_open_by_default'] = false; |
||
767 | // Opens advanced parameters options by default when creating or editing quiz questions |
||
768 | //$_configuration['quiz_question_edit_open_advanced_params_by_default'] = false; |
||
769 | // Define how many seconds an AJAX request should be started to avoid loss of connection. |
||
770 | //$_configuration['quiz_keep_alive_ping_interval'] = 0; |
||
771 | // Hide search form in session list |
||
772 | //$_configuration['hide_search_form_in_session_list'] = false; |
||
773 | // Allow exchange of messages from teachers/bosses about a user. |
||
774 | //$_configuration['private_messages_about_user'] = false; |
||
775 | // Allow the messages to be visible for the students |
||
776 | //$_configuration['private_messages_about_user_visible_to_user'] = false; |
||
777 | // Allow send email notification per exercise |
||
778 | //ALTER TABLE c_quiz ADD COLUMN notifications VARCHAR(255) NULL DEFAULT NULL; |
||
779 | //$_configuration['allow_notification_setting_per_exercise'] = false; |
||
780 | // Hide free/oral/annotation question result see BT#12613 |
||
781 | //$_configuration['hide_free_question_score'] = false; |
||
782 | // Hide user information in the quiz result's page |
||
783 | //$_configuration['hide_user_info_in_quiz_result'] = false; |
||
784 | // Show the username field in exercise results report |
||
785 | //$_configuration['exercise_attempts_report_show_username'] = false; |
||
786 | // Allow extends allowed question types for embeddable exercises. |
||
787 | /* By default, only the following question types are allowed: 1, 2, 17 |
||
788 | Add these types to allow them in embeddable exercises: |
||
789 | 1 = Multiple choice |
||
790 | 2 = Multiple answers |
||
791 | 3 = Fill blanks or form |
||
792 | 4 = Matching |
||
793 | 5 = Open question |
||
794 | 9 = Exact Selection |
||
795 | 10 = Unique answer with unknown |
||
796 | 11 = Multiple answer true/false/don't know |
||
797 | 12 = Combination true/false/don't know |
||
798 | 13 = Oral expression |
||
799 | 14 = Global multiple answer |
||
800 | 16 = Calculated question |
||
801 | 17 = Unique answer image |
||
802 | 21 = Reading comprehension |
||
803 | 22 = Multiple answer true/false/degree of certainty |
||
804 | 23 = Upload answer |
||
805 | */ |
||
806 | /* |
||
807 | $_configuration['exercise_embeddable_extra_types'] = [ |
||
808 | 'types' => [], |
||
809 | ]; |
||
810 | */ |
||
811 | |||
812 | // Score model |
||
813 | // Allow to convert a score into a text/color label |
||
814 | // using a model if score is inside those values. See BT#12898 |
||
815 | /* |
||
816 | $_configuration['score_grade_model'] = [ |
||
817 | 'models' => [ |
||
818 | [ |
||
819 | 'id' => 1, |
||
820 | 'name' => 'ThisIsMyModel', // Value will be translated using get_lang |
||
821 | 'score_list' => [ |
||
822 | [ |
||
823 | 'name' => 'VeryBad', // Value will be translated using get_lang |
||
824 | 'css_class' => 'btn-danger', |
||
825 | 'min' => 0, |
||
826 | 'max' => 20, |
||
827 | 'score_to_qualify' => 0 |
||
828 | ], |
||
829 | [ |
||
830 | 'name' => 'Bad', |
||
831 | 'css_class' => 'btn-danger', |
||
832 | 'min' => 21, |
||
833 | 'max' => 50, |
||
834 | 'score_to_qualify' => 25 |
||
835 | ], |
||
836 | [ |
||
837 | 'name' => 'Good', |
||
838 | 'css_class' => 'btn-warning', |
||
839 | 'min' => 51, |
||
840 | 'max' => 70, |
||
841 | 'score_to_qualify' => 60 |
||
842 | ], |
||
843 | [ |
||
844 | 'name' => 'VeryGood', |
||
845 | 'css_class' => 'btn-success', |
||
846 | 'min' => 71, |
||
847 | 'max' => 100, |
||
848 | 'score_to_qualify' => 100 |
||
849 | ] |
||
850 | ] |
||
851 | ] |
||
852 | ] |
||
853 | ]; |
||
854 | */ |
||
855 | |||
856 | // Allow show link to request relation between HRM and user |
||
857 | //$_configuration['show_link_request_hrm_user'] = false; |
||
858 | // Allow CKEditor start up with ShowBlocks plugin active |
||
859 | //$_configuration['ckeditor_startup_outline_blocks'] = false; |
||
860 | // SETTINGS FOR USER COURSE LIST |
||
861 | // Manage the links to Session Index page |
||
862 | // 1 = Default. Works as it is now (default is to link to the special session page) |
||
863 | // 0 = No link (hide session title) |
||
864 | // 2 = Link to the course if there is only one course |
||
865 | // 3 = Session link will make course list foldable |
||
866 | // 4 = No link (only session title) |
||
867 | //$_configuration['courses_list_session_title_link'] = 1; |
||
868 | // New grid view the list of courses |
||
869 | //$_configuration['view_grid_courses'] = true; |
||
870 | // Show courses grouped by categories when $_configuration['view_grid_courses'] is enabled |
||
871 | //$_configuration['view_grid_courses_grouped_categories_in_sessions'] = true; |
||
872 | // Load course notifications in user_portal.php using ajax |
||
873 | //$_configuration['user_portal_load_notification_by_ajax'] = false; |
||
874 | // Hide the "what's new" icon notifications in course list |
||
875 | // $_configuration['hide_course_notification'] = true; |
||
876 | // Show less session information in course list |
||
877 | //$_configuration['show_simple_session_info'] = true; |
||
878 | // Show course category list on My Courses page before the courses. Requires a DB change |
||
879 | //ALTER TABLE course_category ADD image varchar(255) NULL; |
||
880 | //ALTER TABLE course_category ADD description LONGTEXT NULL; |
||
881 | //$_configuration['my_courses_list_as_category'] = false; |
||
882 | // ------ |
||
883 | |||
884 | // Skills can only be visible for admins, teachers (related to a user via a course), |
||
885 | // and HRM users (if related to a user). |
||
886 | // $_configuration['allow_private_skills'] = false; |
||
887 | // Additional gradebook dependencies BT#13099 |
||
888 | // ALTER TABLE gradebook_category ADD COLUMN depends TEXT DEFAULT NULL; |
||
889 | // ALTER TABLE gradebook_category ADD COLUMN minimum_to_validate INT DEFAULT NULL; |
||
890 | // ALTER TABLE gradebook_category ADD COLUMN gradebooks_to_validate_in_dependence INT DEFAULT NULL; |
||
891 | // $_configuration['gradebook_dependency'] = false; |
||
892 | // Courses id list to check in the gradebook sidebar see BT#13099 |
||
893 | /*$_configuration['gradebook_dependency_mandatory_courses'] = [ |
||
894 | 'courses' => [1, 2] |
||
895 | ];*/ |
||
896 | // Gradebook id list needed to build the gradebook sidebar see BT#13099 |
||
897 | /* |
||
898 | $_configuration['gradebook_badge_sidebar'] = [ |
||
899 | 'gradebooks' => [1, 2, 3] |
||
900 | ];*/ |
||
901 | |||
902 | // Show language selector in main menu an update the language in the user's |
||
903 | // profile. |
||
904 | //$_configuration['show_language_selector_in_menu'] = false; |
||
905 | |||
906 | // When using the my-courses list filter by category, set this option to true |
||
907 | // to only show courses in the user's configured language |
||
908 | // $_configuration['my_courses_show_courses_in_user_language_only'] = false; |
||
909 | |||
910 | // Hide base course announcements when entering a group. |
||
911 | //$_configuration['hide_base_course_announcements_in_group'] = false; |
||
912 | |||
913 | // Disable delete all announcements button |
||
914 | //$_configuration['disable_delete_all_announcements'] = false; |
||
915 | |||
916 | // Default glossary view "table" or "list" |
||
917 | //$_configuration['default_glossary_view'] = 'table'; |
||
918 | |||
919 | // Allow or block user subscriptions to a lp/lp category |
||
920 | /*$_configuration['lp_subscription_settings'] = [ |
||
921 | 'options' => [ |
||
922 | 'allow_add_users_to_lp' => true, |
||
923 | 'allow_add_users_to_lp_category' => true, |
||
924 | ] |
||
925 | ];*/ |
||
926 | |||
927 | // Allow public courses access with no terms and conditions validation. |
||
928 | //$_configuration['allow_public_course_with_no_terms_conditions'] = false; |
||
929 | |||
930 | // Allow delete user for session admin |
||
931 | //$_configuration['allow_delete_user_for_session_admin'] = false; |
||
932 | // Allow enable/disable user accounts for session admin |
||
933 | //$_configuration['allow_disable_user_for_session_admin'] = false; |
||
934 | // Allow edit/delete agenda events for HRM users |
||
935 | //$_configuration['allow_agenda_edit_for_hrm'] = false; |
||
936 | // Allow double validation in registration page |
||
937 | //$_configuration['allow_double_validation_in_registration'] = false; |
||
938 | // Allow multiple anon users see BT#13324 |
||
939 | //$_configuration['max_anonymous_users'] = 0; |
||
940 | |||
941 | // Send email notification to admin when a user is created |
||
942 | //$_configuration['send_notification_when_user_added'] = ['admins' => [1] ]; |
||
943 | |||
944 | // Send email notification to course members when document is added BT#13964 |
||
945 | //$_configuration['send_notification_when_document_added'] = false; |
||
946 | |||
947 | // Hide email content forcing using to click in a link to visit the portal to check the message |
||
948 | //$_configuration['messages_hide_mail_content'] = false; |
||
949 | // If you install plugin redirection you need to change to true |
||
950 | //$_configuration['plugin_redirection_enabled'] = false; |
||
951 | // Customize on hover agenda view. Show agenda comment and/or description |
||
952 | /*$_configuration['agenda_on_hover_info'] = [ |
||
953 | 'options' => [ |
||
954 | 'comment' => true, |
||
955 | 'description' => true, |
||
956 | ] |
||
957 | ];*/ |
||
958 | // Disable jquery, jquery-ui libs added in the learning path view |
||
959 | //$_configuration['disable_js_in_lp_view'] = true; |
||
960 | // Show all sessions (old, current, future) in my course page |
||
961 | //$_configuration['show_all_sessions_on_my_course_page'] = true; |
||
962 | // Redirect to home tool after uploading a student publication or a adding a comment |
||
963 | //$_configuration['allow_redirect_to_main_page_after_work_upload'] = false; |
||
964 | // Empty the session student list when subscribing multiple users |
||
965 | //$_configuration['session_multiple_subscription_students_list_avoid_emptying'] = false; |
||
966 | // Disable the option to set course coach in session when editing course |
||
967 | //$_configuration['disabled_edit_session_coaches_course_editing_course'] = false; |
||
968 | // Show sender's email when receiving email notifications. |
||
969 | //$_configuration['show_user_email_in_notification'] = false; |
||
970 | // Set skill levels name, then later it will be parsed using get_lang BT#13586 |
||
971 | /*$_configuration['skill_levels_names'] = [ |
||
972 | 'levels' => [ |
||
973 | 1 => 'Skills', |
||
974 | 2 => 'Capability', |
||
975 | 3 => 'Dimension', |
||
976 | ] |
||
977 | ];*/ |
||
978 | |||
979 | // Show popular sessions on homepage |
||
980 | //$_configuration['show_hot_sessions'] = false; |
||
981 | |||
982 | // Hide skill levels options |
||
983 | //$_configuration['hide_skill_levels'] = false; |
||
984 | |||
985 | // Hide the session list in Reporting tool. Useful when a course has too many sessions. |
||
986 | //$_configuration['hide_reporting_session_list'] = false; |
||
987 | |||
988 | // Allow session admin to read careers |
||
989 | //$_configuration['allow_session_admin_read_careers'] = true; |
||
990 | |||
991 | // Enable cloud links in document tool |
||
992 | // $_configuration['enable_add_file_link'] = false; |
||
993 | |||
994 | // Send score in percentage in the exam result notification |
||
995 | //$_configuration['send_notification_score_in_percentage'] = false; |
||
996 | |||
997 | // Google translate key (for the text2speech feature in the documents tool) |
||
998 | // To get it, go to https://console.cloud.google.com/apis/library, create or |
||
999 | // use your own project, then search for "speech" and follow the instructions |
||
1000 | // This service has a cost above 60 minutes of use. |
||
1001 | //$_configuration['translate_app_google_key'] = ''; |
||
1002 | |||
1003 | // Block access to any user to "my progress" page |
||
1004 | //$_configuration['block_my_progress_page'] = false; |
||
1005 | |||
1006 | // Hides the "my progress" tab from the navigation menu |
||
1007 | //$_configuration['hide_my_progress_tab'] = false; |
||
1008 | |||
1009 | // Add user extra fields in report: main/mySpace/exercise_category_report.php |
||
1010 | //$_configuration['exercise_category_report_user_extra_fields'] = ['fields' => ['skype', 'rssfeeds']]; |
||
1011 | |||
1012 | // Order sessions |
||
1013 | // Requires DB change: ALTER TABLE session ADD COLUMN position INT DEFAULT 0; |
||
1014 | // Requires edit Entity Session: src/Chamilo/CoreBundle/Entity/Session.php uncomment "position" variable. |
||
1015 | // Requires uncomment the position get and set |
||
1016 | //$_configuration['session_list_order'] = false; |
||
1017 | |||
1018 | // Show skills as a hierarchical table |
||
1019 | //$_configuration['table_of_hierarchical_skill_presentation'] = false; |
||
1020 | |||
1021 | // Restrict course chat only for course coach in sessions |
||
1022 | // Course coaches will can chat with students only. And students will can chat with all course coaches |
||
1023 | //$_configuration['course_chat_restrict_to_coach'] = false; |
||
1024 | |||
1025 | // Allow teachers, drhs and admins to access blocked LP's because a prerequisite. |
||
1026 | //$_configuration['allow_teachers_to_access_blocked_lp_by_prerequisite'] = false; |
||
1027 | |||
1028 | // Allow connect skills with course tools (exercises, forum threads, works, etc) |
||
1029 | // 1. Add an "@" before "ORM\Entity" in these Entities: |
||
1030 | //SkillRelItemRelUser/SkillRelItem/SkillRelCourse (in src/Chamilo/SkillBundle/Entity/) |
||
1031 | // 2. Add an "@" before "ORM\OneToMany" in the "Skill.items" and "Skill.courses" variable definitions (in src/Chamilo/CoreBundle/Entity/Skill.php) |
||
1032 | // 3. Run the following DB changes: |
||
1033 | /* |
||
1034 | CREATE TABLE skill_rel_item_rel_user (id INT AUTO_INCREMENT NOT NULL, skill_rel_item_id INT NOT NULL, user_id INT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by INT NOT NULL, updated_by INT NOT NULL, INDEX IDX_D1133E0DFD4B12DC (skill_rel_item_id), INDEX IDX_D1133E0DA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1035 | CREATE TABLE skill_rel_item (id INT AUTO_INCREMENT NOT NULL, skill_id INT DEFAULT NULL, item_type INT NOT NULL, item_id INT NOT NULL, obtain_conditions VARCHAR(255) DEFAULT NULL, requires_validation TINYINT(1) NOT NULL, is_real TINYINT(1) NOT NULL, c_id INT DEFAULT NULL, session_id INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by INT NOT NULL, updated_by INT NOT NULL, INDEX IDX_EB5B2A0D5585C142 (skill_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1036 | ALTER TABLE skill_rel_item_rel_user ADD CONSTRAINT FK_D1133E0DFD4B12DC FOREIGN KEY (skill_rel_item_id) REFERENCES skill_rel_item (id); |
||
1037 | ALTER TABLE skill_rel_item_rel_user ADD CONSTRAINT FK_D1133E0DA76ED395 FOREIGN KEY (user_id) REFERENCES user (id); |
||
1038 | ALTER TABLE skill_rel_item ADD CONSTRAINT FK_EB5B2A0D5585C142 FOREIGN KEY (skill_id) REFERENCES skill (id); |
||
1039 | ALTER TABLE skill_rel_item_rel_user ADD result_id INT DEFAULT NULL; |
||
1040 | |||
1041 | CREATE TABLE skill_rel_course (id INT AUTO_INCREMENT NOT NULL, skill_id INT DEFAULT NULL, c_id INT NOT NULL, session_id INT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_E7CEC7FA5585C142 (skill_id), INDEX IDX_E7CEC7FA91D79BD3 (c_id), INDEX IDX_E7CEC7FA613FECDF (session_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1042 | ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA5585C142 FOREIGN KEY (skill_id) REFERENCES skill (id); |
||
1043 | ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA91D79BD3 FOREIGN KEY (c_id) REFERENCES course (id); |
||
1044 | ALTER TABLE skill_rel_course ADD CONSTRAINT FK_E7CEC7FA613FECDF FOREIGN KEY (session_id) REFERENCES session (id); |
||
1045 | */ |
||
1046 | // 4. Set the following "allow_skill_rel_items" setting to true |
||
1047 | //$_configuration['allow_skill_rel_items'] = false; |
||
1048 | // 5. Insert skills links in the skill_rel_course table directly to have them |
||
1049 | // appear in the skills page for the course in a session, or use the |
||
1050 | // main/cron/import_csv.php script with a file in main/cron/incoming/ with |
||
1051 | // a name matching the following pattern skillset_yyyymmdd.csv |
||
1052 | // 6. Assign skills to users through each supported tool (see skill.lib.php::getItemInfo()) |
||
1053 | // 7. Confirm users skills through the gradebook interface (new skill_rel_user.php icon on main page) |
||
1054 | |||
1055 | // Allows to send a notification when a user has achieved a skill |
||
1056 | //$_configuration['badge_assignation_notification'] = false; |
||
1057 | |||
1058 | // Generate random login when importing users |
||
1059 | //$_configuration['generate_random_login'] = false; |
||
1060 | |||
1061 | // Remove html tags when exporting glossary definitions in a CSV file |
||
1062 | //$_configuration['allow_remove_tags_in_glossary_export'] = false; |
||
1063 | |||
1064 | // Show base course categories in portal children |
||
1065 | //$_configuration['allow_base_course_category'] = false; |
||
1066 | |||
1067 | // Send two emails when creating a user. One with the username other with the password. |
||
1068 | //$_configuration['send_two_inscription_confirmation_mail'] = false; |
||
1069 | |||
1070 | // LP view custom settings |
||
1071 | /*$_configuration['lp_view_settings'] = [ |
||
1072 | 'display' => [ |
||
1073 | 'show_reporting_icon' => true, |
||
1074 | 'hide_lp_arrow_navigation' => false, |
||
1075 | 'show_toolbar_by_default' => false, |
||
1076 | 'navigation_in_the_middle' => false, |
||
1077 | 'add_extra_quit_to_home_icon' => false, |
||
1078 | ], |
||
1079 | ];*/ |
||
1080 | // To enable the add_extra_quit_to_home_icon feature for single LP, add the following extrafield: |
||
1081 | /* |
||
1082 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES (6, 13, 'add_extra_quit_button', 'Add extra quit button', '', 0, 1, 0, 1, 0, NOW()); |
||
1083 | */ |
||
1084 | |||
1085 | // Force to hide the invisible course documents in sessions |
||
1086 | //$_configuration['hide_invisible_course_documents_in_sessions'] = false; |
||
1087 | |||
1088 | // Show more expected choice and status in exercise results BT#13950 |
||
1089 | //$_configuration['show_exercise_expected_choice'] = false; |
||
1090 | |||
1091 | // Hide exercise question label (ribbon) BT#13950 |
||
1092 | //$_configuration['exercise_hide_label'] = false; |
||
1093 | |||
1094 | // Send welcome message by email and to the chamilo inbox BT#14034 |
||
1095 | //$_configuration['send_inscription_msg_to_inbox'] = false; |
||
1096 | |||
1097 | // Allow administrators to see personal messages between a teacher and a student. |
||
1098 | // Please make sure you include a note in your terms and conditions as this might |
||
1099 | // affect privacy protection. |
||
1100 | //$_configuration['allow_user_message_tracking'] = false; |
||
1101 | |||
1102 | // Filter messages between a teacher and a student between the session start end dates |
||
1103 | // Need $_configuration['allow_user_message_tracking'] = true; |
||
1104 | //$_configuration['filter_interactivity_messages'] = false; |
||
1105 | |||
1106 | // Add a portfolio tool (duplicating the Notebook tool). Requires DB changes: |
||
1107 | /* |
||
1108 | CREATE TABLE portfolio_attachment (id INT AUTO_INCREMENT NOT NULL, path VARCHAR(255) NOT NULL, comment LONGTEXT DEFAULT NULL, size INT NOT NULL, filename VARCHAR(255) NOT NULL, origin_id INT NOT NULL, origin_type INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
1109 | CREATE TABLE portfolio (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, c_id INT DEFAULT NULL, session_id INT DEFAULT NULL, category_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, content LONGTEXT NOT NULL, creation_date DATETIME NOT NULL, update_date DATETIME NOT NULL, is_visible TINYINT(1) DEFAULT '1' NOT NULL, origin INT DEFAULT NULL, origin_type INT DEFAULT NULL, score DOUBLE PRECISION DEFAULT NULL, INDEX user (user_id), INDEX course (c_id), INDEX session (session_id), INDEX category (category_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
1110 | CREATE TABLE portfolio_category (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, is_visible TINYINT(1) DEFAULT '1' NOT NULL, INDEX user (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
1111 | CREATE TABLE portfolio_comment (id INT AUTO_INCREMENT NOT NULL, author_id INT NOT NULL, item_id INT NOT NULL, tree_root INT DEFAULT NULL, parent_id INT DEFAULT NULL, content LONGTEXT NOT NULL, date DATETIME NOT NULL, is_important TINYINT(1) DEFAULT '0' NOT NULL, lft INT NOT NULL, lvl INT NOT NULL, rgt INT NOT NULL, score DOUBLE PRECISION DEFAULT NULL, INDEX IDX_C2C17DA2F675F31B (author_id), INDEX IDX_C2C17DA2126F525E (item_id), INDEX IDX_C2C17DA2A977936C (tree_root), INDEX IDX_C2C17DA2727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
1112 | ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
1113 | ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106291D79BD3 FOREIGN KEY (c_id) REFERENCES course (id) ON DELETE CASCADE; |
||
1114 | ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062613FECDF FOREIGN KEY (session_id) REFERENCES session (id) ON DELETE CASCADE; |
||
1115 | ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106212469DE2 FOREIGN KEY (category_id) REFERENCES portfolio_category (id) ON DELETE SET NULL; |
||
1116 | ALTER TABLE portfolio CHANGE is_visible visibility SMALLINT DEFAULT 1 NOT NULL; |
||
1117 | ALTER TABLE portfolio ADD is_highlighted TINYINT(1) DEFAULT '0' NOT NULL; |
||
1118 | ALTER TABLE portfolio ADD is_template TINYINT(1) DEFAULT '0' NOT NULL; |
||
1119 | ALTER TABLE portfolio_category ADD CONSTRAINT FK_7AC64359A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
1120 | ALTER TABLE portfolio_comment ADD CONSTRAINT FK_C2C17DA2F675F31B FOREIGN KEY (author_id) REFERENCES user (id) ON DELETE CASCADE; |
||
1121 | ALTER TABLE portfolio_comment ADD CONSTRAINT FK_C2C17DA2126F525E FOREIGN KEY (item_id) REFERENCES portfolio (id) ON DELETE CASCADE; |
||
1122 | ALTER TABLE portfolio_comment ADD CONSTRAINT FK_C2C17DA2A977936C FOREIGN KEY (tree_root) REFERENCES portfolio_comment (id) ON DELETE CASCADE; |
||
1123 | ALTER TABLE portfolio_comment ADD CONSTRAINT FK_C2C17DA2727ACA70 FOREIGN KEY (parent_id) REFERENCES portfolio_comment (id) ON DELETE CASCADE; |
||
1124 | ALTER TABLE portfolio_comment ADD is_template TINYINT(1) DEFAULT '0' NOT NULL; |
||
1125 | ALTER TABLE portfolio_category ADD parent_id INT(11) NOT NULL DEFAULT 0; |
||
1126 | CREATE TABLE portfolio_rel_tag (id INT AUTO_INCREMENT NOT NULL, tag_id INT NOT NULL, c_id INT NOT NULL, session_id INT DEFAULT NULL, INDEX IDX_DB734472BAD26311 (tag_id), INDEX IDX_DB73447291D79BD3 (c_id), INDEX IDX_DB734472613FECDF (session_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
1127 | ALTER TABLE portfolio_rel_tag ADD CONSTRAINT FK_DB734472BAD26311 FOREIGN KEY (tag_id) REFERENCES tag (id) ON DELETE CASCADE; |
||
1128 | ALTER TABLE portfolio_rel_tag ADD CONSTRAINT FK_DB73447291D79BD3 FOREIGN KEY (c_id) REFERENCES course (id) ON DELETE CASCADE; |
||
1129 | ALTER TABLE portfolio_rel_tag ADD CONSTRAINT FK_DB734472613FECDF FOREIGN KEY (session_id) REFERENCES session (id) ON DELETE CASCADE; |
||
1130 | */ |
||
1131 | // In 1.11.8, before enabling this feature, you also need to: |
||
1132 | // - edit src/Chamilo/CoreBundle/Entity/Portfolio.php, PortfolioCategory.php, PortfolioAttachment.php and PortfolioComment.php PortfolioRelTag.php |
||
1133 | // and follow the instructions about the @ORM\Entity() line |
||
1134 | // - launch composer install to rebuild the autoload.php |
||
1135 | // To allow to add tags to portfolio items, create a extrafield called "tags" that can be modified and visible to others |
||
1136 | /* |
||
1137 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES (19, 10, 'tags', 'tags', '', 0, 1, 1, 1, 0, NOW()); |
||
1138 | */ |
||
1139 | // To enable (make visible for students) the new Portfolio tool when creating a course it's necessary to create a new setting parameter |
||
1140 | /* |
||
1141 | INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable, access_url_locked) VALUES ('course_create_active_tools', 'portfolio', 'checkbox', 'Tools', 'true', 'CourseCreateActiveToolsTitle', 'CourseCreateActiveToolsComment', null, 'Portfolio', 1, 0, 0); |
||
1142 | */ |
||
1143 | //$_configuration['allow_portfolio_tool'] = false; |
||
1144 | // Allow advanced selection of who can view the posts and comments. It requires DB changes: |
||
1145 | // ALTER TABLE portfolio_comment ADD visibility SMALLINT DEFAULT 1 NOT NULL; |
||
1146 | // Then add the "@" symbol to the CPortfolioComment::$visibility property in the ORM\Column() line. |
||
1147 | //$_configuration['portfolio_advanced_sharing'] = false; |
||
1148 | // Show base course posts in session course. Requires DB changes and edit the Portfolio entity |
||
1149 | // adding the "@" symbol to the beginning of ORM\ManyToOne, ORM\JoinColumn, ORM\OneToMany lines for the Portfolio::$duplicatedFrom and Portfolio::$duplicates properties. |
||
1150 | /* |
||
1151 | ALTER TABLE portfolio ADD duplicated_from INT DEFAULT NULL; |
||
1152 | ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062FC4CB679 FOREIGN KEY (duplicated_from) REFERENCES portfolio (id) ON DELETE SET NULL; |
||
1153 | CREATE INDEX IDX_A9ED1062FC4CB679 ON portfolio (duplicated_from); |
||
1154 | */ |
||
1155 | //$_configuration['portfolio_show_base_course_post_in_sessions'] = false; |
||
1156 | // |
||
1157 | // Show all post in portfolio by alphabetical order instead of reverse date order. |
||
1158 | //$_configuration['portfolio_order_post_by_alphabetical_order'] = false; |
||
1159 | |||
1160 | // DEPRECATED: gradebook_enable_best_score is deprecated. Use gradebook_display_extra_stats instead. |
||
1161 | // Enable best score column in gradebook. Previously called disable_gradebook_stats |
||
1162 | //$_configuration['gradebook_enable_best_score'] = false; |
||
1163 | /* |
||
1164 | Enable specific columns in gradebook table. |
||
1165 | [1] = Ranking |
||
1166 | [2] = Best Score |
||
1167 | [3] = Average |
||
1168 | */ |
||
1169 | //$_configuration['gradebook_display_extra_stats'] = ['columns' => [1, 2, 3]]; |
||
1170 | |||
1171 | // Allow teachers to access student skills BT#14161 (skills setting must be enabled in the platform) |
||
1172 | //$_configuration['allow_teacher_access_student_skills'] = false; |
||
1173 | |||
1174 | // Allow sharing options for the documents inside a group |
||
1175 | //ALTER TABLE c_group_info ADD document_access INT DEFAULT 0 NOT NULL; |
||
1176 | //$_configuration['group_document_access'] = false; |
||
1177 | |||
1178 | // Allow sharing options for the documents inside a group category |
||
1179 | //ALTER TABLE c_group_category ADD document_access INT DEFAULT 0 NOT NULL; |
||
1180 | //$_configuration['group_category_document_access'] = false; |
||
1181 | |||
1182 | // Allow LP export to chamilo format (CourseBackup) |
||
1183 | //$_configuration['allow_lp_chamilo_export'] = false; |
||
1184 | |||
1185 | // Allow exercise auto launch |
||
1186 | //$_configuration['allow_exercise_auto_launch'] = false; |
||
1187 | // ALTER TABLE c_quiz ADD autolaunch TINYINT(1) DEFAULT 0; |
||
1188 | |||
1189 | // Enable speed controller in video player |
||
1190 | // $_configuration['video_features'] = ['features' => ['speed']]; |
||
1191 | // Hide the context menu on video player |
||
1192 | //$_configuration['video_context_menu_hidden'] = false; |
||
1193 | // Enable player renderers for YouTube, Vimeo, Facebook, DailyMotion, Twitch medias |
||
1194 | //$_configuration['video_player_renderers'] = ['renderers' => ['dailymotion', 'facebook', 'twitch', 'vimeo', 'youtube']]; |
||
1195 | |||
1196 | // Disable token verification when sending a message |
||
1197 | // $_configuration['disable_token_in_new_message'] = false; |
||
1198 | |||
1199 | // My courses session order. Possible field values: "start_date", "end_date", "name" Order values: "asc" or "desc" |
||
1200 | // $_configuration['my_courses_session_order'] = ['field' => 'end_date', 'order' => 'desc']; |
||
1201 | |||
1202 | // Allow set courses in session in read-only mode. Require DB changes: |
||
1203 | /* |
||
1204 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, filter, created_at) |
||
1205 | VALUES (2, 13, 'session_courses_read_only_mode', 'Lock Course In Session', 1, 1, 1, NOW()); |
||
1206 | */ |
||
1207 | // $_configuration['session_courses_read_only_mode'] = false; |
||
1208 | |||
1209 | // Allow SCORM packages when importing a course |
||
1210 | // $_configuration['allow_import_scorm_package_in_course_builder'] = false; |
||
1211 | |||
1212 | // Avoid all the scorms folders to be included by default in the partial course backup |
||
1213 | // and enable the scroms folders to be selected manualy |
||
1214 | //$_configuration['course_backup_allow_scorm_selection_in_select_form'] = false; |
||
1215 | |||
1216 | // Hide announcement "sent to" label |
||
1217 | // $_configuration['hide_announcement_sent_to_users_info'] = false; |
||
1218 | |||
1219 | // Hide gradebook graph. |
||
1220 | // $_configuration['gradebook_hide_graph'] = false; |
||
1221 | |||
1222 | // Hide gradebook table for student. |
||
1223 | // $_configuration['gradebook_hide_table'] = false; |
||
1224 | |||
1225 | // Hide gradebook "download report in PDF" button |
||
1226 | // $_configuration['gradebook_hide_pdf_report_button'] = false; |
||
1227 | |||
1228 | // Shows a link to the "Global gradebooks" page in the /index.php and /user_portal.php page. |
||
1229 | // It also enables the main/gradebook/all_my_gradebooks.php page. |
||
1230 | //$_configuration['show_all_my_gradebooks_page'] = false; |
||
1231 | |||
1232 | // Show pending survey link in user menu |
||
1233 | // $_configuration['show_pending_survey_in_menu'] = false; |
||
1234 | |||
1235 | // GDPR: European's General Data Protection Rules activation option |
||
1236 | // Set to true to disable the new personal data page inside the social network |
||
1237 | // menu |
||
1238 | // $_configuration['disable_gdpr'] = true; |
||
1239 | // Set the LinkedIn organization id BT#17468 |
||
1240 | //$_configuration['linkedin_organization_id'] = false; |
||
1241 | |||
1242 | // GDPR requires users to be informed of the Data Protection Officer name and |
||
1243 | // contact point. These can only be defined here for now, but will be moved to |
||
1244 | // web settings in the future. |
||
1245 | // Name of the person or organization that is responsible for the treatment of |
||
1246 | // personal info |
||
1247 | //$_configuration['data_protection_officer_name'] = ''; |
||
1248 | // A description of the role of the DP Officer in this context |
||
1249 | //$_configuration['data_protection_officer_role'] = ''; |
||
1250 | // An e-mail address where to contact the data protection officer for queries |
||
1251 | //$_configuration['data_protection_officer_email'] = ''; |
||
1252 | |||
1253 | // Show multiple conditions to user during sign up process |
||
1254 | // Example with a GDPR condition |
||
1255 | /*$_configuration['show_conditions_to_user'] = [ |
||
1256 | 'conditions' => [ |
||
1257 | [ |
||
1258 | 'variable' => 'gdpr', // internal extra field name |
||
1259 | 'display_text' => 'GDPRTitle', // checkbox title will be translated with get_lang('GDPRTitle') |
||
1260 | 'text_area' => 'GDPRTextArea', // this will be translated using get_lang('GDPRTextArea') |
||
1261 | ], |
||
1262 | [ |
||
1263 | 'variable' => 'my_terms', |
||
1264 | 'display_text' => 'My test conditions', |
||
1265 | 'text_area' => 'This is a long text area, with lot of terms and conditions ... ', |
||
1266 | ], |
||
1267 | ], |
||
1268 | ];*/ |
||
1269 | |||
1270 | // Make GDPR terms public (useful when using the platform for anonymous survey |
||
1271 | // invitations where users can leave personal info). |
||
1272 | // $_configuration['gdpr_terms_public'] = false; |
||
1273 | |||
1274 | // Hide LP item prerequisite label in the LP view |
||
1275 | //$_configuration['hide_accessibility_label_on_lp_item'] = true; |
||
1276 | |||
1277 | // Round score in exercise category export |
||
1278 | //$_configuration['exercise_category_round_score_in_export'] = false; |
||
1279 | |||
1280 | // Redirect index to url for logged in users |
||
1281 | // In this example the index.php will be redirected to user_portal.php for logged in users |
||
1282 | //$_configuration['redirect_index_to_url_for_logged_users'] = 'user_portal.php'; |
||
1283 | |||
1284 | // Teachers can CRUD classes |
||
1285 | // ALTER TABLE usergroup ADD author_id INT DEFAULT NULL; |
||
1286 | //$_configuration['allow_teachers_to_classes'] = false; |
||
1287 | |||
1288 | // Do not unsubscribe users from session nor course when users are unsubscribe to class |
||
1289 | // $_configuration['usergroup_do_not_unsubscribe_users_from_course_nor_session_on_user_unsubscribe'] = false; |
||
1290 | |||
1291 | // Do not unsubscribe users from course when courses are unsubscribe to class |
||
1292 | // $_configuration['usergroup_do_not_unsubscribe_users_from_course_on_course_unsubscribe'] = false; |
||
1293 | |||
1294 | // Do not unsubscribe users from session when sessions are unsubscribe to class |
||
1295 | // $_configuration['usergroup_do_not_unsubscribe_users_from_session_on_session_unsubscribe'] = false; |
||
1296 | |||
1297 | // Show all users in selector as initial list when subscribing users to class |
||
1298 | //$_configuration['usergroup_add_user_show_all_student_by_default'] = false; |
||
1299 | |||
1300 | // Validate user login via a webservice, Chamilo will send a "login" and "password" parameters |
||
1301 | // to the "myWebServiceFunctionToLogin" function, the result should be "1" if the user have access. |
||
1302 | /*$_configuration['webservice_validation'] = [ |
||
1303 | 'options' => [ |
||
1304 | 'wsdl' => 'https://example.com/soap?wsdl', |
||
1305 | 'check_login_function' => 'myWebServiceFunctionToLogin' |
||
1306 | ] |
||
1307 | ];*/ |
||
1308 | |||
1309 | // Hide the username when showing the complete name for a user. |
||
1310 | // Example: using api_get_user_info()['complete_name_with_username'] or $user->getCompleteNameWithUsername() |
||
1311 | //$_configuration['hide_username_with_complete_name'] = false; |
||
1312 | |||
1313 | // Hide the username in course chat |
||
1314 | //$_configuration['hide_username_in_course_chat'] = false; |
||
1315 | |||
1316 | // Allow multiple attempts in gradebook evaluations |
||
1317 | // CREATE TABLE gradebook_result_attempt (id INT AUTO_INCREMENT NOT NULL, result_id INT NOT NULL, score DOUBLE, comment LONGTEXT DEFAULT NULL, created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1318 | //$_configuration['gradebook_multiple_evaluation_attempts'] = false; |
||
1319 | |||
1320 | // Hide country flags in the language switcher |
||
1321 | // $_configuration['hide_flag_language_switcher'] = false; |
||
1322 | |||
1323 | // Hide complete name in who is online page |
||
1324 | // $_configuration['hide_complete_name_in_whoisonline'] = false; |
||
1325 | |||
1326 | // Block student publication edition BT#14985 |
||
1327 | // $_configuration['block_student_publication_edition'] = false; |
||
1328 | |||
1329 | // Block student publication add documents BT#14986 |
||
1330 | //$_configuration['block_student_publication_add_documents'] = false; |
||
1331 | |||
1332 | // Block teacher to modify a work score edition BT#14987 |
||
1333 | // $_configuration['block_student_publication_score_edition'] = false; |
||
1334 | |||
1335 | // Enable system to manage e-mail templates in users registration forms |
||
1336 | /*CREATE TABLE mail_template( |
||
1337 | id int not null primary key auto_increment, |
||
1338 | name varchar(255) not null, -- a friendly name for the template, to remember what it is like |
||
1339 | template text, -- the template content (in Twig format) |
||
1340 | type varchar(255) not null, -- the type of the mail (we can use current template names to fill that) |
||
1341 | created_at DATETIME NOT NULL, |
||
1342 | updated_at DATETIME NOT NULL, |
||
1343 | author_id INT NOT NULL, |
||
1344 | url_id INT NOT NULL, |
||
1345 | default_template TINYINT not null, |
||
1346 | system int not null default 0 -- whether it can be deleted or not (system = 1 means it's initially from Chamilo, any other template can be created/deleted/edited, but the ones with system=1 cannot) |
||
1347 | );*/ |
||
1348 | // $_configuration['mail_template_system'] = false; |
||
1349 | |||
1350 | // Enable filter by language for system and courses templates |
||
1351 | //ALTER TABLE system_template ADD language VARCHAR(40) NOT NULL DEFAULT 'english'; |
||
1352 | //Edit src/Chamilo/CoreBundle/Entity/SystemTemplate.php and add a '@' character in front of 'ORM\Column(name="language"' |
||
1353 | // $_configuration['template_activate_language_filter'] = false; |
||
1354 | |||
1355 | // Students can only upload one publication |
||
1356 | // $_configuration['allow_only_one_student_publication_per_user'] = false; |
||
1357 | |||
1358 | // Hide percentage in best/average gradebook results |
||
1359 | //$_configuration['hide_gradebook_percentage_user_result'] = true; |
||
1360 | |||
1361 | // Use exercise platform score settings in the gradebook graph |
||
1362 | // $_configuration['gradebook_use_exercise_score_settings_in_categories'] = true; |
||
1363 | |||
1364 | // Activate the view with ViewerJS for PDF files within the lessons for IPad and IPhone |
||
1365 | // $_configuration['allow_pdf_viewerjs_in_lp'] = false; |
||
1366 | |||
1367 | // Allow DRH user to access all visible session course announcements |
||
1368 | // $_configuration['allow_drh_access_announcement'] = false; |
||
1369 | |||
1370 | // Allow my personal files link in the homepage |
||
1371 | // $_configuration['allow_my_files_link_in_homepage'] = false; |
||
1372 | |||
1373 | // This option sets default parameters in the main/session/session_import.php |
||
1374 | /*$_configuration['session_import_settings'] = [ |
||
1375 | 'options' => [ |
||
1376 | 'session_exists_default_option' => '1', |
||
1377 | 'send_mail_default_option' => '1', |
||
1378 | ] |
||
1379 | ];*/ |
||
1380 | |||
1381 | /* |
||
1382 | * Fields visibility in the profile user page |
||
1383 | $_configuration['profile_fields_visibility'] = [ |
||
1384 | 'options' => [ |
||
1385 | 'vcard' => false, |
||
1386 | 'firstname' => false, |
||
1387 | 'lastname' => false, |
||
1388 | 'photo' => true, |
||
1389 | 'email' => true, |
||
1390 | 'chat' => true, |
||
1391 | 'terms_ville' => false, // extra field value |
||
1392 | ] |
||
1393 | ];*/ |
||
1394 | |||
1395 | // This option sets default parameters in the main/admin/user_import.php |
||
1396 | /*$_configuration['user_import_settings'] = [ |
||
1397 | 'options' => [ |
||
1398 | 'send_mail_default_option' => '1', |
||
1399 | ] |
||
1400 | ];*/ |
||
1401 | |||
1402 | // Disable all new exercise attempts in all the platform |
||
1403 | // $_configuration['exercises_disable_new_attempts'] = false; |
||
1404 | |||
1405 | // Improve speed when rendering gradebook student reports using Doctrine APCU cache |
||
1406 | // $_configuration['gradebook_use_apcu_cache'] = true; |
||
1407 | |||
1408 | /* |
||
1409 | Add a minimum time limit to be in the learning path |
||
1410 | in order to get the last item completed |
||
1411 | Requires a DB change: |
||
1412 | ALTER TABLE c_lp ADD accumulate_work_time INT NOT NULL; |
||
1413 | CREATE TABLE track_e_access_complete (id int(11) NOT NULL AUTO_INCREMENT, user_id int(11) NOT NULL, date_reg datetime NOT NULL, tool varchar(255) NOT NULL, tool_id int(11) NOT NULL, tool_id_detail int(11) NOT NULL, action varchar(255) NOT NULL, action_details varchar(255) NOT NULL, current_id int(11) NOT NULL, ip_user varchar(255) NOT NULL, user_agent varchar(255) NOT NULL, session_id int(11) NOT NULL, c_id int(11) NOT NULL, ch_sid varchar(255) NOT NULL, login_as int(11) NOT NULL, info longtext NOT NULL, url text NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=13989 DEFAULT CHARSET=utf8; |
||
1414 | CREATE INDEX user_course_session ON track_e_access_complete (user_id, c_id, session_id); |
||
1415 | Add course checkbox extra field "new_tracking_system" |
||
1416 | Add session checkbox extra field "new_tracking_system" |
||
1417 | Only applied for courses/sessions with extra field "new_tracking_system" to "1" |
||
1418 | */ |
||
1419 | //$_configuration['lp_minimum_time'] = false; |
||
1420 | |||
1421 | // Add collapsable option for user course categories |
||
1422 | // ALTER TABLE user_course_category ADD collapsed TINYINT(1) DEFAULT NULL; |
||
1423 | // $_configuration['allow_user_course_category_collapsable'] = false; |
||
1424 | |||
1425 | // Add collapsable option when showing the course list inside a session in userportal.php |
||
1426 | // ALTER TABLE session_rel_user ADD collapsed TINYINT(1) DEFAULT NULL; |
||
1427 | // Create a new session extra field called "collapsed" (checkbox yes/no - option) |
||
1428 | // $_configuration['allow_user_session_collapsable'] = false; |
||
1429 | |||
1430 | // Allow to session admins login as teachers |
||
1431 | //$_configuration['allow_session_admin_login_as_teacher'] = false; |
||
1432 | |||
1433 | // Allow gradebook stats |
||
1434 | // Requires to edit the GradebookLink.php And GradebookEvaluation.php files adding the "@" in the ORM phpdoc block |
||
1435 | /* ALTER TABLE gradebook_link ADD score_weight DOUBLE PRECISION DEFAULT NULL, ADD average_score DOUBLE PRECISION DEFAULT NULL, ADD best_score DOUBLE PRECISION DEFAULT NULL, ADD user_score_list LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)' ; |
||
1436 | ALTER TABLE gradebook_evaluation ADD score_weight DOUBLE PRECISION DEFAULT NULL, ADD average_score DOUBLE PRECISION DEFAULT NULL, ADD best_score DOUBLE PRECISION DEFAULT NULL, ADD user_score_list LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)' ; |
||
1437 | */ |
||
1438 | |||
1439 | //$_configuration['allow_gradebook_stats'] = false; |
||
1440 | |||
1441 | // Hide social media links |
||
1442 | //$_configuration['hide_social_media_links'] = false; |
||
1443 | |||
1444 | // Show chamilo unique question id in exercises |
||
1445 | // $_configuration['show_question_id'] = false; |
||
1446 | |||
1447 | // Show pagination if question list is bigger than "x" value, if 0 pagination will not appear. |
||
1448 | // Option only when building an exercise as a teacher |
||
1449 | // $_configuration['show_question_pagination'] = 100; |
||
1450 | |||
1451 | // Number of questions to show in every page |
||
1452 | // Option only when building an exercise as a teacher |
||
1453 | // $_configuration['question_pagination_length'] = 20; |
||
1454 | |||
1455 | // Teachers cannot delete an exercise/questions, change exercise visibility, download to qti, clean results |
||
1456 | // $_configuration['limit_exercise_teacher_access'] = false; |
||
1457 | |||
1458 | // Changes the row list when using jqgrid/sortable tables |
||
1459 | //$_configuration['table_row_list'] = ['options' => [50, 100, 200, 500]]; |
||
1460 | |||
1461 | // Default selected row in jqgrid/sortable tables |
||
1462 | //$_configuration['table_default_row'] = 50; |
||
1463 | |||
1464 | // Disable Chamilo.org announcements at the top of the admin page |
||
1465 | //$_configuration['admin_chamilo_announcements_disable'] = false; |
||
1466 | |||
1467 | /* |
||
1468 | Disable course report graphs |
||
1469 | 0 = Shown |
||
1470 | 1 = Hidden |
||
1471 | 2 = Click to show |
||
1472 | */ |
||
1473 | //$_configuration['hide_course_report_graph'] = 0; |
||
1474 | |||
1475 | // Visually "fold" forum categories by default |
||
1476 | // $_configuration['forum_fold_categories'] = false; |
||
1477 | |||
1478 | // Set extra fields as required in the inscription.php page |
||
1479 | /*$_configuration['required_extra_fields_in_inscription'] = [ |
||
1480 | 'options' => [ |
||
1481 | 'terms_ville', |
||
1482 | 'terms_paysresidence', |
||
1483 | ], |
||
1484 | ];*/ |
||
1485 | |||
1486 | /* Set extra fields as required in the profile.php page |
||
1487 | $_configuration['required_extra_fields_in_profile'] = [ |
||
1488 | 'options' => [ |
||
1489 | 'terms_villedustage' |
||
1490 | ], |
||
1491 | ]; |
||
1492 | */ |
||
1493 | |||
1494 | // Community manager users |
||
1495 | //$_configuration['community_managers_user_list'] = ['users' => [1]]; |
||
1496 | |||
1497 | // Hide global chat video |
||
1498 | //$_configuration['hide_chat_video'] = false; |
||
1499 | |||
1500 | // global forum in social network BT#15309 |
||
1501 | //$_configuration['global_forums_course_id'] = 0; |
||
1502 | |||
1503 | // Hide forum post revision checkbox |
||
1504 | //$_configuration['hide_forum_post_revision_language'] = false; |
||
1505 | |||
1506 | // Allow forum post revisions |
||
1507 | // Requires new forum_category and forum_post "language" extra fields (multiple select) |
||
1508 | //$_configuration['allow_forum_post_revisions'] = false; |
||
1509 | |||
1510 | // Allow forum category filter on language |
||
1511 | // Requires new forum_category "language" extra fields (multiple select) |
||
1512 | //$_configuration['allow_forum_category_language_filter'] = false; |
||
1513 | |||
1514 | //Allows to subscribe to notification of forums of the base course for users subscribed in a session |
||
1515 | //Only works if subscribe_users_to_forum_notifications is set to true in the course's settings |
||
1516 | //$_configuration['subscribe_users_to_forum_notifications_also_in_base_course'] = false; |
||
1517 | |||
1518 | // Allow to show users in a map, users need to have a coordinates extra field BT#15176 |
||
1519 | //$_configuration['allow_social_map_fields'] = ['fields' => ['terms_villedustage', 'terms_ville']]; |
||
1520 | |||
1521 | // Translate HTML based in the HTML "lang" attribute see BT#15166 |
||
1522 | //$_configuration['translate_html'] = false; |
||
1523 | |||
1524 | // Avoid add a reply-to header when a no-reply address is set. |
||
1525 | //$_configuration['mail_no_reply_avoid_reply_to'] = false; |
||
1526 | |||
1527 | // Allows to user add feedback (likes or dislikes) to posts in social wall. Requires DB changes: |
||
1528 | // CREATE TABLE message_feedback (id BIGINT AUTO_INCREMENT NOT NULL, message_id BIGINT NOT NULL, user_id INT NOT NULL, liked TINYINT(1) DEFAULT '0' NOT NULL, disliked TINYINT(1) DEFAULT '0' NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_DB0F8049537A1329 (message_id), INDEX IDX_DB0F8049A76ED395 (user_id), INDEX idx_message_feedback_uid_mid (message_id, user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1529 | // ALTER TABLE message_feedback ADD CONSTRAINT FK_DB0F8049537A1329 FOREIGN KEY (message_id) REFERENCES message (id) ON DELETE CASCADE; |
||
1530 | // ALTER TABLE message_feedback ADD CONSTRAINT FK_DB0F8049A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
1531 | // In 1.11.8, before enabling this feature, you also need to: |
||
1532 | // - edit src/Chamilo/CoreBundle/Entity/MessageFeedback.php |
||
1533 | // and follow the instructions about the @ORM\Entity() line |
||
1534 | // - edit src/Chamilo/CoreBundle/Entity/Message.php |
||
1535 | // and follow the instructions about the @ORM\OneToMany line for the $likes property |
||
1536 | // - launch "composer install" to rebuild the autoload.php |
||
1537 | //$_configuration['social_enable_messages_feedback'] = false; |
||
1538 | |||
1539 | // Disable dislike button in the social network. |
||
1540 | //$_configuration['disable_dislike_option'] = false; |
||
1541 | |||
1542 | // Block student's access to the course documents when using the ckeditor "Browse server" button |
||
1543 | //$_configuration['block_editor_file_manager_for_students'] = false; |
||
1544 | // Show a language flag next to the user picture in the social network |
||
1545 | //$_configuration['social_show_language_flag_in_profile'] = false; |
||
1546 | |||
1547 | // Add subject and body in the mailto: footer |
||
1548 | //$_configuration['add_user_course_information_in_mailto'] = false; |
||
1549 | |||
1550 | // Add gradebook score style configuration in the flat view |
||
1551 | // See api.lib.php in order to find the options: examples SCORE_DIV = 1, SCORE_PERCENT = 2, etc |
||
1552 | //$_configuration['gradebook_report_score_style'] = 1; // Means the score will be (X / Y) "SCORE_DIV" |
||
1553 | |||
1554 | // Allow show the score display custom (when it is enabled) in a standalone column in gradebook |
||
1555 | //$_configuration['gradebook_score_display_custom_standalone'] = false; |
||
1556 | |||
1557 | // Blocks "my files" access to anon users |
||
1558 | //$_configuration['block_my_files_access'] = false; |
||
1559 | |||
1560 | // Allow .htaccess files in SCORM packages |
||
1561 | //$_configuration['allow_htaccess_import_from_scorm'] = false; |
||
1562 | |||
1563 | // Allow general certificate |
||
1564 | //$_configuration['allow_general_certificate'] = false; |
||
1565 | |||
1566 | // Allow exercise categories |
||
1567 | // CREATE TABLE c_exercise_category (id BIGINT AUTO_INCREMENT NOT NULL, c_id INT NOT NULL, name VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, position INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1568 | // ALTER TABLE c_quiz ADD exercise_category_id INT DEFAULT NULL; |
||
1569 | // enable @ORM in CExerciseCategory adn CQuiz::exerciseCategoryId |
||
1570 | //$_configuration['allow_exercise_categories'] = false; |
||
1571 | |||
1572 | // Send new user inscription notification only to general admins (table settings_current = emailAdministrator) |
||
1573 | //$_configuration['send_inscription_notification_to_general_admin_only'] = false; |
||
1574 | |||
1575 | // Allow extra settings for the quiz results page |
||
1576 | // ALTER TABLE c_quiz ADD page_result_configuration LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)'; |
||
1577 | //$_configuration['allow_quiz_results_page_config'] = false; |
||
1578 | |||
1579 | // Allows you to show or hide the number of the question in the exercises |
||
1580 | // ALTER TABLE c_quiz ADD COLUMN hide_question_number int NULL DEFAULT 0 COMMENT 'Show/Hide question number in quiz'; |
||
1581 | //$_configuration['quiz_hide_question_number'] = false; |
||
1582 | |||
1583 | // Allows you to show or hide the attempts table of an exercise on start page |
||
1584 | // ALTER TABLE c_quiz ADD COLUMN hide_attempts_table int NULL DEFAULT 0 COMMENT 'Show/Hide attempts table of an exercise on start page'; |
||
1585 | //$_configuration['quiz_hide_attempts_table_on_start_page'] = false; |
||
1586 | |||
1587 | // Allow multiple options for the exercise "save answer" option |
||
1588 | // ALTER TABLE c_quiz MODIFY COLUMN save_correct_answers INT NULL DEFAULT NULL; |
||
1589 | //$_configuration['allow_quiz_save_correct_options'] = false; |
||
1590 | |||
1591 | // Show languages flags by country in the language switcher. |
||
1592 | //$_configuration['language_flags_by_country'] = false; |
||
1593 | |||
1594 | // Allow compilatio plagiarism prevention tool |
||
1595 | /* |
||
1596 | CREATE TABLE c_plagiarism_compilatio_docs ( |
||
1597 | id INT AUTO_INCREMENT NOT NULL, |
||
1598 | c_id int(11) NOT NULL, |
||
1599 | document_id int(11) NOT NULL, |
||
1600 | compilatio_id varchar(40) CHARACTER SET utf8 NOT NULL, |
||
1601 | PRIMARY KEY (id) |
||
1602 | ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1603 | |||
1604 | // If table exists already |
||
1605 | ALTER TABLE c_plagiarism_compilatio_docs drop primary key; |
||
1606 | ALTER TABLE c_plagiarism_compilatio_docs ADD COLUMN id INT AUTO_INCREMENT NOT NULL PRIMARY KEY; |
||
1607 | ALTER TABLE c_plagiarism_compilatio_docs CHANGE COLUMN id_doc document_id INT NOT NULL; |
||
1608 | ALTER TABLE c_plagiarism_compilatio_docs MODIFY compilatio_id VARCHAR(40) NOT NULL; |
||
1609 | |||
1610 | */ |
||
1611 | //$_configuration['allow_compilatio_tool'] = false; |
||
1612 | /*$_configuration['compilatio_tool'] = [ |
||
1613 | 'settings' => [ |
||
1614 | 'key' => '', |
||
1615 | 'api_url' => 'https://app.compilatio.net/api', |
||
1616 | 'proxy_host' => '', |
||
1617 | 'proxy_port' => '', |
||
1618 | 'max_filesize' => '', |
||
1619 | ] |
||
1620 | ];*/ |
||
1621 | |||
1622 | // Allow user to enter a LP item if it was validated in another session. |
||
1623 | // $_configuration['validate_lp_prerequisite_from_other_session'] = false; |
||
1624 | |||
1625 | // 1 = SCORE_AVERAGE (5 / 10) |
||
1626 | // 2 = SCORE_PERCENT (50%) |
||
1627 | // 3 = SCORE_DIV_PERCENT (5 / 10 (50%)) |
||
1628 | // $_configuration['exercise_score_format'] = 0; |
||
1629 | |||
1630 | // Hide course sidebar |
||
1631 | //$_configuration['hide_course_sidebar'] = true; |
||
1632 | |||
1633 | // Allow online users by user profile |
||
1634 | // 1 = COURSEMANAGER (teacher) |
||
1635 | // 5 = STUDENT |
||
1636 | // 11 = PLATFORM_ADMIN |
||
1637 | // Example: The online users will be available only for teachers and students. |
||
1638 | //$_configuration['allow_online_users_by_status'] = ['status' => [1, 5]]; |
||
1639 | |||
1640 | // Allow add one column by each user extra field indicated to the Gradebook Flatview for each user. |
||
1641 | // $_configuration['gradebook_flatview_extrafields_columns'] = ['variables' => []]; |
||
1642 | |||
1643 | // Show hidden exercises that were added to a LP in the exercise list |
||
1644 | // $_configuration['show_hidden_exercise_added_to_lp'] = true; |
||
1645 | |||
1646 | // Show full lp item title |
||
1647 | // $_configuration['show_full_lp_item_title_in_edition'] = false; |
||
1648 | |||
1649 | // Hide course catalog welcome message |
||
1650 | //$_configuration['hide_course_catalog_welcome'] = true; |
||
1651 | |||
1652 | // Survey |
||
1653 | // ALTER TABLE c_survey_question ADD parent_id INT(11) DEFAULT 0 NOT NULL; |
||
1654 | // ALTER TABLE c_survey_question ADD parent_option_id INT(11) DEFAULT 0 NOT NULL; |
||
1655 | //$_configuration['survey_question_dependency'] = true; |
||
1656 | |||
1657 | // Student publication: force to download document before upload an assignment. |
||
1658 | // $_configuration['force_download_doc_before_upload_work' ] = true; |
||
1659 | |||
1660 | // Allow teachers to decide which skills are assigned through their courses |
||
1661 | // $_configuration['skills_teachers_can_assign_skills'] = false; |
||
1662 | |||
1663 | // Changes the ck editor enter mode value. Default: CKEDITOR.ENTER_P |
||
1664 | // $_configuration['ck_editor_enter_mode_value'] = 'CKEDITOR.ENTER_BR'; |
||
1665 | // Set CKEDITOR config for Vimeo Embed plugin |
||
1666 | //$_configuration['ckeditor_vimeo_embed'] = [ |
||
1667 | // 'config' => [ |
||
1668 | // 'client_id' => '', |
||
1669 | // 'client_secret' => '', |
||
1670 | // 'access_token' => '', |
||
1671 | // ], |
||
1672 | //]; |
||
1673 | |||
1674 | // CREATE TABLE user_career (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, career_id INT NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; |
||
1675 | // ALTER TABLE user_career ADD COLUMN extra_data LONGTEXT; |
||
1676 | // ALTER TABLE user_career ADD COLUMN updated_at DATETIME NOT NULL; |
||
1677 | // $_configuration['allow_career_users'] = false; |
||
1678 | |||
1679 | // LP view menu location. Options: "left" or "right" |
||
1680 | // $_configuration['lp_menu_location'] = 'left'; |
||
1681 | |||
1682 | // Hide the "Open in new window" button in learning paths when viewing long content (using the button disconnects SCORM tracking - more details in #4954) |
||
1683 | //$_configuration['lp_ios_hide_open_in_new_window_button'] = false; |
||
1684 | |||
1685 | // Show notification events |
||
1686 | /*CREATE TABLE IF NOT EXISTS notification_event ( |
||
1687 | id INT unsigned NOT NULL auto_increment PRIMARY KEY, |
||
1688 | title VARCHAR(255), |
||
1689 | content TEXT, |
||
1690 | link TEXT, |
||
1691 | persistent INT, |
||
1692 | day_diff INT, |
||
1693 | event_type VARCHAR(255) |
||
1694 | ); |
||
1695 | ALTER TABLE notification_event ADD COLUMN event_id INT NULL; |
||
1696 | CREATE TABLE IF NOT EXISTS notification_event_rel_user ( |
||
1697 | id INT UNSIGNED AUTO_INCREMENT NOT NULL, |
||
1698 | event_id INT unsigned, |
||
1699 | user_id INT, |
||
1700 | INDEX FK_EVENT (event_id), |
||
1701 | INDEX FK_USER (user_id), |
||
1702 | PRIMARY KEY (id) |
||
1703 | ); |
||
1704 | ALTER TABLE notification_event_rel_user ADD CONSTRAINT FK_EVENT FOREIGN KEY (event_id) REFERENCES notification_event (id) ON DELETE CASCADE; |
||
1705 | ALTER TABLE notification_event_rel_user ADD CONSTRAINT FK_USER FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
1706 | */ |
||
1707 | // create new user text extra field called 'notification_event' to save the persistent settings. |
||
1708 | // $_configuration['notification_event'] = false; |
||
1709 | |||
1710 | // Add help text to put 2 names in registration form |
||
1711 | //$_configuration['registration_add_helptext_for_2_names'] = false; |
||
1712 | |||
1713 | // Allow career/promotions in global announcements |
||
1714 | // ALTER TABLE sys_announcement ADD COLUMN career_id INT DEFAULT 0; |
||
1715 | // ALTER TABLE sys_announcement ADD COLUMN promotion_id INT DEFAULT 0; |
||
1716 | //$_configuration['allow_careers_in_global_announcements'] = false; |
||
1717 | |||
1718 | // Allow career/promotions in global calendar. Require DB changes: |
||
1719 | // ALTER TABLE sys_calendar ADD COLUMN career_id INT DEFAULT 0; |
||
1720 | // ALTER TABLE sys_calendar ADD COLUMN promotion_id INT DEFAULT 0; |
||
1721 | //$_configuration['allow_careers_in_global_agenda'] = false; |
||
1722 | |||
1723 | // Hide start/end dates in "My courses" page (user_portal.php) |
||
1724 | //$_configuration['hide_session_dates_in_user_portal'] = false; |
||
1725 | |||
1726 | // Catalog search settings visibility |
||
1727 | /*$_configuration['catalog_settings'] = [ |
||
1728 | 'sessions' => [ |
||
1729 | 'by_title' => true, |
||
1730 | 'by_date' => true, |
||
1731 | 'by_tag' => true, |
||
1732 | 'show_session_info' => true, |
||
1733 | 'show_session_date' => true, |
||
1734 | ], |
||
1735 | 'courses' => [ |
||
1736 | 'by_title' => true, |
||
1737 | ], |
||
1738 | ];*/ |
||
1739 | |||
1740 | // Enable learning paths with only one SCO item to use the score returned by |
||
1741 | // the SCO as an indicator of progress of the whole learning path |
||
1742 | // Before enabling, make sure you added an LP extra field of type int, called use_score_as_progress |
||
1743 | // $_configuration['lp_score_as_progress_enable'] = false; |
||
1744 | |||
1745 | // Use this link as the "Forgot password?" link instead of the default. This setting should be transformed into a hook for plugins at a later time |
||
1746 | //$_configuration['pass_reminder_custom_link'] = ''; |
||
1747 | |||
1748 | // In Scorm comunication use the username instead of the user_id |
||
1749 | //$_configuration['scorm_api_username_as_student_id'] = false; |
||
1750 | |||
1751 | // Zoom in description images quiz |
||
1752 | // $_configuration['quiz_image_zoom'] = [ |
||
1753 | // 'options' => [ |
||
1754 | // 'zoomWindowWidth' => 400, |
||
1755 | // 'zoomWindowHeight' => 400, |
||
1756 | // ] |
||
1757 | // ]; |
||
1758 | |||
1759 | // In Scorm comunication use a specific extra field instead of the user_id |
||
1760 | //$_configuration['scorm_api_extrafield_to_use_as_student_id'] = ''; |
||
1761 | |||
1762 | // LMS will try to update SCO status every time the status is not sent by the SCO |
||
1763 | //$_configuration['scorm_lms_update_sco_status_all_time'] = false; |
||
1764 | |||
1765 | // Show online user only to Administrators |
||
1766 | //$_configuration['whoisonline_only_for_admin'] = false; |
||
1767 | |||
1768 | // Prevent going back to previous questions |
||
1769 | // ALTER TABLE c_quiz ADD COLUMN prevent_backwards INT DEFAULT 0; |
||
1770 | //$_configuration['quiz_prevent_backwards_move'] = false; |
||
1771 | |||
1772 | // Allow third party plugins to be uploaded through a form in the plugins section |
||
1773 | //$_configuration['plugin_upload_enable'] = false; |
||
1774 | |||
1775 | // ALTER TABLE session ADD COLUMN status INT DEFAULT 0; |
||
1776 | // $_configuration['allow_session_status'] = false; |
||
1777 | |||
1778 | // Sets the sender id when using the script tests/scripts/disable_user_conditions.php |
||
1779 | // $_configuration['disable_user_conditions_sender_id'] = 0; |
||
1780 | |||
1781 | // Set the default tab in the admin session list. Values: all, close, active, custom. |
||
1782 | //$_configuration['default_session_list_view'] = 'all'; |
||
1783 | |||
1784 | // Search user by extra field in the user list. |
||
1785 | //$_configuration['user_search_on_extra_fields'] = ['extra_fields' => ['variable1', 'variable2']]; |
||
1786 | |||
1787 | // user subscription to a session rather than to a base course |
||
1788 | // user session is created at first subscription |
||
1789 | //$_configuration['catalog_course_subscription_in_user_s_session'] = false; |
||
1790 | // user session duration in days - after the session end date, more subscriptions are prevented |
||
1791 | //$_configuration['user_s_session_duration'] = 3*365; |
||
1792 | // id of the admin to attach user session |
||
1793 | //$_configuration['session_automatic_creation_user_id'] = 1; |
||
1794 | |||
1795 | // Skip scorm package file names clean up |
||
1796 | //$_configuration['skip_scorm_package_clean_up'] = false; |
||
1797 | |||
1798 | // Course chat: Send message on button click only, if false then send on enter too. |
||
1799 | //$_configuration['course_chat_send_message_only_on_button'] = true; |
||
1800 | |||
1801 | // Course catalog show extra fields (visible and filtered) |
||
1802 | //$_configuration['allow_course_extra_field_in_catalog'] = false; |
||
1803 | |||
1804 | // Course catalog links behaviour. |
||
1805 | /* |
||
1806 | $_configuration['course_catalog_settings'] = [ |
||
1807 | 'link_settings' => [ |
||
1808 | 'info_url' => 'course_description_popup', // course description popup page |
||
1809 | 'title_url' => 'course_home', // Course home URL |
||
1810 | 'image_url' => 'course_about', // Course about URL |
||
1811 | ], |
||
1812 | 'hide_course_title' |
||
1813 | 'redirect_after_subscription' => 'course_home', // or 'course_catalog' to stay in the page |
||
1814 | 'extra_fields_in_search_form' => ['variable1', 'variable2'], |
||
1815 | 'extra_fields_in_course_block' => ['variable3', 'variable4'], |
||
1816 | 'standard_sort_options' => [ |
||
1817 | // 1 means allow sorting in ascending order |
||
1818 | // -1 means allow sorting in descending order |
||
1819 | 'title' => 1, |
||
1820 | 'creation_date' => -1, |
||
1821 | 'count_users' => -1, // subscription count |
||
1822 | 'point_info/point_average' => -1, // average score |
||
1823 | 'point_info/total_score' => -1, // score sum |
||
1824 | 'point_info/users' => -1, // vote count |
||
1825 | ], |
||
1826 | 'extra_field_sort_options' => [ |
||
1827 | 'variable5' => -1, |
||
1828 | 'variable6' => 1, |
||
1829 | ], |
||
1830 | 'pre_filter_on_language' => 1, // By default, filter the courses catalogue on user language (prevents searching without language) |
||
1831 | ]; |
||
1832 | */ |
||
1833 | |||
1834 | // Display the course catalog in home page |
||
1835 | //$_configuration['course_catalog_display_in_home'] = false; |
||
1836 | |||
1837 | // Page "My Courses" shows specific course extra fields (CourseManager::getExtraFieldsToBePresented) |
||
1838 | /*$_configuration['my_course_course_extrafields_to_be_presented'] = [ |
||
1839 | 'fields' => ['mots_cles', 'duree_en_min', 'format'], |
||
1840 | ];*/ |
||
1841 | |||
1842 | // Disable fields to add an attachment when creating and announcement. |
||
1843 | //$_configuration['disable_announcement_attachment'] = false; |
||
1844 | |||
1845 | // Disable sending emails. |
||
1846 | //$_configuration['disable_send_mail'] = false; |
||
1847 | |||
1848 | // CKEditor font names |
||
1849 | /*$_configuration['ck_editor_font_names'] = [ |
||
1850 | 'names' => [ |
||
1851 | 'Arial' => 'Arial, Helvetica, sans-serif', |
||
1852 | 'Comic Sans MS' => 'Comic Sans MS, cursive', |
||
1853 | 'Courier New' => 'Courier New, Courier, monospace', |
||
1854 | 'Georgia' => 'Georgia, serif', |
||
1855 | 'Lucida Sans Unicode' => 'Lucida Sans Unicode, Lucida Grande, sans-serif', |
||
1856 | 'Tahoma' => 'Tahoma, Geneva, sans-serif', |
||
1857 | 'Times New Roman' => 'Times New Roman, Times, serif', |
||
1858 | 'Trebuchet MS' => 'Trebuchet MS, Helvetica, sans-serif', |
||
1859 | 'Verdana' => 'Verdana, Geneva, sans-serif', |
||
1860 | ] |
||
1861 | ];*/ |
||
1862 | |||
1863 | /* Show download files button after finishing all LP. Example: ABC is the course code, and 1 and 100 are the doc id |
||
1864 | $_configuration['download_files_after_all_lp_finished'] = ['courses' => ['ABC' => [1, 100]]]; |
||
1865 | */ |
||
1866 | |||
1867 | // Show/Hide password field in user profile. Adds a customizable link depending on the user status. |
||
1868 | /* |
||
1869 | $_configuration['auth_password_links'] = [ |
||
1870 | 'profiles' => [ |
||
1871 | 5 => [ |
||
1872 | 'azure' => [ |
||
1873 | 'show_password_field' => false, |
||
1874 | 'extra_link' => '<h4>Change!</h4><a href="www.example.com">Wachtwoord aanpassen</span></a>' |
||
1875 | ], |
||
1876 | 'extldap' => [ |
||
1877 | 'show_password_field' => true, |
||
1878 | 'extra_link' => '<h4>Change!</h4><a href="www.example.com">Wachtwoord aanpassen</span></a>' |
||
1879 | ] |
||
1880 | ] |
||
1881 | ] |
||
1882 | ]; |
||
1883 | */ |
||
1884 | |||
1885 | // Show unsubscribe buttons on page "My courses" |
||
1886 | //$_configuration['enable_unsubscribe_button_on_my_course_page'] = false; |
||
1887 | |||
1888 | // Allow LP category in sessions. |
||
1889 | // ALTER TABLE c_lp_category ADD COLUMN session_id INT(11) DEFAULT NULL; |
||
1890 | //$_configuration['allow_session_lp_category'] = false; |
||
1891 | |||
1892 | // Enable recording of all answers (even temporary) in the track_e_attempt_recording table |
||
1893 | // This requires a column to be added to the table with the following query: |
||
1894 | // ALTER TABLE track_e_attempt_recording ADD COLUMN answer longtext default '' AFTER question_id; |
||
1895 | // This is an experimental feature, known to create issues in the |
||
1896 | // exercise_report.php page when wanting to grade an attempt (due to usage in |
||
1897 | // get_exam_results_data()). |
||
1898 | //$_configuration['quiz_answer_extra_recording'] = false; |
||
1899 | |||
1900 | // Disable clean results for teachers |
||
1901 | // $_configuration['disable_clean_exercise_results_for_teachers'] = true; |
||
1902 | |||
1903 | // Show certainty degree question result in Exercises |
||
1904 | // $_configuration['show_exercise_question_certainty_ribbon_result'] = false; |
||
1905 | |||
1906 | //Allows to add increment in minutes to the date range component timepicker, example: 5,10,30 minutes |
||
1907 | //$_configuration['timepicker_increment'] = 5; |
||
1908 | |||
1909 | //Allows teachers to edit survey questions after students have answered them |
||
1910 | //$_configuration['survey_allow_answered_question_edit'] = false; |
||
1911 | |||
1912 | // Allows prevent to the user before leaving a learning path |
||
1913 | //$_configuration['lp_prevents_beforeunload'] = false; |
||
1914 | |||
1915 | // Disable slideshow documents |
||
1916 | //$_configuration['disable_slideshow_documents'] = false; |
||
1917 | |||
1918 | // Disable search documents |
||
1919 | //$_configuration['disable_search_documents'] = false; |
||
1920 | |||
1921 | // Disable available space in the document tool |
||
1922 | //$_configuration['disable_document_quota_message_for_students'] = false; |
||
1923 | |||
1924 | // Show a donation suggestion message on the course creation page |
||
1925 | //$_configuration['course_creation_donate_message_show'] = false; |
||
1926 | //$_configuration['course_creation_donate_link'] = '<some donate button html>'; |
||
1927 | |||
1928 | // Allow my student publications page |
||
1929 | //$_configuration['allow_my_student_publication_page'] = false; |
||
1930 | |||
1931 | // Show handpicked "popular" courses on the home page instead of users-chosen |
||
1932 | // courses. |
||
1933 | // Create an extra field for courses called "popular_courses" (type CHECKBOX) OR |
||
1934 | // INSERT extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) |
||
1935 | // VALUES (2, 13, 'popular_courses', 'Popular course', 1, 1, NOW()); |
||
1936 | // $_configuration['popular_courses_handpicked'] = false; |
||
1937 | |||
1938 | // Default items per page in main/mySpace/users.php |
||
1939 | // $_configuration['my_space_users_items_per_page'] = 10; |
||
1940 | |||
1941 | // Add teachers column in course list. |
||
1942 | // $_configuration['add_teachers_in_course_list'] = false; |
||
1943 | |||
1944 | // Allow teachers and admins to see students as friends on social network |
||
1945 | // $_configuration['social_make_teachers_friend_all'] = false; |
||
1946 | |||
1947 | // Prevent the use of images copy-paste as base64 in the editor to avoid |
||
1948 | // filling the database with images |
||
1949 | //$_configuration['ck_editor_block_image_copy_paste'] = false; |
||
1950 | |||
1951 | // Shows a link to the "my lps" page in the /index.php and /user_portal.php page. |
||
1952 | // It also enables the main/lp/my_list.php page. |
||
1953 | //$_configuration['show_my_lps_page'] = false; |
||
1954 | |||
1955 | // Disables access to the main/lp/my_list.php page |
||
1956 | //$_configuration['disable_my_lps_page'] = false; |
||
1957 | |||
1958 | // When exercise is finished send results by email to users, depending the settings below: |
||
1959 | // Requires a new Exercise Extra field type called with variable = "notifications". |
||
1960 | /*$_configuration['exercise_finished_notification_settings'] = [ |
||
1961 | 'notification_teacher' => [ // Notification label |
||
1962 | 'for teacher' => [ // for teacher |
||
1963 | 'send_notification_if_user_in_extra_field' => [ |
||
1964 | 'company_variable' => ['Company A', 'Company B'], |
||
1965 | ], |
||
1966 | 'email' => '[email protected],[email protected]', // multiple emails allowed |
||
1967 | 'attempts' => [ |
||
1968 | [ |
||
1969 | 'is_block_by_percentage' => true, |
||
1970 | 'status' => 'passed', // passed/failed/all (depends in the exercise pass %) |
||
1971 | 'content' => 'MailAttemptPassed', // exercise extra field |
||
1972 | 'content_default' => 'Hi, ((user_lastname)) ', // value if MailAttemptPassed is empty |
||
1973 | 'add_pdf' => 'PdfExerciseExtraField', // exercise extra field |
||
1974 | ], |
||
1975 | [ |
||
1976 | 'status' => 'failed', |
||
1977 | 'content' => 'MailAttemptFailed', |
||
1978 | ], |
||
1979 | [ |
||
1980 | 'status' => 'all', |
||
1981 | 'content' => 'MailAttemptAll', |
||
1982 | ], |
||
1983 | [ |
||
1984 | 'status' => 'all', |
||
1985 | 'attempt' => 1, |
||
1986 | 'content' => 'MailAttemptAttempt1', // exercise extra field, |
||
1987 | ], |
||
1988 | [ |
||
1989 | 'status' => 'failed', |
||
1990 | 'attempt' => 2, |
||
1991 | 'content' => 'MailAttemptFailed2', // exercise extra field, |
||
1992 | // if Exercise failed and attempt = 2 then the student will be subscribe to course code: |
||
1993 | 'post_actions' => [ |
||
1994 | 'subscribe_student_to_courses' => ['SECOND_ATTEMPT'], |
||
1995 | ], |
||
1996 | ], |
||
1997 | ], |
||
1998 | ], |
||
1999 | 'for admin' => [ |
||
2000 | 'email' => '[email protected]', |
||
2001 | 'attempts' => [ |
||
2002 | [ |
||
2003 | 'status' => 'failed', |
||
2004 | 'content' => 'MailAttemptFailed', |
||
2005 | ], |
||
2006 | ], |
||
2007 | ], |
||
2008 | ], |
||
2009 | 'notification_coach' => [ // Label |
||
2010 | 'for coach ' => [ // for teacher |
||
2011 | 'email' => '[email protected]', |
||
2012 | 'attempts' => [ |
||
2013 | [ |
||
2014 | 'status' => 'passed', |
||
2015 | 'content' => 'MailAttemptPassed', // exercise extra field, |
||
2016 | ], |
||
2017 | [ |
||
2018 | 'status' => 'failed', |
||
2019 | 'content' => 'MailAttemptFailed', // exercise extra field, |
||
2020 | ], |
||
2021 | ], |
||
2022 | ], |
||
2023 | ], |
||
2024 | ];*/ |
||
2025 | |||
2026 | // After a user updates his profile, send notifications. |
||
2027 | /*$_configuration['user_notification_settings'] = [ |
||
2028 | 'notification1' => [ // Notification label |
||
2029 | 'email' => '[email protected],[email protected]', // multiple emails allowed |
||
2030 | 'sender_email' => '[email protected]', |
||
2031 | //'if_extra_field_changes' => ['variable1', 'variable2'], |
||
2032 | 'if_field_changes' => ['phone', 'email'], |
||
2033 | 'subject' => 'User profile update', |
||
2034 | 'content' => '/mail/user_profile_update.dist.tpl', |
||
2035 | ], |
||
2036 | ];*/ |
||
2037 | |||
2038 | // Shows a marker if the course was shared in other portals. |
||
2039 | //$_configuration['multiple_access_url_show_shared_course_marker'] = false; |
||
2040 | |||
2041 | // Show official_code and order user based on this field in the multiple access url user management page |
||
2042 | //$_configuration['multiple_access_url_user_management_show_and_order_by_official_code'] = false; |
||
2043 | |||
2044 | // Add option to copy a session with its course-session content BT#17832 |
||
2045 | //$_configuration['duplicate_specific_session_content_on_session_copy'] = false; |
||
2046 | |||
2047 | // Allow add usergroups to a LP BT#17854 |
||
2048 | //CREATE TABLE c_lp_rel_usergroup (id INT AUTO_INCREMENT NOT NULL, lp_id INT NOT NULL, usergroup_id INT NOT NULL, c_id INT NOT NULL, session_id INT, created_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
2049 | //CREATE TABLE c_lp_category_rel_usergroup (id INT AUTO_INCREMENT NOT NULL, lp_category_id INT NOT NULL, usergroup_id INT NOT NULL, c_id INT NOT NULL, session_id INT, created_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
2050 | //$_configuration['allow_lp_subscription_to_usergroups'] = false; |
||
2051 | |||
2052 | // Gradebook student pdf export settings |
||
2053 | /*$_configuration['gradebook_pdf_export_settings'] = [ |
||
2054 | 'hide_score_weight' => true, |
||
2055 | 'hide_feedback_textarea' => true, |
||
2056 | ];*/ |
||
2057 | |||
2058 | // Use exercise score in platform settings in gradebook total rows/columns. |
||
2059 | //$_configuration['gradebook_use_exercise_score_settings_in_total'] = false; |
||
2060 | |||
2061 | // Use exercise score in platform settings in gradebook total rows/columns. |
||
2062 | //$_configuration['gradebook_use_exercise_score_settings_in_total'] = false; |
||
2063 | |||
2064 | // Show a link on the results page to download an answers report |
||
2065 | //$_configuration['quiz_results_answers_report'] = false; |
||
2066 | |||
2067 | // Hide the breadcrumb navigation (for example if you don't want users to go |
||
2068 | // sniffing around a specific course). Should be combined with hiding the menu |
||
2069 | //$_configuration['breadcrumb_hide'] = false; |
||
2070 | |||
2071 | // Hide the sidebar completely to avoid users navigating away. |
||
2072 | // Warning: this currently leaves a weird empty space where the sidebar should |
||
2073 | // be. We recommend using this only in very specific circumstances. |
||
2074 | //$_configuration['sidebar_hide'] = false; |
||
2075 | |||
2076 | // Block question categories BT#17789 |
||
2077 | //ALTER TABLE track_e_exercises ADD COLUMN blocked_categories LONGTEXT; |
||
2078 | // Requires an exercise extra field "block_category" type checkbox (Yes) |
||
2079 | //$_configuration['block_category_questions'] = false; |
||
2080 | |||
2081 | // Make questions mandatory selectable when using question select type = 5 (category-random) |
||
2082 | //ALTER TABLE c_quiz_question_rel_category ADD COLUMN mandatory INT DEFAULT 0; |
||
2083 | //$_configuration['allow_mandatory_question_in_category'] = false; |
||
2084 | |||
2085 | // Discard orphan questions from course copies/backups |
||
2086 | //$_configuration['quiz_discard_orphan_in_course_export'] = false; |
||
2087 | |||
2088 | // Resource sequence: Validate course in the same session. |
||
2089 | //$_configuration['course_sequence_valid_only_in_same_session'] = false; |
||
2090 | |||
2091 | // Allows to show the sequence graphic in the course intro |
||
2092 | //$_configuration['resource_sequence_show_dependency_in_course_intro'] = false; |
||
2093 | |||
2094 | // Allow time per question. BT#17791 |
||
2095 | // Requires a question text extra field called "time", value in seconds. |
||
2096 | // ALTER TABLE track_e_attempt ADD COLUMN seconds_spent INT; |
||
2097 | //$_configuration['allow_time_per_question'] = true; |
||
2098 | |||
2099 | // Disable change user visibility tool icon. |
||
2100 | //$_configuration['disable_change_user_visibility_for_public_courses'] = true; |
||
2101 | |||
2102 | // Add another layer of security by checking if the user is disabled |
||
2103 | // at every page load (might generate considerable extra DB load) |
||
2104 | // $_configuration['security_block_inactive_users_immediately'] = false; |
||
2105 | |||
2106 | // Allow all office suite documents to be uploaded in the "My files" section of the social network |
||
2107 | //$_configuration['social_myfiles_office_files_upload_allowed'] = false; |
||
2108 | |||
2109 | // Enable a "Previous question" button in surveys |
||
2110 | // $_configuration['survey_backwards_enable'] = false; |
||
2111 | |||
2112 | // All courses with category MY_CATEGORY will be used as course templates BT#18083 |
||
2113 | // $_configuration['course_category_code_to_use_as_model'] = 'MY_CATEGORY'; |
||
2114 | |||
2115 | // Shows the best exercise score attempt for a student in the reports. |
||
2116 | /*$_configuration['add_exercise_best_attempt_in_report'] = [ |
||
2117 | 'courses' => [ |
||
2118 | 'ABC' => [88, 89], // Where ABC is the course code and 88 is the exercise id |
||
2119 | ] |
||
2120 | ];*/ |
||
2121 | |||
2122 | // For a student: Shows only the list of teachers from my courses in the Chamilo inbox. |
||
2123 | // $_configuration['send_only_messages_to_teachers'] = true; |
||
2124 | |||
2125 | // Allows add tag to filter messages in inbox. Requires add an tag type extrafield for messages. |
||
2126 | /* |
||
2127 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES (22, 10, 'tags', 'Tags', '', 0, 1, 0, 1, 1, NOW()); |
||
2128 | */ |
||
2129 | //$_configuration['enable_message_tags'] = false; |
||
2130 | |||
2131 | // Survey duplicate: Order survey questions by student name |
||
2132 | // $_configuration['survey_duplicate_order_by_name'] = true; |
||
2133 | |||
2134 | // Allow gradebook_comment |
||
2135 | /* |
||
2136 | CREATE TABLE gradebook_comment (id BIGINT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, gradebook_id INT DEFAULT NULL, comment LONGTEXT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_C3B70763A76ED395 (user_id), INDEX IDX_C3B70763AD3ED51C (gradebook_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB ROW_FORMAT = DYNAMIC; |
||
2137 | ALTER TABLE gradebook_comment ADD CONSTRAINT FK_C3B70763A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE; |
||
2138 | ALTER TABLE gradebook_comment ADD CONSTRAINT FK_C3B70763AD3ED51C FOREIGN KEY (gradebook_id) REFERENCES gradebook_category (id) ON DELETE CASCADE; |
||
2139 | */ |
||
2140 | // $_configuration['allow_gradebook_comments'] = true; |
||
2141 | |||
2142 | // Allow anon users to send emails to the platform admin. |
||
2143 | // $_configuration['allow_email_editor_for_anonymous'] = true; |
||
2144 | |||
2145 | // Add certificate footer. Add your template main/template/default/export/pdf_certificate_footer.tpl |
||
2146 | // $_configuration['add_certificate_pdf_footer'] = true; |
||
2147 | |||
2148 | // Shows a popup with the list of answered/unanswered questions before sending a test. |
||
2149 | // $_configuration['quiz_check_all_answers_before_end_test'] = true; |
||
2150 | |||
2151 | // Custom cloud link URLS, this requires enable_add_file_link = true |
||
2152 | // $_configuration['documents_custom_cloud_link_list'] = ['links' => ['example.com', 'example2.com']]; |
||
2153 | |||
2154 | // Shows exercise session attempts in the base course. |
||
2155 | // $_configuration['show_exercise_session_attempts_in_base_course'] = false; |
||
2156 | |||
2157 | // Shows exercise attempts in sessions where user is general coach |
||
2158 | // $_configuration['show_exercise_attempts_in_all_user_sessions'] = true; |
||
2159 | |||
2160 | // Allow coach users to always edit announcements inside active/past sessions. |
||
2161 | // $_configuration['allow_coach_to_edit_announcements'] = false; |
||
2162 | |||
2163 | // Show invisible LP in the course home for students. BT#17744 |
||
2164 | //$_configuration['show_invisible_lp_in_course_home'] = true; |
||
2165 | |||
2166 | // Show start/end date in LP list for students. |
||
2167 | //$_configuration['lp_start_and_end_date_visible_in_student_view'] = true; |
||
2168 | |||
2169 | // Show all student publications (from course and from all sessions) in the work/pending.php page if true. BT#18352 |
||
2170 | //$_configuration['assignment_base_course_teacher_access_to_all_session'] = true; |
||
2171 | |||
2172 | // Show a link to the work/pending.php page in my courses (user_portal) |
||
2173 | //$_configuration['my_courses_show_pending_work'] = true; |
||
2174 | |||
2175 | // Show exercise report from all courses in a new page: exercise/pending.php |
||
2176 | //$_configuration['my_courses_show_pending_exercise_attempts'] = true; |
||
2177 | |||
2178 | // Disables the following BBB plugin settings in the plugin form and use them in priority. |
||
2179 | /*$_configuration['plugin_settings'] = [ |
||
2180 | 'bbb' => [ |
||
2181 | 'tool_enable' => 'true', // string value |
||
2182 | 'host' => 'https://www.example.com', |
||
2183 | 'salt' => 'abc123' |
||
2184 | ] |
||
2185 | ];*/ |
||
2186 | |||
2187 | // Enable X-Sendfile headers on forced download files going through document/download.php |
||
2188 | //$_configuration['enable_x_sendfile_headers'] = false; |
||
2189 | |||
2190 | // Extra settings for the agenda (FullCalendar v3) |
||
2191 | /*$_configuration['fullcalendar_settings'] = [ |
||
2192 | 'settings' => [ |
||
2193 | 'businessHours' => [ |
||
2194 | // days of week. an array of zero-based day of week integers (0=Sunday) |
||
2195 | 'dow' => [0, 1, 2, 3, 4], // Sunday - Thursday |
||
2196 | 'start' => '10:00', |
||
2197 | 'end' => '18:00', |
||
2198 | ], |
||
2199 | 'firstDay' => 0, // 0 = Sunday, 1 = Monday |
||
2200 | ] |
||
2201 | ];*/ |
||
2202 | |||
2203 | // Allow session admin access to main/admin/user_update_import.php and main/admin/user_export.php |
||
2204 | //$_configuration['allow_session_admin_extra_access'] = true; |
||
2205 | |||
2206 | // Replace the Chamilo logo URL. |
||
2207 | //$_configuration['platform_logo_url'] = 'https://chamilo.org'; |
||
2208 | |||
2209 | // Hides the session graph in the main/auth/my_progress.php page. |
||
2210 | //$_configuration['hide_session_graph_in_my_progress'] = true; |
||
2211 | |||
2212 | // Shows only users from active sessions in tracking. |
||
2213 | //$_configuration['show_users_in_active_sessions_in_tracking'] = true; |
||
2214 | |||
2215 | // Allows a quick question description edition with a selected image from a popup. |
||
2216 | //$_configuration['allow_quick_question_description_popup'] = true; |
||
2217 | |||
2218 | // Allows the use of the external id instead of the internal id. |
||
2219 | //$_configuration['use_career_external_id_as_identifier_in_diagrams'] = true; |
||
2220 | |||
2221 | // Add a career legend below the diagram, a variable will be called |
||
2222 | // get_lang('CareerDiagramLegend') and printed below a diagram |
||
2223 | // $_configuration['career_diagram_legend'] = true; |
||
2224 | |||
2225 | // If true then a variable will be called get_lang('CareerDiagramDisclaimer') and printed below a diagram; |
||
2226 | //$_configuration['career_diagram_disclaimer'] = true; |
||
2227 | |||
2228 | // Disable webservices. |
||
2229 | //$_configuration['disable_webservices'] = true; |
||
2230 | // Enable admin-only APIs: get_users_api_keys, get_user_api_key |
||
2231 | //$_configuration['webservice_enable_adminonly_api'] = false; |
||
2232 | |||
2233 | // Block a user account if there are multiple failed login attempts. It requires DB changes: |
||
2234 | /* |
||
2235 | CREATE TABLE track_e_login_attempt |
||
2236 | ( |
||
2237 | login_id INT AUTO_INCREMENT NOT NULL, |
||
2238 | username VARCHAR(100) NOT NULL, |
||
2239 | login_date DATETIME NOT NULL, |
||
2240 | user_ip VARCHAR(39) NOT NULL, |
||
2241 | success TINYINT(1) NOT NULL, |
||
2242 | INDEX idx_track_e_login_attempt_username_success (username, success), |
||
2243 | PRIMARY KEY (login_id) |
||
2244 | ) DEFAULT CHARACTER SET utf8 |
||
2245 | COLLATE utf8_unicode_ci |
||
2246 | ENGINE = InnoDB; |
||
2247 | */ |
||
2248 | // Then add the "@" symbol to TrackELoginAttempt class in the ORM\Entity() line. |
||
2249 | //$_configuration['login_max_attempt_before_blocking_account'] = 0; |
||
2250 | |||
2251 | // Ask user to renew password at first login. |
||
2252 | // Requires a user checkbox extra field called "ask_new_password". |
||
2253 | //$_configuration['force_renew_password_at_first_login'] = true; |
||
2254 | |||
2255 | // If the user is blocked with not allowed (red message), then the breadcrumb is hidden. |
||
2256 | //$_configuration['hide_breadcrumb_if_not_allowed'] = true; |
||
2257 | |||
2258 | // Configuration setting to disable course code field in course creation form. |
||
2259 | //$_configuration['course_creation_form_hide_course_code'] = false; |
||
2260 | |||
2261 | // Configuration setting to make required course category in course creation form. |
||
2262 | //$_configuration['course_creation_form_set_course_category_mandatory'] = false; |
||
2263 | |||
2264 | // Show option to set course announcement date |
||
2265 | // Allow sending notifications at a specific date. Requires DB changes: |
||
2266 | /* |
||
2267 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) |
||
2268 | VALUES (21, 13, 'send_notification_at_a_specific_date', 'Send notification at a specific date', 0, 1, 0, 0, 0, NOW()), |
||
2269 | (21, 6, 'date_to_send_notification', 'Date to send notification', 0, 1, 0, 0, 0, NOW()), |
||
2270 | (21, 13, 'send_to_users_in_session', 'Send to users in session', 0, 1, 0, 0, 0, NOW()); |
||
2271 | */ |
||
2272 | //$_configuration['course_announcement_scheduled_by_date'] = false; |
||
2273 | |||
2274 | // Enable upload of large SCORM files from FTP by uploading them to app/cache/ |
||
2275 | // and showing them in the SCORM upload form |
||
2276 | //$_configuration['scorm_upload_from_cache'] = false; |
||
2277 | |||
2278 | // Enable image upload as file when doing a copy in the content or a drag and drop. |
||
2279 | //$_configuration['enable_uploadimage_editor'] = false; |
||
2280 | |||
2281 | // Ckeditor settings. |
||
2282 | //$_configuration['editor_settings'] = ['config' => ['youtube_responsive' => true, 'image_responsive' => true]]; |
||
2283 | |||
2284 | // Overwrites the app/config/auth.conf.php settings |
||
2285 | //$_configuration['extldap_config'] = ['host' => '', 'port' => '']; |
||
2286 | |||
2287 | // To use an encrypted ldap admin password in app/config/auth.conf.php |
||
2288 | // if set to true then you need to put in app/config/auth.conf.php the encrypted passeword in $extldap_config['admin_password'] |
||
2289 | // To generate the encrypted password you can use the script tests/scripts/ldap_encrypt_admin_password.php |
||
2290 | //$_configuration['ldap_encrypt_admin_password'] = false; |
||
2291 | |||
2292 | // Salt to use for admin ldap password decryption |
||
2293 | //$_configuration['ldap_admin_password_salt'] = 'salt'; |
||
2294 | |||
2295 | // Limit providers for OpenID (classic) authentication |
||
2296 | /*$_configuration['auth_openid_allowed_providers'] = [ |
||
2297 | 'example.com', |
||
2298 | '*.example.com', |
||
2299 | ];*/ |
||
2300 | |||
2301 | // Option to hide the teachers info on courses about info page. |
||
2302 | //$_configuration['course_about_teacher_name_hide'] = false; |
||
2303 | |||
2304 | // Hides the option "Never expire" for expiration date in add/edit user page |
||
2305 | //$_configuration['user_hide_never_expire_option'] = false; |
||
2306 | |||
2307 | // Allow multiple languages to a course |
||
2308 | // as a selection bar for languages used in the course. |
||
2309 | // Add another field "multilingual" to be used separately as a true/false |
||
2310 | // field to represent the fact that the course can have content in multiple |
||
2311 | // languages (without precision). |
||
2312 | // Requires DB change: |
||
2313 | /* |
||
2314 | INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `display_text`, `default_value`, `field_order`, `visible_to_self`, `visible_to_others`, `changeable`, `filter`, `created_at`) VALUES |
||
2315 | (2, 5, 'multiple_language', 'Multiple Language', '', 0, 1, 0, 1, 0, NOW()); |
||
2316 | */ |
||
2317 | //$_configuration['allow_course_multiple_languages'] = false; |
||
2318 | |||
2319 | // Update user expiration in x days or months when login the first time |
||
2320 | /*$_configuration['update_student_expiration_x_date'] = [ |
||
2321 | 'days' => 0, |
||
2322 | 'months' => 0, |
||
2323 | ];*/ |
||
2324 | |||
2325 | // Enables to define which user status to show when option is true from $_configuration['user_status_show_option'] |
||
2326 | //$_configuration['user_status_show_options_enabled'] = false; |
||
2327 | // The user status is hidden when is false, it requires $_configuration['user_status_show_options_enabled'] = true |
||
2328 | /*$_configuration['user_status_show_option'] = [ |
||
2329 | 'COURSEMANAGER' => true, |
||
2330 | 'STUDENT' => true, |
||
2331 | 'DRH' => false, |
||
2332 | 'SESSIONADMIN' => false, |
||
2333 | 'STUDENT_BOSS' => false, |
||
2334 | 'INVITEE' => false |
||
2335 | ];*/ |
||
2336 | |||
2337 | // Allow learnpath prerequisite on quiz to unblock if maximum attempt is reached |
||
2338 | //$_configuration['lp_prerequisit_on_quiz_unblock_if_max_attempt_reached'] = false; |
||
2339 | |||
2340 | // Enables to hide user status when option is true visible only for admins from $_configuration['user_status_option_show_only_for_admin'] |
||
2341 | //$_configuration['user_status_option_only_for_admin_enabled'] = false; |
||
2342 | // The user status is hidden when is false, it requires $_configuration['user_status_option_only_for_admin_enabled'] = true |
||
2343 | /*$_configuration['user_status_option_show_only_for_admin'] = [ |
||
2344 | 'COURSEMANAGER' => false, |
||
2345 | 'STUDENT' => false, |
||
2346 | 'DRH' => false, |
||
2347 | 'SESSIONADMIN' => true, |
||
2348 | 'STUDENT_BOSS' => false, |
||
2349 | 'INVITEE' => false |
||
2350 | |||
2351 | // Set the default expiration date when a user is created by role and days |
||
2352 | /*$_configuration['user_number_of_days_for_default_expiration_date_per_role'] = [ |
||
2353 | 'COURSEMANAGER' => 365, |
||
2354 | 'STUDENT' => 31, |
||
2355 | 'DRH' => 31, |
||
2356 | 'SESSIONADMIN' => 60, |
||
2357 | 'STUDENT_BOSS' => 60, |
||
2358 | 'INVITEE' => 31 |
||
2359 | ];*/ |
||
2360 | |||
2361 | // Course extra fields to be presented on main/create_course/add_course.php |
||
2362 | //$_configuration['course_creation_by_teacher_extra_fields_to_show'] = ['fields' => ['ExtrafieldLabel1', 'ExtrafieldLabel2']]; |
||
2363 | |||
2364 | // Configuration setting to make some extra field required in course creation form. |
||
2365 | //$_configuration['course_creation_form_set_extra_fields_mandatory'] = ['fields' => ['fieldLabel1','fieldLabel2']]; |
||
2366 | |||
2367 | // Course extra fields to be presented on course settings |
||
2368 | //$_configuration['course_configuration_tool_extra_fields_to_show_and_edit'] = ['fields' => ['ExtrafieldLabel1', 'ExtrafieldLabel2']]; |
||
2369 | |||
2370 | // Relation to prefill course extra field with user extra field on course creation |
||
2371 | // on main/create_course/add_course.php and main/admin/course_add.php |
||
2372 | // Fill the array with the course extra field to fill => user extra field where the value comes from |
||
2373 | /*$_configuration['course_creation_user_course_extra_field_relation_to_prefill'] = [ |
||
2374 | 'fields' => [ |
||
2375 | 'CourseExtrafieldLabel1' => 'UserExtrafieldLabel1', |
||
2376 | 'CourseExtrafieldLabel2' => 'UserExtrafieldLabel2', |
||
2377 | ] |
||
2378 | ];*/ |
||
2379 | |||
2380 | // Hides the icon of percentage in "Average of tests in Learning Paths" indication on a student tracking |
||
2381 | // $_configuration['student_follow_page_hide_lp_tests_average'] = false; |
||
2382 | |||
2383 | // Add navigation to the next or previous lp without going to the list. |
||
2384 | // Requires DB change: |
||
2385 | // ALTER TABLE c_lp ADD next_lp_id int(11) NOT NULL DEFAULT '0'; |
||
2386 | //$_configuration['lp_enable_flow'] = false; |
||
2387 | |||
2388 | // User extra fields to be check on user edition to generate a specific process if it was modified |
||
2389 | //$_configuration['user_edition_extra_field_to_check'] = 'ExtrafieldLabel'; |
||
2390 | |||
2391 | // Enable skills in subcategory to work independant on assignement |
||
2392 | // Require DB changes: |
||
2393 | // ALTER TABLE gradebook_category ADD allow_skills_by_subcategory tinyint(1) NULL DEFAULT '1'; |
||
2394 | // Requires edit Entity GradebookCategory: src/Chamilo/CoreBundle/Entity/GradebookCategory.php uncomment "allowSkillsBySubcategory" variable. |
||
2395 | //$_configuration['gradebook_enable_subcategory_skills_independant_assignement'] = false; |
||
2396 | |||
2397 | // Shows the deleted quizzes in my progress page. |
||
2398 | //$_configuration['tracking_my_progress_show_deleted_exercises'] = true; |
||
2399 | |||
2400 | // Hide IP in exercises reports |
||
2401 | // $_configuration['exercise_hide_ip'] = false; |
||
2402 | |||
2403 | // Enable signature in attendance sheet for users |
||
2404 | // Require DB changes: |
||
2405 | // ALTER TABLE c_attendance_sheet ADD signature longtext NULL; |
||
2406 | // ALTER TABLE c_attendance_calendar ADD blocked tinyint(1) NULL; |
||
2407 | // Requires edit Entity CAttendanceSheet : src/Chamilo/CourseBundle/Entity/CAttendanceSheet.php add the @ symbol for attribute $signature into ORM\Column() line. |
||
2408 | // Requires edit Entity CAttendanceCalendar : src/Chamilo/CourseBundle/Entity/CAttendanceCalendar.php add the @ symbol for attribute $blocked into ORM\Column() line. |
||
2409 | //$_configuration['enable_sign_attendance_sheet'] = false; |
||
2410 | |||
2411 | // Shows a link to the "my missing signatures" page in the /index.php and /user_portal.php page. |
||
2412 | // It will only appears if enable_sign_attendance_sheet is alos true. |
||
2413 | //$_configuration['show_missing_signatures_page'] = false; |
||
2414 | |||
2415 | // Make sessions by duration always accessible to coaches (otherwise |
||
2416 | // they are only accessible during the active duration). |
||
2417 | //$_configuration['session_coach_access_after_duration_end'] = false; |
||
2418 | |||
2419 | // Hide visibility options for session visibility after end date. |
||
2420 | // Admitted options: SESSION_VISIBLE_READ_ONLY, SESSION_VISIBLE, SESSION_INVISIBLE |
||
2421 | /*$_configuration['session_visibility_after_end_date_options_configuration'] = [ |
||
2422 | 'visibility_options_to_hide' => [ |
||
2423 | 'SESSION_VISIBLE_READ_ONLY ' |
||
2424 | ] |
||
2425 | ];*/ |
||
2426 | |||
2427 | // Restrict the list of students to subscribe in the course session. And disable |
||
2428 | // registration for users in all courses from Resume Session page |
||
2429 | //$_configuration['session_course_users_subscription_limited_to_session_users'] = false; |
||
2430 | |||
2431 | // Disable tab to add classes in course session for non-admins |
||
2432 | //$_configuration['session_classes_tab_disable'] = false; |
||
2433 | |||
2434 | // Disable the possibility for teachers to edit course visibility |
||
2435 | //$_configuration['course_visibility_change_only_admin'] = false; |
||
2436 | |||
2437 | // Allow DRH user to access all students from reporting. |
||
2438 | // $_configuration['drh_allow_access_to_all_students'] = false; |
||
2439 | |||
2440 | // Disable links in gradebook view for students |
||
2441 | // $_configuration['gradebook_hide_link_to_item_for_student'] = false; |
||
2442 | |||
2443 | // It adds option to define if a document can be downloaded or not. |
||
2444 | // Create a document extra field with field label "can_be_downloaded" of type "Checkbox options". |
||
2445 | // $_configuration['documents_hide_download_icon'] = false; |
||
2446 | |||
2447 | // It adds option to define the starting date of accessibility for a document. |
||
2448 | // Create a document extra field with field label "accessible_from" of type "Date and time". |
||
2449 | // $_configuration['document_enable_accessible_from_date'] = false; |
||
2450 | |||
2451 | // Add the username value to the "subscription to session" confirmation email |
||
2452 | //$_configuration['email_template_subscription_to_session_confirmation_username'] = false; |
||
2453 | |||
2454 | // Add the "remember password" link to the "subscription to session" confirmation email |
||
2455 | //$_configuration['email_template_subscription_to_session_confirmation_lost_password'] = false; |
||
2456 | |||
2457 | // Add a custom extra footer for notifications emails for a specific language, for example for |
||
2458 | // privacy policy notices. Multiple languages and paragraphs can be added. |
||
2459 | /*$_configuration['notifications_extended_footer_message'] = ['english' => ['paragraphs' => [ |
||
2460 | 'Change or delete this paragraph or add another one' |
||
2461 | ]]];*/ |
||
2462 | |||
2463 | // Option to define duration for a calendar in attendance sheet. |
||
2464 | // Create an attendance calendar extra field with field label "duration" of type "text". |
||
2465 | // $_configuration['attendance_calendar_set_duration'] = false; |
||
2466 | |||
2467 | // Enable comments in attendance sheet for users |
||
2468 | // Require DB changes: |
||
2469 | //CREATE TABLE c_attendance_result_comment (iid int not null PRIMARY KEY AUTO_INCREMENT, attendance_sheet_id int not null, user_id int not null, created_at datetime not null, updated_at datetime not null, comment text not null, author_user_id int not null); |
||
2470 | //CREATE INDEX c_attendance_sheet_user ON track_e_access_complete (attendance_sheet_id, user_id); |
||
2471 | // Then add the "@" symbol to CAttendanceResultComment class in the ORM\Entity() line. |
||
2472 | //$_configuration['attendance_allow_comments'] = false; |
||
2473 | |||
2474 | // Enable categories in Wiki tool. |
||
2475 | // 1. Run the following DB changes: |
||
2476 | /* |
||
2477 | CREATE TABLE c_wiki_rel_category (wiki_id INT NOT NULL, category_id INT NOT NULL, INDEX IDX_AC88945BAA948DBE (wiki_id), INDEX IDX_AC88945B12469DE2 (category_id), PRIMARY KEY(wiki_id, category_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
2478 | CREATE TABLE c_wiki_category (id INT AUTO_INCREMENT NOT NULL, c_id INT NOT NULL, session_id INT DEFAULT NULL, tree_root INT DEFAULT NULL, parent_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, lft INT NOT NULL, lvl INT NOT NULL, rgt INT NOT NULL, INDEX IDX_17F1099A91D79BD3 (c_id), INDEX IDX_17F1099A613FECDF (session_id), INDEX IDX_17F1099AA977936C (tree_root), INDEX IDX_17F1099A727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; |
||
2479 | ALTER TABLE c_wiki_rel_category ADD CONSTRAINT FK_AC88945BAA948DBE FOREIGN KEY (wiki_id) REFERENCES c_wiki (iid) ON DELETE CASCADE; |
||
2480 | ALTER TABLE c_wiki_rel_category ADD CONSTRAINT FK_AC88945B12469DE2 FOREIGN KEY (category_id) REFERENCES c_wiki_category (id) ON DELETE CASCADE; |
||
2481 | ALTER TABLE c_wiki_category ADD CONSTRAINT FK_17F1099A91D79BD3 FOREIGN KEY (c_id) REFERENCES course (id) ON DELETE CASCADE; |
||
2482 | ALTER TABLE c_wiki_category ADD CONSTRAINT FK_17F1099A613FECDF FOREIGN KEY (session_id) REFERENCES session (id) ON DELETE CASCADE; |
||
2483 | ALTER TABLE c_wiki_category ADD CONSTRAINT FK_17F1099AA977936C FOREIGN KEY (tree_root) REFERENCES c_wiki_category (id) ON DELETE CASCADE; |
||
2484 | ALTER TABLE c_wiki_category ADD CONSTRAINT FK_17F1099A727ACA70 FOREIGN KEY (parent_id) REFERENCES c_wiki_category (id) ON DELETE CASCADE; |
||
2485 | */ |
||
2486 | // 2. Add an "@" before "ORM\ManyToMany" and "@ORM\JoinTable" in the "CWiki::$categories" property definition (in src/Chamilo/CourseBundle/Entity/CWiki.php) |
||
2487 | // 3. Add an "@" before "ORM\Entity" in the "CWikiCategory" class definition (in src/Chamilo/CourseBundle/Entity/CWikiCategory.php) |
||
2488 | //$_configuration['wiki_categories_enabled'] = false; |
||
2489 | |||
2490 | // Relation to prefill session extra field with user extra field on session creation on main/session/session_add.php |
||
2491 | /*$_configuration['session_creation_user_course_extra_field_relation_to_prefill'] = [ |
||
2492 | 'fields' => [ |
||
2493 | 'client' => 'client', |
||
2494 | 'region' => 'region', |
||
2495 | ] |
||
2496 | ];*/ |
||
2497 | |||
2498 | // It adds option to define prerequisites with start and end dates for learnpath items. |
||
2499 | // Requires DB changes: |
||
2500 | /* |
||
2501 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES |
||
2502 | (7, 7, 'start_date', 'StartDate', '', 0, 1, 0, 1, 0, NOW()); |
||
2503 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES |
||
2504 | (7, 7, 'end_date', 'EndDate', '', 0, 1, 0, 1, 0, NOW()); |
||
2505 | */ |
||
2506 | //$_configuration['lp_item_prerequisite_dates'] = false; |
||
2507 | |||
2508 | // Configuration setting to make some extra field required in session creation form on main/session/session_add.php. |
||
2509 | // $_configuration['session_creation_form_set_extra_fields_mandatory'] = ['fields' => ['client','region']]; |
||
2510 | |||
2511 | // Ask REST webservices (v2.php) to return another identifier for fields related to user ID. |
||
2512 | // This is useful if the external system doesn't really deal with user IDs as they are in Chamilo, as it helps |
||
2513 | // the external system match the user data return with some external data that is know to Chamilo. For example, if |
||
2514 | // you use an external authentication system, you can return the extra field used to match the user with the |
||
2515 | // external authentication system rather than user.id. |
||
2516 | // $_configuration['webservice_return_user_field'] = 'oauth2_id'; |
||
2517 | |||
2518 | // Add support for careers hierarchy - refs BT#20711 |
||
2519 | // 1. This requires the following DB change: |
||
2520 | // ALTER TABLE career add parent_id INT |
||
2521 | // ALTER TABLE career add constraint career_career_id_fk foreign key (parent_id) references career (id); |
||
2522 | // 2. Add an "@" before "var int" and "ORM\Column..." in the "Career::$parentId" property definition (in src/Chamilo/CoreBundle/Entity/Career.php) |
||
2523 | // 3. Uncomment $parentId var in src/Chamilo/CoreBundle/Entity/Career.php |
||
2524 | // $_configuration['career_hierarchy_enable'] = false; |
||
2525 | |||
2526 | // Use courses categories as top horizontal bar menu (#navbar) entries and submenus, to point to the catalogue with a filter on these categories |
||
2527 | //$_configuration['display_menu_use_course_categories'] = false; |
||
2528 | |||
2529 | // KEEP THIS AT THE END |
||
2530 | // -------- Custom DB changes |
||
2531 | // Set to true to hide settings completely in a sub-URL if the setting is disabled in the |
||
2532 | // main URL (where the access_url_changeable field = 0) |
||
2533 | // $_configuration['multiple_url_hide_disabled_settings'] = false; |
||
2534 | |||
2535 | // List of learner certificates - User extra fields to include at the exported CSV as columns |
||
2536 | //$_configuration['certificate_export_report_user_extra_fields'] = ['extra_fields' => ['office_address', 'office_phone_extension']]; |
||
2537 | |||
2538 | // Only courses with this option will be visible in catalogue |
||
2539 | // Requires DB changes: |
||
2540 | /* |
||
2541 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES |
||
2542 | (2, 3, 'show_in_catalogue', 'Show in catalogue', '', 0, 1, 1, 1, 0, NOW()); |
||
2543 | SET @ef_id = LAST_INSERT_ID(); |
||
2544 | INSERT INTO extra_field_options (field_id, option_value, display_text, priority, priority_message, option_order) VALUES |
||
2545 | (@ef_id, '1', 'Yes', NULL, NULL, 1), |
||
2546 | (@ef_id, '0', 'No', NULL, NULL, 2); |
||
2547 | */ |
||
2548 | //$_configuration['show_courses_in_catalogue'] = false; |
||
2549 | |||
2550 | // Allows defining one or several categories of courses that will be visible in the course catalog |
||
2551 | // $_configuration['courses_catalogue_show_only_category'] = ['Cat1','Cat2']; |
||
2552 | |||
2553 | //Hides the link to the course catalog in the menu when the catalog is public. |
||
2554 | // $_configuration['catalog_hide_public_link'] = false; |
||
2555 | |||
2556 | // Display the Portal News link in the admin page to session admin users |
||
2557 | //$_configuration['session_admin_access_system_announcement'] = false; |
||
2558 | |||
2559 | // File upload size limit in MB for teachers (set to 1024 for 1GB, 5120 for 5GB, etc). |
||
2560 | //$_configuration['file_upload_size_limit_for_teacher'] = 0; |
||
2561 | |||
2562 | // Add user activation by confirmation email |
||
2563 | // This option prevents the new user to login in the platform if your account is not confirmed via email |
||
2564 | // You need add a new option called "confirmation" to the registration settings |
||
2565 | //INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation'); |
||
2566 | |||
2567 | // Enable use of a custom course logo in mail & PDF headers |
||
2568 | // $_configuration['mail_header_from_custom_course_logo'] = false; |
||
2569 | |||
2570 | // Enable additional_webservices.php for *remote* PPT2PNG/Oogie service |
||
2571 | //$_configuration['webservice_remote_ppt2png_enable'] = false; |
||
2572 | |||
2573 | // Add more speed options to reading comprehension question type (type id = 21) in words per minute |
||
2574 | //$_configuration['exercise_question_reading_comprehension_extra_speeds'] = ['speeds' => [70, 110, 170]]; |
||
2575 | |||
2576 | // Text appearing at the end of the test when the user has failed. Requires DB changes. |
||
2577 | /* |
||
2578 | ALTER TABLE c_quiz ADD text_when_finished_failure LONGTEXT DEFAULT NULL; |
||
2579 | */ |
||
2580 | // Then add the "@" symbol to the CQuiz class in the ORM\Column() line for its $textWhenFinishedFailure property. |
||
2581 | //$_configuration['exercise_text_when_finished_failure'] = false; |
||
2582 | |||
2583 | // Add an option to subscribe the user at the end of test when the user has failed. Requires DB changes. |
||
2584 | /* |
||
2585 | INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, default_value, field_order, visible_to_self, visible_to_others, changeable, filter, created_at) VALUES (17, 5, 'subscribe_session_when_finished_failure', 'SubscribeSessionWhenFinishedFailure', '', 0, 1, 0, 1, 0, NOW()); |
||
2586 | */ |
||
2587 | //$_configuration['exercise_subscribe_session_when_finished_failure'] = false; |
||
2588 | |||
2589 | //hide copy icon in LP's authoring options |
||
2590 | //$_configuration['lp_hide_copy_option'] = false; |
||
2591 | |||
2592 | // Password rotation |
||
2593 | // Requires creating a "Date and time" extra user field with the system id "password_updated_at" |
||
2594 | // Note: only a password change by the user itself will be taken into account. |
||
2595 | // Admins editing someone else's password do not count as a password update that would avoid the rotation request. |
||
2596 | // If this feature is enabled on an existing portal, the registration date of users will be taken as |
||
2597 | // the latest password change date. |
||
2598 | //$_configuration['security_password_rotate_days'] = 90; |
||
2599 | |||
2600 | // Prevent login/pass cache by browser |
||
2601 | // If enabled, users' browsers will not be able to re-use previous |
||
2602 | // login/passwords in the main login form. Browsers might choose not to |
||
2603 | // support this feature. |
||
2604 | //$_configuration['security_login_autocomplete_disable'] = false; |
||
2605 | |||
2606 | // Block session about page access for all users |
||
2607 | // $_configuration['session_about_block_all_access'] = false; |
||
2608 | |||
2609 | // Block course about page access for all users |
||
2610 | // $_configuration['course_about_block_all_access'] = false; |
||
2611 | |||
2612 | // Add the user first connexion column to the page main/admin/user_list.php |
||
2613 | // $_configuration['admin_user_list_add_first_connexion_column'] = false; |
||
2614 | |||
2615 | // Set the following parameter to true to enable student to be assign as teacher of a course |
||
2616 | //$_configuration['course_allow_student_role_to_be_teacher'] = false; |
||
2617 | |||
2618 | // Set the following parameter to true to activate the integration of the mathjax script in all HTML documents |
||
2619 | //$_configuration['mathjax_enable_script_header_in_all_HTML_document'] = false; |
||
2620 | |||
2621 | // E-mail-specific logo |
||
2622 | // Set to true to use web/css/[current-theme]/images/email-logo.png as an |
||
2623 | // e-mail logo instead of the platform logo. Only works if setting |
||
2624 | // 'use_course_logo_in_course_page' is not set or there is no logo for that |
||
2625 | // course. Recommended e-mail logo width is 540px. |
||
2626 | //$_configuration['email_logo'] = false; |
||
2627 | |||
2628 | // Define the maximum time in seconds to be registered if no action by user in the LP for more than the php session lifetime. |
||
2629 | //$_configuration['time_to_be_registered_for_abusiveTime'] = 600; |
||
2630 | |||
2631 | // Define the default time in seconds to be registered if the user does logout from a course and there is no recent entry in track_e_course_access. |
||
2632 | //$_configuration['tracking_default_course_extra_time_on_logout'] = 600; |
||
2633 | |||
2634 | // Set to true to hide lp creation icon on lp list if in a session |
||
2635 | //$_configuration['session_hide_lp_creation'] = false; |
||
2636 | // Set to true to hide lp copy icon on lp list if in a session |
||
2637 | //$_configuration['session_hide_lp_copy'] = false; |
||
2638 | // Set to true to hide document upload icon on document list if in a session |
||
2639 | //$_configuration['session_hide_document_upload'] = false; |
||
2640 | |||
2641 | // Define a special path token for the Common Cartridge export content. |
||
2642 | // Due to changes in naming by the responsible organization, the Chamilo default |
||
2643 | // is '$1EdTech-CC-FILEBASE$' (the latest), but previous versions of the standard |
||
2644 | // recommended '$IMS-CC-FILEBASE$', so you might want to use that for greater compatibility. |
||
2645 | //$_configuration['commoncartridge_path_token'] = '$IMS-CC-FILEBASE$'; |
||
2646 | |||
2647 | // Set the following parameter to true to enable a session lifetime controller that notifies users that their session is about to expire |
||
2648 | //$_configuration['session_lifetime_controller'] = false; |
||
2649 | |||
2650 | // Extra fields to include in session course excel report on main/session/resume_session.php |
||
2651 | /*$_configuration['session_course_excel_export'] = [ |
||
2652 | 'session_start_date_header' => 'Fecha Inicio', |
||
2653 | 'session_end_date_header' => 'Fecha Fin', |
||
2654 | 'user_firstname_header' => 'Nombre', |
||
2655 | 'user_lastname_header' => 'Apellido 1', |
||
2656 | 'session_fields' => [ |
||
2657 | '0' => [ |
||
2658 | 'header' => '1st session header', |
||
2659 | 'field' => 'modalidad' |
||
2660 | ], |
||
2661 | '1' => [ |
||
2662 | 'header' => 'Sesion header without value', |
||
2663 | ], |
||
2664 | '2' => [ |
||
2665 | 'header' => '3rd session header', |
||
2666 | 'field' => 'extrafieldvariable' |
||
2667 | ], |
||
2668 | ], |
||
2669 | 'user_fields_before' => [ |
||
2670 | '0' => [ |
||
2671 | 'header' => 'DNI', |
||
2672 | 'field' => 'dni' |
||
2673 | ], |
||
2674 | ], |
||
2675 | 'user_fields_after' => [ |
||
2676 | '0' => [ |
||
2677 | 'header' => 'User header 1', |
||
2678 | 'field' => 'userfield_after' |
||
2679 | ], |
||
2680 | '1' => [ |
||
2681 | 'header' => 'User header 2', |
||
2682 | 'field' => 'userextrafieldvariable' |
||
2683 | ], |
||
2684 | ], |
||
2685 | ]; */ |
||
2686 |