Well... hum thanks a lot everyone for your answers
But, I think I didn't explain clearly, I'm going to try to be more precise (english is not my native language).
Maybe I don't understand how Discuss and Login manage user's registration and sessions.
# 1 : I want Login to manage my users login, not discuss. It's a community forum and all my users are registered by admin. Their email uses both for the username and the email, the fullname is the fullname (displayed for identity) ;-)
It's just like here
You can see
Squarou reply #1
In my community website, for the moment I have
[email protected] reply #1
I don't want that.
# 2 where do I want the name changed ? everywhere in Discuss database of course ! In disUser. As far as I know (correct me if I'm wrong), disUser is synchronized from modUser database isn't it ? So, at one moment, Discuss copy/update its database form modUser's database.
# 3 now, if not too far from truth, I guess there's a hack to sync disUser form modUser, for changing the request. disUser and modUser are using the same unique key (id). And then, username is also used in disUser from modUser. If I can tell Discuss don't sync disUser's username field form modUser's username field, but use instead modUser's fullname, I'm I getting wrong ? If not, how can I do that ?
You understand now that I want to change this relationship between 2 databases. So,
everywhere in Discuss's chunk (post, thread, last active), Discuss will display John Doe instead of "
[email protected]".
Another way would be to sync Discuss's "Display name" with modx's "fullname", setting use display name by default for everyuser.
Looking at core/components/discuss/elements/snippets/posthook.discussmergeaccount.php
Does it the syncing ?
Thanks for reading this, hope it's more precise now.
Regards,