circles
circles copied to clipboard
How to distinguish two users with the same name before sharing? (eg. the mail adresses could also be displayed)
My university uses nextcloud/circles.
Some students have the same exact name (firstname and lastname) than some teachers.
When I want to share a folder with this kind of users, the list only display the name of the users (firstname and lastname).
For example, the list displays something like:
- John Doe
- John Doe
How can I choose the right one?!
A solution could be to display a list like this:
- John Doe ([email protected])
- John Doe ([email protected])
or
- John Doe ([email protected])
- John Doe ([email protected])
Hello. I had the same need. I made the following changes to display the email address in addition to the name. I also display the ID in the "title" html attribute, it is displayed when hovering over the mouse. However, changes must be postponed after each update.
cp -p ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php.BACK
vi ___NEXTCLOUD_DIR___/apps/circles/lib/Search/LocalUsers.php
Ligne 75, add :
$value = ($user->getEMailAddress()) ? ($user->getDisplayName() . " (" . $user->getEMailAddress() . ")") : $user->getDisplayName();
Ligne 78, replace by :
$user->getUID(), Member::TYPE_USER, '', ['display' => $value]
cp -p ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css.BACK
vi ___NEXTCLOUD_DIR___/apps/circles/css/navigation.css
Ligne 217, replace by :
height: auto;
cp -p ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js.BACK
vi ___NEXTCLOUD_DIR___/apps/circles/js/circles.app.results.members.js
Ligne 116, add :
title="' + nav.escapeHtml(value.ident) + '"