Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would it be possible to display the user picture in the results if user pictures are enabled on the site?
Comments
Comment #1
PascalAnimateur CreditAttribution: PascalAnimateur commentedLooks like it is possible !
Comment #2
PascalAnimateur CreditAttribution: PascalAnimateur commentedEven better patch with email display and translation of the entity label.
There should be corresponding options for (picture / email) in the user search plugin settings.
Comment #3
anonYes, this could be a feature.
I have some comments about the patch tho.
- Why use t() on the description? The reason why its not there now is that the description is "user input". Check https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/t/7
- There should be a setting for this in the "User plugin settings" that is default off.
- The typo fix can still be in the patch, I don't mind that.
If you fix this, I'll gladly commit this.
Comment #4
Northern_Girl CreditAttribution: Northern_Girl commentedHi.
Was this finally commited ? I'm a new user to Linkit and this is something that I would like to have.
Thanks.
Comment #5
PascalAnimateur CreditAttribution: PascalAnimateur commentedHere's a revised patch with only the user image display, no t() in the description.
Comment #6
PascalAnimateur CreditAttribution: PascalAnimateur commentedComment #7
PascalAnimateur CreditAttribution: PascalAnimateur commentedPatch also includes fix for issue #2550209: Image not appearing in autocomplete result
Comment #8
anonWell, it sure fixes the two issues, but it reintroduce a security issue.
We need to sanitize the output. That is done by
Drupal.checkPlain(result.description)
today. If we remote that, it open for XSS attacks.Comment #9
PascalAnimateur CreditAttribution: PascalAnimateur commentedRe-rolled patch against 7.x-3.5
Comment #10
anonI would like to see this configurable in the user plugin.
Comment #11
mark_fullmerIn order to help the community and the module maintainers focus work on the issues for this module that are most important to the Drupal community, I'm going to close this issue, as it is a feature request that does not have substantial work already and the issue hasn't been updated in many years.