Hello! :)

Is it possible to make a hybrid userreference field like on facebook's "relationship status" field?
That means if I'm typing a name in the userreference field the autocomplete function should provide suggestions for community users as usual... and if the name I've entered does fit to a registered community member then it should link to the user's profile as usual. But if the value I've entered does not fit the any of the community members the userreference field should accept that value but doesn't link to it.

I think it makes sense for functionalities like relationship statuses on profiles (i.e. married to user-xyz) and events - for in-house speakers (registered users) and guest speakers (not registered users).

Best regards,
Stefan

Comments

design.er’s picture

Version: 6.x-2.4 » 6.x-3.x-dev

Oops, I have to correct the module version. :)

markus_petrux’s picture

Version: 6.x-3.x-dev » 6.x-2.x-dev

Related issue: #167809: Nodereference optional

PS: This is not for CCK3, which is only 'remove buttons', multigroup and nested fieldgroups. Hence, something like this belongs to CCK 2.x.

design.er’s picture

Ok, version 6.x-2.x is also absolutely welcome. :)

Thanks for the reference to the other issue - I'll subscribe.
Can you tell me if nodereference will work with the optional reference the userreference will work the same way?

Thanks for your help! :)

kswan’s picture

The nodereference and userreference code is very similar so it should be pretty easy to port the patch in #167809: Nodereference optional to the userreference.module.

design.er’s picture

Ok, thank you very much! :)

honza pobořil’s picture

Is it possible to integrate this function to userreference.module?