こんにちは。
3.10.1+(ビルド:20210130)、fordsonテーマを使用しています。
プロファイルのユーザ詳細ですが、「プロファイルを編集する」の下に
メールアドレス、所属組織、部署が表示されています。
ここにユーザ名を追加したり並び順を変更することは可能でしょうか。
ユーザ名、部署、所属組織、メールアドレスの順に表示したいと思っております。
ご存知の方がいらっしゃいましたら、教えて頂ければ幸いです。
よろしくお願い致します。
「プロファイル」ページの「ユーザ詳細」セクションでのユーザ名の表示は以下のプログラム修正で可能だと思います。
修正対象プログラム:
lib/myprofilelib.php
修正箇所:
152行目
[ 修正前 ]
$node = new core_user\output\myprofile\node('contact', 'mnet', get_string('remoteuser', 'mnet', $remoteuser), null, null,
get_string('remoteuserinfo', 'mnet', $hostinfo), null, 'remoteuserinfo');
$tree->add_node($node);
}
if ($iscurrentuser
or (!isset($hiddenfields['email']) and (
[ 修正後 ]
$node = new core_user\output\myprofile\node('contact', 'mnet', get_string('remoteuser', 'mnet', $remoteuser), null, null,
get_string('remoteuserinfo', 'mnet', $hostinfo), null, 'remoteuserinfo');
$tree->add_node($node);
}
// Adding username
$node = new core_user\output\myprofile\node('contact', 'username', get_string('username'), null, null, $user->username);
$tree->add_node($node);
if ($iscurrentuser
or (!isset($hiddenfields['email']) and (