The discussion revolves around disabling users from changing their full names after sign-up, while allowing admins to edit the field. thekoalaz wants to enforce a Real Name policy on their Discourse instance.
Falco suggested hiding the edit section for full names by modifying the preferences template, similar to how they handled avatars. thekoalaz found this solution helpful and is considering implementing it.
robmc has a similar requirement for a Membership site, where they want to link Real Names to usernames and prevent users from changing them. fefrei suggested using the sso overrides name setting to solve this problem.
The conversation also touches on modifying templates to achieve this goal. Falco clarified that modifying templates requires overwriting the existing code, and weallwegot provided a link to the relevant codebase. Mark_Schmucker is still searching for the template that defines the user’s preference page to remove the full name edit section.
I have just begun operating a small discourse for real life friends and I wanted to enforce a Real Name policy.
I’ve required full name on sign up and an approval only policy, but after sign up users can edit their Full Name. I want to disable this so that an approved user’s full name is essentially locked after sign-up, but an admin can still edit the field.
I was looking at where this check happens and it seems there’s no logic that will let me enforce this policy exactly:
Username and e-mail have settings that relate to whether a user can self-edit them, but there are no such settings for full names. Is this true? Is there some work around?
Yes, I changed the preferences template, so the little pencil from avatar on preferences page is a link that send people to the avatar change page in another system. Our avatars were handled outside Discourse and integrated with the setting default avatars.
Interesting. I have a similar requirement for a Membership site.
In my case we will carry over Real Names from a separate site with registration using SSO. We will allow users to adopt usernames for taking part in the Discourse conversation, but we want them to always be linked to a Real Name on their profile, and so do not want them to be able to change it once it has been populated during registration.
Ich habe 20 Minuten gesucht und kann die Vorlage für die Einstellungen nicht finden. Ich habe Teile davon gefunden, aber nicht die Vorlage selbst. Kann mir jemand sagen, wo sie zu finden ist?
Danke, aber ich glaube, @Falco hat sich vielleicht auf Admin > Anpassen > Text bezogen. Zum Beispiel finde ich diesen Abschnitt:
js.user.change_avatar.title
Und ich habe erwartet, dass es auch eine übergeordnete Vorlage gibt, die die gesamte Benutzerpräferenzseite definiert und diesen Abschnitt enthält. Wenn man den Avatar-Abschnitt aus dieser Vorlage entfernt, könnte man verhindern, dass Benutzer ihren Avatar ändern. (Oder ihren vollständigen Namen, was ich erreichen möchte.)
Aber ich kann immer noch nicht die Vorlage finden, die die Benutzerpräferenzseite definiert.