Hi there
The header actually says it all. Have any of you got an idea of how to overwrite CCK userreference form to show profile field instead of username in the select box?
I use emails as usernames. But I would like people to see the real names of the users they're referencing and not the email. Any ideas?
One way would be to use user_load one each of the uid's in the options array, but i guess that wouldn't be very good databasewise. So I'm thinking maybe i could include the profilefields in the sql-call in the _userreference_potential_references function in the userreference.module ?
Instead of hardcoding it to show the username, one could call the username template to display whatever field one prefers. Does this make sense?
All ideas will be accepted with gratitude :-)
Best,
/J.
Best,
/J.
Comments
Comment #1
gracearoha commentedI also need this feature, but it looks like this has been more than a year with no response to this post. (I am using now version 5x-1.6-1). Anyone have any ideas on this front?
Comment #2
yched commentedPossible in D6 now that Views can list users. No backport possible.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.