Merge pull request #1233 from jloguercio/1.11.x

Added official code in "who is online" page - BT#11033
ofaj
José Loguercio 9 years ago committed by GitHub
commit 25332039f0
  1. 5
      main/inc/lib/social.lib.php
  2. 4
      main/install/data.sql

@ -1047,6 +1047,10 @@ class SocialManager extends UserManager
}
$userPicture = $user_info['avatar'];
$officialCode = '';
if (api_get_setting('show_official_code_whoisonline') == 'true') {
$officialCode .= '<div class="items-user-official-code"><p style="min-height: 30px;" title="'.get_lang('OfficialCode').'">'.$user_info['official_code'].'</p></div>';
}
$img = '<img class="img-responsive img-circle" title="'.$completeName.'" alt="'.$completeName.'" src="'.$userPicture.'">';
$url = null;
@ -1068,6 +1072,7 @@ class SocialManager extends UserManager
<div class="items-user-name">
'.$name.'
</div>
'.$officialCode.'
<div class="items-user-status">'.$status_icon_chat.' '.$user_rol.'</div>
</div>
</div>';

@ -1875,6 +1875,10 @@ INSERT INTO settings_current (variable, type, category, selected_value, title, c
INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_profile_user_address_geolocalization', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_profile_user_address_geolocalization', 'false', 'No');
INSERT INTO settings_current (variable, type, category, selected_value, title, comment) VALUES ('show_official_code_whoisonline', 'radio', 'User', 'false', 'ShowOfficialCodeInWhoIsOnlinePage', 'ShowOfficialCodeInWhoIsOnlinePageComment');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_official_code_whoisonline', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_official_code_whoisonline', 'false', 'No');
INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 1);
INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 2);
INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 3);

Loading…
Cancel
Save